Home
last modified time | relevance | path

Searched refs:NamedMDNode (Results 1 – 25 of 86) sorted by relevance

1234

/external/swiftshader/third_party/LLVM/include/llvm/
DModule.h84 template<> struct ilist_traits<NamedMDNode>
85 : public ilist_default_traits<NamedMDNode> {
88 NamedMDNode *createSentinel() const {
89 return static_cast<NamedMDNode*>(&Sentinel);
91 static void destroySentinel(NamedMDNode*) {}
93 NamedMDNode *provideInitialHead() const { return createSentinel(); }
94 NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); }
95 static void noteHead(NamedMDNode*, NamedMDNode*) {}
96 void addNodeToList(NamedMDNode *) {}
97 void removeNodeFromList(NamedMDNode *) {}
[all …]
DMetadata.h184 class NamedMDNode : public ilist_node<NamedMDNode> {
185 friend class SymbolTableListTraits<NamedMDNode, Module>;
186 friend struct ilist_traits<NamedMDNode>;
189 NamedMDNode(const NamedMDNode &); // DO NOT IMPLEMENT
197 explicit NamedMDNode(const Twine &N);
208 ~NamedMDNode();
/external/llvm/include/llvm/IR/
DModule.h40 template<> struct ilist_traits<NamedMDNode>
41 : public ilist_default_traits<NamedMDNode> {
44 NamedMDNode *createSentinel() const {
45 return static_cast<NamedMDNode*>(&Sentinel);
47 static void destroySentinel(NamedMDNode*) {}
49 NamedMDNode *provideInitialHead() const { return createSentinel(); }
50 NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); }
51 static void noteHead(NamedMDNode*, NamedMDNode*) {}
52 void addNodeToList(NamedMDNode *) {}
53 void removeNodeFromList(NamedMDNode *) {}
[all …]
DMetadata.h1249 class NamedMDNode : public ilist_node<NamedMDNode> {
1250 friend struct ilist_traits<NamedMDNode>;
1253 NamedMDNode(const NamedMDNode &) = delete;
1261 explicit NamedMDNode(const Twine &N);
1266 const NamedMDNode *Node;
1268 op_iterator_impl(const NamedMDNode *N, unsigned i) : Node(N), Idx(i) { }
1270 friend class NamedMDNode;
1306 ~NamedMDNode();
/external/llvm/lib/IR/
DModule.cpp54 NamedMDSymTab = new StringMap<NamedMDNode *>(); in Module()
67 delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab); in ~Module()
263 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const { in getNamedMetadata()
266 return static_cast<StringMap<NamedMDNode*> *>(NamedMDSymTab)->lookup(NameRef); in getNamedMetadata()
272 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) { in getOrInsertNamedMetadata()
273 NamedMDNode *&NMD = in getOrInsertNamedMetadata()
274 (*static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab))[Name]; in getOrInsertNamedMetadata()
276 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
285 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata()
286 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
[all …]
DMetadata.cpp1042 NamedMDNode::NamedMDNode(const Twine &N) in NamedMDNode() function in NamedMDNode
1046 NamedMDNode::~NamedMDNode() { in ~NamedMDNode()
1051 unsigned NamedMDNode::getNumOperands() const { in getNumOperands()
1055 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1061 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1063 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1068 void NamedMDNode::eraseFromParent() { in eraseFromParent()
1072 void NamedMDNode::dropAllReferences() { in dropAllReferences()
1076 StringRef NamedMDNode::getName() const { in getName()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DModule.cpp48 NamedMDSymTab = new StringMap<NamedMDNode *>(); in Module()
61 delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab); in ~Module()
304 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const { in getNamedMetadata()
307 return static_cast<StringMap<NamedMDNode*> *>(NamedMDSymTab)->lookup(NameRef); in getNamedMetadata()
313 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) { in getOrInsertNamedMetadata()
314 NamedMDNode *&NMD = in getOrInsertNamedMetadata()
315 (*static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab))[Name]; in getOrInsertNamedMetadata()
317 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
324 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata()
325 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
[all …]
DMetadata.cpp380 NamedMDNode::NamedMDNode(const Twine &N) in NamedMDNode() function in NamedMDNode
385 NamedMDNode::~NamedMDNode() { in ~NamedMDNode()
391 unsigned NamedMDNode::getNumOperands() const { in getNumOperands()
396 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
402 void NamedMDNode::addOperand(MDNode *M) { in addOperand()
410 void NamedMDNode::eraseFromParent() { in eraseFromParent()
415 void NamedMDNode::dropAllReferences() { in dropAllReferences()
420 StringRef NamedMDNode::getName() const { in getName()
/external/llvm/test/Transforms/DeadStoreElimination/
D2011-09-06-MemCpy.ll45 %struct.iplist.8 = type { %struct.ilist_traits.7, %struct.NamedMDNode* }
47 %struct.ilist_node.6 = type { %struct.ilist_half_node.5, %struct.NamedMDNode* }
48 %struct.ilist_half_node.5 = type { %struct.NamedMDNode* }
49 %struct.NamedMDNode = type { %struct.ilist_node.6, %struct.basic_string, %struct.Module*, i8* }
/external/swiftshader/third_party/LLVM/test/Transforms/DeadStoreElimination/
D2011-09-06-MemCpy.ll45 %struct.iplist.8 = type { %struct.ilist_traits.7, %struct.NamedMDNode* }
47 %struct.ilist_node.6 = type { %struct.ilist_half_node.5, %struct.NamedMDNode* }
48 %struct.ilist_half_node.5 = type { %struct.NamedMDNode* }
49 %struct.NamedMDNode = type { %struct.ilist_node.6, %struct.basic_string, %struct.Module*, i8* }
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DStripSymbols.cpp263 NamedMDNode *NMD = NMI; in StripDebugInfo()
354 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in runOnModule()
378 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) { in runOnModule()
404 if (NamedMDNode *LVNMD = in runOnModule()
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DValueEnumerator.h31 class NamedMDNode; variable
141 void EnumerateNamedMDNode(const NamedMDNode *NMD);
/external/spirv-llvm/lib/SPIRV/
DSPIRVMDBuilder.h55 NamedMDWrapper(NamedMDNode &Named, SPIRVMDBuilder& BB) in NamedMDWrapper()
64 NamedMDNode &NMD;
DSPIRVMDWalker.h56 NamedMDWrapper(NamedMDNode *Named, SPIRVMDWalker& WW) in NamedMDWrapper()
77 NamedMDNode *NMD;
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h1282 class NamedMDNode : public ilist_node<NamedMDNode> {
1292 explicit NamedMDNode(const Twine &N);
1297 const NamedMDNode *Node = nullptr;
1300 op_iterator_impl(const NamedMDNode *N, unsigned i) : Node(N), Idx(i) { }
1302 friend class NamedMDNode;
1336 NamedMDNode(const NamedMDNode &) = delete;
1337 ~NamedMDNode();
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DCloneModule.cpp119 const NamedMDNode &NMD = *I; in CloneModule()
120 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
/external/llvm/test/Feature/
DNamedMDNode.ll3 ;; Simple NamedMDNode
/external/swiftshader/third_party/LLVM/test/Feature/
DNamedMDNode.ll3 ;; Simple NamedMDNode
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp167 const NamedMDNode &NMD = *I; in CloneModule()
168 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h38 class NamedMDNode; variable
282 void EnumerateNamedMDNode(const NamedMDNode *NMD);
/external/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp58 void remapNamedMDNode(ValueToValueMapTy &VM, NamedMDNode *N);
135 for (NamedMDNode &I : M.named_metadata()) { in runOnModule()
364 void GenericToNVVM::remapNamedMDNode(ValueToValueMapTy &VM, NamedMDNode *N) { in remapNamedMDNode()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DDbgInfoPrinter.cpp64 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv"); in findDbgGlobalDeclare()
81 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp"); in findDbgSubprogramDeclare()
DDebugInfo.cpp868 NamedMDNode *llvm::getFnSpecificMDNode(const Module &M, DISubprogram Fn) { in getFnSpecificMDNode()
884 NamedMDNode *llvm::getOrInsertFnSpecificMDNode(Module &M, DISubprogram Fn) { in getOrInsertFnSpecificMDNode()
930 if (NamedMDNode *CU_Nodes = M.getNamedMetadata("llvm.dbg.cu")) in processModule()
963 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in processModule()
974 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in processModule()
/external/llvm/unittests/IR/
DVerifierTest.cpp189 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in TEST()
213 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp323 if (NamedMDNode *GCov = M->getNamedMetadata("llvm.gcov")) { in mangleName()
354 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in emitGCNO()
419 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in emitProfileArcs()
639 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in insertCounterWriteout()

1234