/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | AttributeImpl.h | 41 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable 51 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} in AttributeImpl() argument 58 bool isEnumAttribute() const { return KindID == EnumAttrEntry; } in isEnumAttribute() 59 bool isIntAttribute() const { return KindID == IntAttrEntry; } in isIntAttribute() 60 bool isStringAttribute() const { return KindID == StringAttrEntry; } in isStringAttribute() 61 bool isTypeAttribute() const { return KindID == TypeAttrEntry; } in isTypeAttribute()
|
H A D | Metadata.cpp | 1288 MDNode *Value::getMetadata(unsigned KindID) const { in getMetadata() 1293 return Info.lookup(KindID); in getMetadata() 1334 Info.set(KindID, Node); in setMetadata() 1346 Info.erase(KindID); in setMetadata() 1370 bool Value::eraseMetadata(unsigned KindID) { in eraseMetadata() argument 1376 bool Changed = Store.erase(KindID); in eraseMetadata() 1460 if (KindID == LLVMContext::MD_dbg) { in setMetadata() 1466 if (KindID == LLVMContext::MD_DIAssignID) { in setMetadata() 1475 Value::setMetadata(KindID, Node); in setMetadata() 1522 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl() [all …]
|
H A D | Core.cpp | 160 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute() 178 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute() 938 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument 941 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata() 963 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata() 2435 unsigned KindID) { in LLVMGetEnumAttributeAtIndex() argument 2437 Idx, (Attribute::AttrKind)KindID)); in LLVMGetEnumAttributeAtIndex() 2448 unsigned KindID) { in LLVMRemoveEnumAttributeAtIndex() argument 2849 unsigned KindID) { in LLVMGetCallSiteEnumAttribute() argument 2851 Idx, (Attribute::AttrKind)KindID)); in LLVMGetCallSiteEnumAttribute() [all …]
|
/openbsd/gnu/llvm/clang/lib/Analysis/ |
H A D | CloneDetection.cpp | 570 if (ThisOccurence.KindID == OtherOccurence.KindID) in countPatternDifferences() 589 if (OtherOccurence.KindID < Variables.size()) in countPatternDifferences() 590 FirstSuggestion = Variables[OtherOccurence.KindID]; in countPatternDifferences() 595 Variables[ThisOccurence.KindID], ThisOccurence.Mention, in countPatternDifferences() 602 if (ThisOccurence.KindID < Other.Variables.size()) in countPatternDifferences() 603 SecondSuggestion = Other.Variables[ThisOccurence.KindID]; in countPatternDifferences() 608 Other.Variables[OtherOccurence.KindID], OtherOccurence.Mention, in countPatternDifferences()
|
/openbsd/gnu/llvm/clang/include/clang/Analysis/ |
H A D | CloneDetection.h | 348 size_t KindID; member 352 VariableOccurence(size_t KindID, const Stmt *Mention) in VariableOccurence() 353 : KindID(KindID), Mention(Mention) {} in VariableOccurence()
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | Instruction.h | 264 bool hasMetadata(unsigned KindID) const { 265 return getMetadata(KindID) != nullptr; 275 MDNode *getMetadata(unsigned KindID) const { 277 return getMetadataImpl(KindID); 305 void setMetadata(unsigned KindID, MDNode *Node); 545 MDNode *getMetadataImpl(unsigned KindID) const;
|
H A D | Value.h | 565 MDNode *getMetadata(unsigned KindID) const; 573 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 589 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument 590 return getMetadata(KindID) != nullptr; in hasMetadata() 602 void setMetadata(unsigned KindID, MDNode *Node); 608 void addMetadata(unsigned KindID, MDNode &MD); 615 bool eraseMetadata(unsigned KindID);
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | InstructionSimplify.h | 68 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata() 70 return I->getMetadata(KindID); in getMetadata()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 241 for (auto [KindID, Node] : MDs) in deleteDeadVarargs() 242 NF->addMetadata(KindID, *Node); in deleteDeadVarargs() 1065 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction() 1066 NF->addMetadata(KindID, *Node); in removeDeadStuffFromFunction()
|
H A D | OpenMPOpt.cpp | 5514 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); in getDeviceKernels() local 5515 if (!KindID || KindID->getString() != "kernel") in getDeviceKernels()
|
/openbsd/gnu/llvm/llvm/include/llvm-c/ |
H A D | Core.h | 620 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, 637 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID, 2641 unsigned KindID); 2646 unsigned KindID); 3188 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID); 3193 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node); 3359 unsigned KindID); 3364 unsigned KindID);
|
/openbsd/gnu/llvm/llvm/utils/TableGen/ |
H A D | AsmMatcherEmitter.cpp | 2063 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local 2069 ConversionTable.back().push_back(KindID); in emitConvertFuncs()
|