Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DGlobalObject.h128 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument
129 return getMetadata(KindID) != nullptr; in hasMetadata()
140 MDNode *getMetadata(unsigned KindID) const;
148 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
157 void setMetadata(unsigned KindID, MDNode *MD);
163 void addMetadata(unsigned KindID, MDNode &MD);
175 bool eraseMetadata(unsigned KindID);
DInstruction.h233 bool hasMetadata(unsigned KindID) const {
234 return getMetadata(KindID) != nullptr;
244 MDNode *getMetadata(unsigned KindID) const {
246 return getMetadataImpl(KindID);
280 void setMetadata(unsigned KindID, MDNode *Node);
465 MDNode *getMetadataImpl(unsigned KindID) const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DGlobalObject.h86 MDNode *getMetadata(unsigned KindID) const;
94 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
103 void setMetadata(unsigned KindID, MDNode *MD);
109 void addMetadata(unsigned KindID, MDNode &MD);
119 void eraseMetadata(unsigned KindID);
DInstruction.h175 MDNode *getMetadata(unsigned KindID) const { in getMetadata() argument
177 return getMetadataImpl(KindID); in getMetadata()
211 void setMetadata(unsigned KindID, MDNode *Node);
355 MDNode *getMetadataImpl(unsigned KindID) const;
/external/llvm/include/llvm/IR/
DGlobalObject.h83 MDNode *getMetadata(unsigned KindID) const;
91 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
100 void setMetadata(unsigned KindID, MDNode *MD);
106 void addMetadata(unsigned KindID, MDNode &MD);
116 void eraseMetadata(unsigned KindID);
DInstruction.h161 MDNode *getMetadata(unsigned KindID) const {
163 return getMetadataImpl(KindID);
197 void setMetadata(unsigned KindID, MDNode *Node);
330 MDNode *getMetadataImpl(unsigned KindID) const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributeImpl.h39 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable
49 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()
DMetadata.cpp1224 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
1229 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
1241 Info.set(KindID, *Node); in setMetadata()
1254 Info.erase(KindID); in setMetadata()
1270 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1272 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
1280 return Info.lookup(KindID); in getMetadataImpl()
1381 void GlobalObject::getMetadata(unsigned KindID, in getMetadata() argument
1384 getContext().pImpl->GlobalObjectMetadata[this].get(KindID, MDs); in getMetadata()
1393 void GlobalObject::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
[all …]
/external/llvm-project/llvm/lib/IR/
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()
DMetadata.cpp1179 MDNode *Value::getMetadata(unsigned KindID) const { in getMetadata()
1184 return Info.lookup(KindID); in getMetadata()
1195 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata() argument
1197 getContext().pImpl->ValueMetadata[this].get(KindID, MDs); in getMetadata()
1216 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
1225 Info.set(KindID, Node); in setMetadata()
1237 Info.erase(KindID); in setMetadata()
1250 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
1254 getContext().pImpl->ValueMetadata[this].insert(KindID, MD); in addMetadata()
1261 bool Value::eraseMetadata(unsigned KindID) { in eraseMetadata() argument
[all …]
/external/llvm/lib/IR/
DAttributeImpl.h37 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable
50 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} in AttributeImpl() argument
55 bool isEnumAttribute() const { return KindID == EnumAttrEntry; } in isEnumAttribute()
56 bool isIntAttribute() const { return KindID == IntAttrEntry; } in isIntAttribute()
57 bool isStringAttribute() const { return KindID == StringAttrEntry; } in isStringAttribute()
DMetadata.cpp1203 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
1208 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
1220 Info.set(KindID, *Node); in setMetadata()
1233 Info.erase(KindID); in setMetadata()
1248 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1250 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
1258 return Info.lookup(KindID); in getMetadataImpl()
1347 void GlobalObject::getMetadata(unsigned KindID, in getMetadata() argument
1350 getContext().pImpl->GlobalObjectMetadata[this].get(KindID, MDs); in getMetadata()
1359 void GlobalObject::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
[all …]
DCore.cpp134 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateEnumAttribute() argument
136 return wrap(Attribute::get(*unwrap(C), (Attribute::AttrKind)KindID, Val)); in LLVMCreateEnumAttribute()
665 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
668 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata()
687 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) { in LLVMSetMetadata() argument
690 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata()
1849 unsigned KindID) { in LLVMGetEnumAttributeAtIndex() argument
1851 (Attribute::AttrKind)KindID)); in LLVMGetEnumAttributeAtIndex()
1861 unsigned KindID) { in LLVMRemoveEnumAttributeAtIndex() argument
1862 unwrap<Function>(F)->removeAttribute(Idx, (Attribute::AttrKind)KindID); in LLVMRemoveEnumAttributeAtIndex()
[all …]
/external/llvm-project/clang/lib/Analysis/
DCloneDetection.cpp571 if (ThisOccurence.KindID == OtherOccurence.KindID) in countPatternDifferences()
590 if (OtherOccurence.KindID < Variables.size()) in countPatternDifferences()
591 FirstSuggestion = Variables[OtherOccurence.KindID]; in countPatternDifferences()
596 Variables[ThisOccurence.KindID], ThisOccurence.Mention, in countPatternDifferences()
603 if (ThisOccurence.KindID < Other.Variables.size()) in countPatternDifferences()
604 SecondSuggestion = Other.Variables[ThisOccurence.KindID]; in countPatternDifferences()
609 Other.Variables[OtherOccurence.KindID], OtherOccurence.Mention, in countPatternDifferences()
/external/llvm-project/clang/include/clang/Analysis/
DCloneDetection.h356 size_t KindID; member
360 VariableOccurence(size_t KindID, const Stmt *Mention) in VariableOccurence()
361 : KindID(KindID), Mention(Mention) {} in VariableOccurence()
/external/llvm-project/llvm/include/llvm/IR/
DInstruction.h266 bool hasMetadata(unsigned KindID) const {
267 return getMetadata(KindID) != nullptr;
277 MDNode *getMetadata(unsigned KindID) const {
279 return getMetadataImpl(KindID);
312 void setMetadata(unsigned KindID, MDNode *Node);
513 MDNode *getMetadataImpl(unsigned KindID) const;
DValue.h561 MDNode *getMetadata(unsigned KindID) const;
569 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
585 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument
586 return getMetadata(KindID) != nullptr; in hasMetadata()
598 void setMetadata(unsigned KindID, MDNode *Node);
604 void addMetadata(unsigned KindID, MDNode &MD);
611 bool eraseMetadata(unsigned KindID);
/external/llvm-project/llvm/bindings/go/llvm/
DIRBindings.cpp48 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { in LLVMSetMetadata2() argument
50 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
DIRBindings.h44 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD);
/external/llvm/bindings/go/llvm/
DIRBindings.cpp83 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { in LLVMSetMetadata2() argument
85 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
DIRBindings.h50 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD);
/external/llvm-project/llvm/include/llvm/Analysis/
DInstructionSimplify.h68 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
70 return I->getMetadata(KindID); in getMetadata()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h65 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
67 return I->getMetadata(KindID); in getMetadata()
/external/llvm/include/llvm-c/
DCore.h510 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
2019 unsigned KindID);
2024 unsigned KindID);
2464 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
2469 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
2605 unsigned KindID);
2610 unsigned KindID);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h589 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
2524 unsigned KindID);
2529 unsigned KindID);
3071 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
3076 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
3232 unsigned KindID);
3237 unsigned KindID);

12