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

/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h41 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute member in class:llvm::AttributeImpl
51 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} argument
58 bool isEnumAttribute() const { return KindID == EnumAttrEntry; }
59 bool isIntAttribute() const { return KindID == IntAttrEntry; }
60 bool isStringAttribute() const { return KindID == StringAttrEntry; }
61 bool isTypeAttribute() const { return KindID == TypeAttrEntry; }
H A DMetadata.cpp1449 unsigned KindID = getContext().getMDKindID(Kind);
1450 return getMetadataImpl(KindID);
1453 MDNode *Value::getMetadataImpl(unsigned KindID) const {
1456 return Attachements.lookup(KindID);
1459 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const {
1461 getContext().pImpl->ValueMetadata.at(this).get(KindID, MDs);
1479 void Value::setMetadata(unsigned KindID, MDNode *Node) {
1488 Info.set(KindID, Node);
1500 Info.erase(KindID);
1513 void Value::addMetadata(unsigned KindID, MDNod
[all...]
H A DCore.cpp151 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, argument
154 auto AttrKind = (Attribute::AttrKind)KindID;
169 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID, argument
172 auto AttrKind = (Attribute::AttrKind)KindID;
993 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { argument
996 if (auto *MD = I->getMetadata(KindID))
1015 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) { argument
1018 unwrap<Instruction>(Inst)->setMetadata(KindID, N);
2419 unsigned KindID) {
2421 Idx, (Attribute::AttrKind)KindID));
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSimplifyQuery.h29 MDNode *getMetadata(const Instruction *I, unsigned KindID) const {
31 return I->getMetadata(KindID);
/freebsd-current/contrib/llvm-project/clang/include/clang/Analysis/
H A DCloneDetection.h348 size_t KindID; member in struct:clang::VariablePattern::VariableOccurence
352 VariableOccurence(size_t KindID, const Stmt *Mention) argument
353 : KindID(KindID), Mention(Mention) {}
/freebsd-current/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 {
594 return getMetadata(KindID) != nullptr;
606 void setMetadata(unsigned KindID, MDNode *Node);
612 void addMetadata(unsigned KindID, MDNode &MD);
619 bool eraseMetadata(unsigned KindID);
[all...]
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);
361 /// pair returned is the KindID, the second element is the metadata value.
362 /// This list is returned sorted by the KindID.
378 void setMetadata(unsigned KindID, MDNode *Node);
/freebsd-current/contrib/llvm-project/clang/lib/Analysis/
H A DCloneDetection.cpp570 if (ThisOccurence.KindID == OtherOccurence.KindID)
589 if (OtherOccurence.KindID < Variables.size())
590 FirstSuggestion = Variables[OtherOccurence.KindID];
595 Variables[ThisOccurence.KindID], ThisOccurence.Mention,
602 if (ThisOccurence.KindID < Other.Variables.size())
603 SecondSuggestion = Other.Variables[ThisOccurence.KindID];
608 Other.Variables[OtherOccurence.KindID], OtherOccurence.Mention,
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp248 for (auto [KindID, Node] : MDs)
249 NF->addMetadata(KindID, *Node);
1081 for (auto [KindID, Node] : MDs)
1082 NF->addMetadata(KindID, *Node);
H A DOpenMPOpt.cpp5912 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); local
5913 if (!KindID || KindID->getString() != "kernel")
/freebsd-current/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-current/contrib/llvm-project/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp2066 unsigned KindID = OperandConversionKinds.size();
2072 ConversionTable.back().push_back(KindID);

Completed in 236 milliseconds