| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | AttributeImpl.h | 43 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 D | Metadata.cpp | 1523 unsigned KindID = getContext().getMDKindID(Kind); in getMetadata() local 1524 return getMetadataImpl(KindID); in getMetadata() 1527 MDNode *Value::getMetadataImpl(unsigned KindID) const { in getMetadataImpl() 1530 return Attachements.lookup(KindID); in getMetadataImpl() 1533 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata() argument 1535 getContext().pImpl->ValueMetadata.at(this).get(KindID, MDs); in getMetadata() 1553 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument 1562 Info.set(KindID, Node); in setMetadata() 1574 Info.erase(KindID); in setMetadata() 1587 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument [all …]
|
| H A D | Core.cpp | 164 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateEnumAttribute() argument 167 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute() 182 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateTypeAttribute() argument 185 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute() 195 unsigned KindID, in LLVMCreateConstantRangeAttribute() argument 200 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateConstantRangeAttribute() 1080 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument 1083 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata() 1102 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) { in LLVMSetMetadata() argument 1105 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CloneDetection.cpp | 569 if (ThisOccurence.KindID == OtherOccurence.KindID) in countPatternDifferences() 588 if (OtherOccurence.KindID < Variables.size()) in countPatternDifferences() 589 FirstSuggestion = Variables[OtherOccurence.KindID]; in countPatternDifferences() 594 Variables[ThisOccurence.KindID], ThisOccurence.Mention, in countPatternDifferences() 601 if (ThisOccurence.KindID < Other.Variables.size()) in countPatternDifferences() 602 SecondSuggestion = Other.Variables[ThisOccurence.KindID]; in countPatternDifferences() 607 Other.Variables[OtherOccurence.KindID], OtherOccurence.Mention, in countPatternDifferences()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Value.h | 576 MDNode *getMetadata(unsigned KindID) const { in getMetadata() argument 579 return getMetadataImpl(KindID); in getMetadata() 588 LLVM_ABI void getMetadata(unsigned KindID, 606 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument 607 return getMetadata(KindID) != nullptr; in hasMetadata() 619 LLVM_ABI void setMetadata(unsigned KindID, MDNode *Node); 625 LLVM_ABI void addMetadata(unsigned KindID, MDNode &MD); 632 LLVM_ABI bool eraseMetadata(unsigned KindID); 643 LLVM_ABI MDNode *getMetadataImpl(unsigned KindID) const;
|
| H A D | Instruction.h | 417 bool hasMetadata(unsigned KindID) const { 418 return getMetadata(KindID) != nullptr; 428 MDNode *getMetadata(unsigned KindID) const { 430 if (KindID == LLVMContext::MD_dbg) 432 return Value::getMetadata(KindID); 460 LLVM_ABI void setMetadata(unsigned KindID, MDNode *Node);
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | SimplifyQuery.h | 31 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata() 33 return I->getMetadata(KindID); in getMetadata()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 243 for (auto [KindID, Node] : MDs) in deleteDeadVarargs() 244 NF->addMetadata(KindID, *Node); in deleteDeadVarargs() 1085 for (auto [KindID, Node] : MDs) in removeDeadStuffFromFunction() 1086 NF->addMetadata(KindID, *Node); in removeDeadStuffFromFunction()
|
| H A D | ExpandVariadics.cpp | 555 for (auto [KindID, Node] : MDs) in deriveFixedArityReplacement() 556 NF->addMetadata(KindID, *Node); in deriveFixedArityReplacement()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 684 unsigned KindID, 702 unsigned KindID, 717 LLVMContextRef C, unsigned KindID, unsigned NumBits, 3059 unsigned KindID); 3064 unsigned KindID); 3695 LLVM_C_ABI LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID); 3700 LLVM_C_ABI void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, 3922 unsigned KindID); 3927 unsigned KindID);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Instruction.h | 182 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument 183 return cast<llvm::Instruction>(Val)->hasMetadata(KindID); in hasMetadata()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | AsmMatcherEmitter.cpp | 2078 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local 2084 ConversionTable.back().push_back(KindID); in emitConvertFuncs()
|