Home
last modified time | relevance | path

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

/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/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/swiftshader/third_party/LLVM/lib/VMCore/
DMetadata.cpp440 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
444 if (KindID == LLVMContext::MD_dbg) { in setMetadata()
459 if (Info[i].first == KindID) { in setMetadata()
466 Info.push_back(std::make_pair(KindID, Node)); in setMetadata()
477 if (Info.size() == 1 && Info[0].first == KindID) { in setMetadata()
485 if (Info[i].first == KindID) { in setMetadata()
494 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
496 if (KindID == LLVMContext::MD_dbg) in getMetadataImpl()
506 if (I->first == KindID) in getMetadataImpl()
DCore.cpp421 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
422 return wrap(unwrap<Instruction>(Inst)->getMetadata(KindID)); in LLVMGetMetadata()
425 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef MD) { in LLVMSetMetadata() argument
426 unwrap<Instruction>(Inst)->setMetadata(KindID, MD? unwrap<MDNode>(MD) : NULL); in LLVMSetMetadata()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstruction.h139 MDNode *getMetadata(unsigned KindID) const { in getMetadata() argument
141 return getMetadataImpl(KindID); in getMetadata()
170 void setMetadata(unsigned KindID, MDNode *Node);
187 MDNode *getMetadataImpl(unsigned KindID) const;
/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/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/include/llvm-c/
DCore.h528 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
529 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
/external/llvm/utils/TableGen/
DAsmMatcherEmitter.cpp1925 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local
1931 ConversionTable.back().push_back(KindID); in emitConvertFuncs()