/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | TrackingMDRef.h | 26 Metadata *MD = nullptr; variable 30 explicit TrackingMDRef(Metadata *MD) : MD(MD) { track(); } in TrackingMDRef() argument 32 TrackingMDRef(TrackingMDRef &&X) : MD(X.MD) { retrack(X); } in TrackingMDRef() 33 TrackingMDRef(const TrackingMDRef &X) : MD(X.MD) { track(); } in TrackingMDRef() 40 MD = X.MD; 50 MD = X.MD; 57 Metadata *get() const { return MD; } in get() 64 MD = nullptr; in reset() 66 void reset(Metadata *MD) { in reset() argument 68 this->MD = MD; in reset() [all …]
|
H A D | Metadata.h | 158 static inline bool doit(const Metadata &MD) { \ 159 return MD.getMetadataID() == Metadata::CLASS##Kind; \ 164 inline raw_ostream &operator<<(raw_ostream &OS, const Metadata &MD) { 165 MD.print(OS); 180 Metadata *MD; variable 182 MetadataAsValue(Type *Ty, Metadata *MD); 185 void dropUse() { MD = nullptr; } in dropUse() 190 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 191 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 193 Metadata *getMetadata() const { return MD; } in getMetadata() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | AMDGPUMetadata.cpp | 94 static void mapping(IO &YIO, Kernel::Attrs::Metadata &MD) { in mapping() 96 MD.mReqdWorkGroupSize, std::vector<uint32_t>()); in mapping() 98 MD.mWorkGroupSizeHint, std::vector<uint32_t>()); in mapping() 100 MD.mVecTypeHint, std::string()); in mapping() 101 YIO.mapOptional(Kernel::Attrs::Key::RuntimeHandle, MD.mRuntimeHandle, in mapping() 108 static void mapping(IO &YIO, Kernel::Arg::Metadata &MD) { in mapping() 109 YIO.mapOptional(Kernel::Arg::Key::Name, MD.mName, std::string()); in mapping() 110 YIO.mapOptional(Kernel::Arg::Key::TypeName, MD.mTypeName, std::string()); in mapping() 111 YIO.mapRequired(Kernel::Arg::Key::Size, MD.mSize); in mapping() 112 YIO.mapRequired(Kernel::Arg::Key::Align, MD.mAlign); in mapping() [all …]
|
/freebsd/tools/tools/nanobsd/ |
H A D | legacy.sh | 107 MD=`mdconfig -a -t swap -s ${CODE_SIZE} -x ${NANO_SECTS} \ 113 MD=`mdconfig -a -t vnode -f ${IMG} -x ${NANO_SECTS} \ 117 …trap "echo 'Running exit trap code' ; df -i ${MNT} ; umount ${MNT} || true ; mdconfig -d -u $MD" 1… 119 gpart create -s bsd "${MD}" 120 gpart add -t freebsd-ufs -b 16 "${MD}" 123 gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} 127 gpart list ${MD} 130 populate_slice /dev/${MD}${NANO_PARTITION_ROOT} ${NANO_WORLDDIR} ${MNT} "${NANO_ROOT}" 131 mount /dev/${MD}a ${MNT} 139 dd conv=sparse if=/dev/${MD} of=${NANO_DISKIMGDIR}/_.disk.image bs=64k [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Metadata.cpp | 60 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() argument 61 : Value(Ty, MetadataAsValueVal), MD(MD) { in MetadataAsValue() 66 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue() 82 Metadata *MD) { in canonicalizeMetadataForValue() argument 83 if (!MD) in canonicalizeMetadataForValue() 88 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 90 return MD; in canonicalizeMetadataForValue() 100 return MD; in canonicalizeMetadataForValue() 103 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() argument 104 MD = canonicalizeMetadataForValue(Context, MD); in get() [all …]
|
H A D | ProfileSummary.cpp | 104 static ConstantAsMetadata *getValMD(MDTuple *MD, const char *Key) { in getValMD() argument 105 if (!MD) in getValMD() 107 if (MD->getNumOperands() != 2) in getValMD() 109 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getValMD() 110 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getValMD() 119 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal() argument 120 if (auto *ValMD = getValMD(MD, Key)) { in getVal() 127 static bool getVal(MDTuple *MD, const char *Key, double &Val) { in getVal() argument 128 if (auto *ValMD = getValMD(MD, Key)) { in getVal() 136 static bool isKeyValuePair(MDTuple *MD, const char *Key, const char *Val) { in isKeyValuePair() argument [all …]
|
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
H A D | evppbe_pbkdf2.txt | 20 MD = sha1 27 MD = sha256 34 MD = sha512 41 MD = sha1 48 MD = sha256 55 MD = sha512 62 MD = sha1 69 MD = sha256 76 MD = sha512 83 MD = sha1 [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexingAction.cpp | 33 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument 36 Range.getBegin(), *MD.getMacroInfo()); in MacroExpands() 40 const MacroDirective *MD) override { in MacroDefined() argument 43 *MD->getMacroInfo()); in MacroDefined() 46 void MacroUndefined(const Token &MacroNameTok, const MacroDefinition &MD, in MacroUndefined() argument 48 if (!MD.getMacroInfo()) // Ignore noop #undef. in MacroUndefined() 52 *MD.getMacroInfo()); in MacroUndefined() 55 void Defined(const Token &MacroNameTok, const MacroDefinition &MD, in Defined() argument 57 if (!MD.getMacroInfo()) // Ignore nonexistent macro. in Defined() 62 *MD.getMacroInfo()); in Defined() [all …]
|
/freebsd/tools/regression/geom/ |
H A D | RunTest.sh | 3 MD=34 15 mdconfig -d -u $MD > /dev/null 2>&1 || true 16 if [ -c /dev/md$MD ] ; then 19 if [ -c /dev/md$MD ] ; then 22 if [ -c /dev/md$MD ] ; then 23 echo "/dev/md$MD is busy" 1>&2 26 MdLoad/MdLoad md${MD} $f 28 if diskinfo /dev/md${MD}* | 37 diskinfo /dev/md${MD}* > Ref/`basename $f` 41 mdconfig -d -u $MD > /dev/null 2>&1 || true
|
H A D | RunTest.t | 3 MD=34 20 mdconfig -d -u $MD > /dev/null 2>&1 || true 21 if [ -c /dev/md$MD ] ; then 24 if [ -c /dev/md$MD ] ; then 27 if [ -c /dev/md$MD ] ; then 29 echo "/dev/md$MD is busy" 32 MdLoad/MdLoad md${MD} $f 34 if diskinfo /dev/md${MD}* | 42 diskinfo /dev/md${MD}* > Ref/`basename $f` 46 mdconfig -d -u $MD > /dev/null 2>&1 || true
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | ErlangGCPrinter.cpp | 55 GCFunctionInfo &MD = **FI; in finishAssembly() local 56 if (MD.getStrategy().getName() != getStrategy().getName()) in finishAssembly() 76 AP.emitInt16(MD.size()); in finishAssembly() 79 for (const GCPoint &P : MD) { in finishAssembly() 88 GCFunctionInfo::iterator PI = MD.begin(); in finishAssembly() 92 AP.emitInt16(MD.getFrameSize() / IntPtrSize); in finishAssembly() 96 unsigned StackArity = MD.getFunction().arg_size() > RegisteredArgs in finishAssembly() 97 ? MD.getFunction().arg_size() - RegisteredArgs in finishAssembly() 104 AP.emitInt16(MD.live_size(PI)); in finishAssembly() 107 for (GCFunctionInfo::live_iterator LI = MD.live_begin(PI), in finishAssembly() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | VTableBuilder.cpp | 141 OverriderInfo getOverrider(const CXXMethodDecl *MD, in getOverrider() argument 143 assert(OverridersMap.count(std::make_pair(MD, BaseOffset)) && in getOverrider() 146 return OverridersMap.lookup(std::make_pair(MD, BaseOffset)); in getOverrider() 181 const CXXMethodDecl *MD = Overrider.first; in FinalOverriders() local 186 assert(SubobjectOffsets.count(std::make_pair(MD->getParent(), in FinalOverriders() 190 CharUnits BaseOffset = SubobjectOffsets[std::make_pair(MD->getParent(), in FinalOverriders() 204 OverriderInfo& Overrider = OverridersMap[std::make_pair(MD, BaseOffset)]; in FinalOverriders() 411 for (const auto *MD : RD->methods()) { in dump() local 412 if (!VTableContextBase::hasVtableSlot(MD)) in dump() 414 MD = MD->getCanonicalDecl(); in dump() [all …]
|
H A D | Mangle.cpp | 227 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) in mangleName() local 228 if (MD->isImplicitObjectMemberFunction()) in mangleName() 328 void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD, in mangleObjCMethodName() argument 337 OS << (MD->isClassMethod() ? "_c_" : "_i_") in mangleObjCMethodName() 338 << MD->getClassInterface()->getName() << '_'; in mangleObjCMethodName() 341 if (auto category = MD->getCategory()) in mangleObjCMethodName() 346 auto selector = MD->getSelector(); in mangleObjCMethodName() 368 OS << (MD->isInstanceMethod() ? '-' : '+') << '['; in mangleObjCMethodName() 369 if (const auto *CID = MD->getCategory()) { in mangleObjCMethodName() 375 dyn_cast<ObjCContainerDecl>(MD->getDeclContext())) { in mangleObjCMethodName() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.cpp | 138 auto OrderConstantFromMetadata = [&](Metadata *MD) { in orderModule() argument 139 if (const auto *VAM = dyn_cast<ValueAsMetadata>(MD)) { in orderModule() 141 } else if (const auto *AL = dyn_cast<DIArgList>(MD)) { in orderModule() 272 auto PredictValueOrderFromMetadata = [&](Metadata *MD) { in predictUseListOrder() argument 273 if (const auto *VAM = dyn_cast<ValueAsMetadata>(MD)) { in predictUseListOrder() 275 } else if (const auto *AL = dyn_cast<DIArgList>(MD)) { in predictUseListOrder() 429 auto EnumerateNonLocalValuesFromMetadata = [&](Metadata *MD) { in ValueEnumerator() argument 430 assert(MD && "Metadata unexpectedly null"); in ValueEnumerator() 431 if (const auto *AL = dyn_cast<DIArgList>(MD)) { in ValueEnumerator() 439 if (!isa<LocalAsMetadata>(MD)) in ValueEnumerator() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CXXSelfAssignmentChecker.cpp | 42 const auto *MD = dyn_cast<CXXMethodDecl>(LCtx->getDecl()); in checkBeginFunction() local 43 if (!MD) in checkBeginFunction() 45 if (!MD->isCopyAssignmentOperator() && !MD->isMoveAssignmentOperator()) in checkBeginFunction() 50 State->getSVal(SVB.getCXXThis(MD, LCtx->getStackFrame())); in checkBeginFunction() 51 auto Param = SVB.makeLoc(State->getRegion(MD->getParamDecl(0), LCtx)); in checkBeginFunction() 56 C.getNoteTag([MD](PathSensitiveBugReport &BR) -> std::string { in checkBeginFunction() 59 Out << "Assuming " << MD->getParamDecl(0)->getName() << " == *this"; in checkBeginFunction() 66 C.getNoteTag([MD](PathSensitiveBugReport &BR) -> std::string { in checkBeginFunction() 69 Out << "Assuming " << MD->getParamDecl(0)->getName() << " != *this"; in checkBeginFunction()
|
/freebsd/sbin/newfs/ |
H A D | runtest00.sh | 5 MD=99 10 mdconfig -d -u $MD || true 11 mdconfig -a -t malloc -s $s -u $MD 12 disklabel -w md$MD auto 13 ./newfs -R /dev/md${MD}c 15 md5 < /dev/md${MD}c 17 mdconfig -d -u $MD 1>&2 || true
|
H A D | runtest01.sh | 5 MD=99 8 mdconfig -d -u $MD || true 10 mdconfig -a -t malloc -s $s -u $MD 12 disklabel -w md$MD auto 14 ./newfs -R /dev/md${MD}c 16 if cmp /dev/md${MD}c /dev/md${ME}c ; then 23 mdconfig -d -u $MD || true
|
/freebsd/lib/libmd/tests/ |
H A D | mddriver.c | 22 #ifndef MD 23 #define MD 5 macro 26 #if MD == 2 30 #if MD == 4 34 #if MD == 5 46 MD, string, MDData(string, strlen(string), buf)); in MDString() 53 printf("MD%d test suite:\n", MD); in main()
|
/freebsd/sbin/fdisk/ |
H A D | runtest.sh | 4 MD=`mdconfig -a -t malloc -s 4m -x 63 -y 16` 5 if [ ! -c /dev/${MD} ] ; then 6 echo "MD device $MD did not materialize" 1>&2 9 trap "mdconfig -d -u ${MD}" EXIT INT TERM 14 ./fdisk -b tmp -I $MD > /dev/null 2>&1 17 c=`dd if=/dev/${MD} count=1 2>/dev/null | md5` 23 c=`./fdisk $MD | md5`
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 340 const MacroDefinition &MD, SourceRange Range, in MacroExpands() argument 345 const MacroDirective *MD) { in MacroDefined() argument 355 const MacroDefinition &MD, in MacroUndefined() argument 361 virtual void Defined(const Token &MacroNameTok, const MacroDefinition &MD, in Defined() argument 413 const MacroDefinition &MD) { in Ifdef() argument 421 const MacroDefinition &MD) { in Elifdef() argument 437 const MacroDefinition &MD) { in Ifndef() argument 445 const MacroDefinition &MD) { in Elifndef() argument 668 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument 670 First->MacroExpands(MacroNameTok, MD, Range, Args); in MacroExpands() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | ModuleDepCollector.cpp | 299 ModuleDeps *MD = ModuleDepsByID.lookup(MID); in collectModuleMapFiles() local 300 assert(MD && "Inconsistent dependency info"); in collectModuleMapFiles() 302 auto FE = ScanInstance.getFileManager().getFile(MD->ClangModuleMapFile); in collectModuleMapFiles() 315 ModuleDeps *MD = ModuleDepsByID.lookup(MID); in addModuleMapFiles() local 316 assert(MD && "Inconsistent dependency info"); in addModuleMapFiles() 317 CI.getFrontendOpts().ModuleMapFiles.push_back(MD->ClangModuleMapFile); in addModuleMapFiles() 388 static std::string getModuleContextHash(const ModuleDeps &MD, in getModuleContextHash() argument 418 for (const auto &ID : MD.ClangModuleDeps) { in getModuleContextHash() 577 ModuleDeps &MD = *ModI.first->second; in handleTopLevelModule() local 579 MD.ID.ModuleName = M->getFullModuleName(); in handleTopLevelModule() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/ |
H A D | DXILValueEnumerator.cpp | 451 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() local 452 if (!MD) { in ValueEnumerator() 460 if (isa<LocalAsMetadata>(MD->getMetadata())) in ValueEnumerator() 462 if (auto *AL = dyn_cast<DIArgList>(MD->getMetadata())) { in ValueEnumerator() 469 EnumerateMetadata(&F, MD->getMetadata()); in ValueEnumerator() 518 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() local 519 return getMetadataID(MD->getMetadata()); in getValueID() 566 const Metadata *MD = I.first; in print() local 569 MD->print(OS); in print() 589 void ValueEnumerator::EnumerateNamedMDNode(const NamedMDNode *MD) { in EnumerateNamedMDNode() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PreprocessingRecord.cpp | 402 const MacroDefinition &MD) { in Ifdef() argument 404 if (MD) in Ifdef() 405 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Ifdef() 410 const MacroDefinition &MD) { in Elifdef() argument 412 if (MD) in Elifdef() 413 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Elifdef() 418 const MacroDefinition &MD) { in Ifndef() argument 420 if (MD) in Ifndef() 421 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Ifndef() 427 const MacroDefinition &MD) { in Elifndef() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | ByteCodeEmitter.cpp | 42 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl); in compileFunc() local 43 MD && MD->isLambdaStaticInvoker()) { in compileFunc() 51 const CXXRecordDecl *ClosureClass = MD->getParent(); in compileFunc() 55 assert(MD->isFunctionTemplateSpecialization() && in compileFunc() 58 const TemplateArgumentList *TAL = MD->getTemplateSpecializationArgs(); in compileFunc() 91 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl)) { in compileFunc() local 93 HasThisPointer = MD->isInstance(); in compileFunc() 94 if (MD->isImplicitObjectMemberFunction()) { in compileFunc() 102 if (isLambdaCallOperator(MD)) { in compileFunc() 105 if (!MD->getParent()->isCompleteDefinition()) in compileFunc() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TypeBasedAliasAnalysis.cpp | 369 static bool isStructPathTBAA(const MDNode *MD) { in isStructPathTBAA() argument 372 return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3; in isStructPathTBAA() 739 MDNode *AAMDNodes::shiftTBAA(MDNode *MD, size_t Offset) { in shiftTBAA() argument 742 return MD; in shiftTBAA() 744 if (!isStructPathTBAA(MD)) in shiftTBAA() 745 return MD; in shiftTBAA() 755 return MD; in shiftTBAA() 758 MDNode *AAMDNodes::shiftTBAAStruct(MDNode *MD, size_t Offset) { in shiftTBAAStruct() argument 761 return MD; in shiftTBAAStruct() 763 for (size_t i = 0, size = MD->getNumOperands(); i < size; i += 3) { in shiftTBAAStruct() [all …]
|