Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h43 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable
55 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} in AttributeImpl() argument
62 bool isEnumAttribute() const { return KindID == EnumAttrEntry; } in isEnumAttribute()
63 bool isIntAttribute() const { return KindID == IntAttrEntry; } in isIntAttribute()
64 bool isStringAttribute() const { return KindID == StringAttrEntry; } in isStringAttribute()
65 bool isTypeAttribute() const { return KindID == TypeAttrEntry; } in isTypeAttribute()
67 return KindID == ConstantRangeAttrEntry; in isConstantRangeAttribute()
70 return KindID == ConstantRangeListAttrEntry; in isConstantRangeListAttribute()
H A DMetadata.cpp1458 unsigned KindID = getContext().getMDKindID(Kind); in getMetadata() local
1459 return getMetadataImpl(KindID); in getMetadata()
1462 MDNode *Value::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1465 return Attachements.lookup(KindID); in getMetadataImpl()
1468 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata() argument
1470 getContext().pImpl->ValueMetadata.at(this).get(KindID, MDs); in getMetadata()
1488 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
1497 Info.set(KindID, Node); in setMetadata()
1509 Info.erase(KindID); in setMetadata()
1522 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
[all …]
H A DCore.cpp157 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateEnumAttribute() argument
160 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute()
175 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateTypeAttribute() argument
178 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute()
188 unsigned KindID, in LLVMCreateConstantRangeAttribute() argument
193 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateConstantRangeAttribute()
1077 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
1080 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata()
1099 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) { in LLVMSetMetadata() argument
1102 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata()
[all …]
/freebsd/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/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/contrib/llvm-project/llvm/include/llvm/IR/
H A DValue.h565 MDNode *getMetadata(unsigned KindID) const {
568 return getMetadataImpl(KindID);
577 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
582 /// KindID. The first element of each pair returned is the KindID, the second
593 bool hasMetadata(unsigned KindID) const { in hasMetadata()
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);
589 hasMetadata(unsigned KindID) hasMetadata() argument
[all...]
H A DInstruction.h370 bool hasMetadata(unsigned KindID) const {
371 return getMetadata(KindID) != nullptr;
381 MDNode *getMetadata(unsigned KindID) const {
383 if (KindID == LLVMContext::MD_dbg)
385 return Value::getMetadata(KindID);
413 void setMetadata(unsigned KindID, MDNode *Node);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSimplifyQuery.h30 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
32 return I->getMetadata(KindID); in getMetadata()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h666 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
683 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
698 unsigned KindID,
2928 unsigned KindID);
2933 unsigned KindID);
3551 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
3556 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
3720 unsigned KindID);
3725 unsigned KindID);
/freebsd/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()
1080 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction()
1081 NF->addMetadata(KindID, *Node); in removeDeadStuffFromFunction()
H A DExpandVariadics.cpp575 for (auto [KindID, Node] : MDs) in deriveFixedArityReplacement()
576 NF->addMetadata(KindID, *Node); in deriveFixedArityReplacement()
H A DOpenMPOpt.cpp5913 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); in getDeviceKernels() local
5914 if (!KindID || KindID->getString() != "kernel") in getDeviceKernels()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp2084 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local
2090 ConversionTable.back().push_back(KindID); in emitConvertFuncs()