Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h41 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 DMetadata.cpp1450 return getMetadataImpl(KindID); in getMetadata()
1456 return Attachements.lookup(KindID); in getMetadataImpl()
1488 Info.set(KindID, Node); in setMetadata()
1500 Info.erase(KindID); in setMetadata()
1524 bool Value::eraseMetadata(unsigned KindID) { in eraseMetadata() argument
1530 bool Changed = Store.erase(KindID); in eraseMetadata()
1568 unsigned KindID = Ctx.getMDKindID(Kind); in getMetadataImpl() local
1569 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
1571 return Value::getMetadata(KindID); in getMetadataImpl()
1632 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
[all …]
H A DCore.cpp154 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute()
172 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute()
993 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
996 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata()
1018 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata()
2419 unsigned KindID) { in LLVMGetEnumAttributeAtIndex() argument
2421 Idx, (Attribute::AttrKind)KindID)); in LLVMGetEnumAttributeAtIndex()
2432 unsigned KindID) { in LLVMRemoveEnumAttributeAtIndex() argument
2861 unsigned KindID) { in LLVMGetCallSiteEnumAttribute() argument
2863 Idx, (Attribute::AttrKind)KindID)); in LLVMGetCallSiteEnumAttribute()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DValue.h565 MDNode *getMetadata(unsigned KindID) const { in getMetadata() argument
568 return getMetadataImpl(KindID); in getMetadata()
577 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
593 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument
594 return getMetadata(KindID) != nullptr; in hasMetadata()
606 void setMetadata(unsigned KindID, MDNode *Node);
612 void addMetadata(unsigned KindID, MDNode &MD);
619 bool eraseMetadata(unsigned KindID);
630 MDNode *getMetadataImpl(unsigned KindID) const;
H A DInstruction.h335 bool hasMetadata(unsigned KindID) const {
336 return getMetadata(KindID) != nullptr;
346 MDNode *getMetadata(unsigned KindID) const {
348 if (KindID == LLVMContext::MD_dbg)
350 return Value::getMetadata(KindID);
378 void setMetadata(unsigned KindID, MDNode *Node);
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSimplifyQuery.h29 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
31 return I->getMetadata(KindID); in getMetadata()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h647 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
664 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
2724 unsigned KindID);
2729 unsigned KindID);
3347 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
3352 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
3518 unsigned KindID);
3523 unsigned KindID);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp248 for (auto [KindID, Node] : MDs) in deleteDeadVarargs()
249 NF->addMetadata(KindID, *Node); in deleteDeadVarargs()
1081 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction()
1082 NF->addMetadata(KindID, *Node); in removeDeadStuffFromFunction()
H A DOpenMPOpt.cpp5912 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); in getDeviceKernels() local
5913 if (!KindID || KindID->getString() != "kernel") in getDeviceKernels()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp2066 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local
2072 ConversionTable.back().push_back(KindID); in emitConvertFuncs()