Home
last modified time | relevance | path

Searched refs:KindID (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/llvm/lib/IR/
H A DAttributeImpl.h40 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable
50 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} in AttributeImpl() argument
57 bool isEnumAttribute() const { return KindID == EnumAttrEntry; } in isEnumAttribute()
58 bool isIntAttribute() const { return KindID == IntAttrEntry; } in isIntAttribute()
59 bool isStringAttribute() const { return KindID == StringAttrEntry; } in isStringAttribute()
60 bool isTypeAttribute() const { return KindID == TypeAttrEntry; } in isTypeAttribute()
H A DMetadata.cpp1288 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()
1359 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
1370 bool Value::eraseMetadata(unsigned KindID) { in eraseMetadata() argument
1376 bool Changed = Store.erase(KindID); in eraseMetadata()
1432 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
1437 Value::setMetadata(KindID, Node); in setMetadata()
1479 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
[all …]
H A DCore.cpp149 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute()
179 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute()
926 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
929 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata()
951 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata()
2456 unsigned KindID) { in LLVMGetEnumAttributeAtIndex() argument
2458 Idx, (Attribute::AttrKind)KindID)); in LLVMGetEnumAttributeAtIndex()
2469 unsigned KindID) { in LLVMRemoveEnumAttributeAtIndex() argument
2871 unsigned KindID) { in LLVMGetCallSiteEnumAttribute() argument
2873 Idx, (Attribute::AttrKind)KindID)); in LLVMGetCallSiteEnumAttribute()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCloneDetection.cpp570 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()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DCloneDetection.h348 size_t KindID; member
352 VariableOccurence(size_t KindID, const Stmt *Mention) in VariableOccurence()
353 : KindID(KindID), Mention(Mention) {} in VariableOccurence()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h253 bool hasMetadata(unsigned KindID) const {
254 return getMetadata(KindID) != nullptr;
264 MDNode *getMetadata(unsigned KindID) const {
266 return getMetadataImpl(KindID);
294 void setMetadata(unsigned KindID, MDNode *Node);
511 MDNode *getMetadataImpl(unsigned KindID) const;
H A DValue.h568 MDNode *getMetadata(unsigned KindID) const;
576 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
592 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument
593 return getMetadata(KindID) != nullptr; in hasMetadata()
605 void setMetadata(unsigned KindID, MDNode *Node);
611 void addMetadata(unsigned KindID, MDNode &MD);
618 bool eraseMetadata(unsigned KindID);
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A DIRBindings.cpp48 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { in LLVMSetMetadata2() argument
50 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
H A DIRBindings.h44 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD);
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h68 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
70 return I->getMetadata(KindID); in getMetadata()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h608 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
625 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
2636 unsigned KindID);
2641 unsigned KindID);
3183 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
3188 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
3354 unsigned KindID);
3359 unsigned KindID);
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp5196 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); in getDeviceKernels() local
5197 if (!KindID || KindID->getString() != "kernel") in getDeviceKernels()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp2056 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local
2062 ConversionTable.back().push_back(KindID); in emitConvertFuncs()