Home
last modified time | relevance | path

Searched refs:MDNode (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/external/llvm/include/llvm/IR/
DMDBuilder.h29 class MDNode; variable
51 MDNode *createFPMath(float Accuracy);
58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
61 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
64 MDNode *createUnpredictable();
67 MDNode *createFunctionEntryCount(uint64_t Count);
74 MDNode *createRange(const APInt &Lo, const APInt &Hi);
77 MDNode *createRange(Constant *Lo, Constant *Hi);
87 MDNode *createAnonymousAARoot(StringRef Name = StringRef(),
88 MDNode *Extra = nullptr);
[all …]
DMetadata.h608 explicit AAMDNodes(MDNode *T = nullptr, MDNode *S = nullptr,
609 MDNode *N = nullptr)
621 MDNode *TBAA;
624 MDNode *Scope;
627 MDNode *NoAlias;
634 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(),
638 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(),
642 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^
643 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^
644 DenseMapInfo<MDNode *>::getHashValue(Val.NoAlias);
[all …]
DGlobalObject.h23 class MDNode; variable
83 MDNode *getMetadata(unsigned KindID) const;
84 MDNode *getMetadata(StringRef Kind) const;
91 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
92 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
100 void setMetadata(unsigned KindID, MDNode *MD);
101 void setMetadata(StringRef Kind, MDNode *MD);
106 void addMetadata(unsigned KindID, MDNode &MD);
107 void addMetadata(StringRef Kind, MDNode &MD);
113 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
/external/llvm/lib/IR/
DMDBuilder.cpp28 MDNode *MDBuilder::createFPMath(float Accuracy) { in createFPMath()
34 return MDNode::get(Context, Op); in createFPMath()
37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights()
42 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights()
52 return MDNode::get(Context, Vals); in createBranchWeights()
55 MDNode *MDBuilder::createUnpredictable() { in createUnpredictable()
56 return MDNode::get(Context, None); in createUnpredictable()
59 MDNode *MDBuilder::createFunctionEntryCount(uint64_t Count) { in createFunctionEntryCount()
61 return MDNode::get(Context, in createFunctionEntryCount()
66 MDNode *MDBuilder::createRange(const APInt &Lo, const APInt &Hi) { in createRange()
[all …]
DMetadata.cpp55 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
58 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue()
64 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
272 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses()
282 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate()
288 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists()
294 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
444 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new()
456 void MDNode::operator delete(void *Mem) { in operator delete()
457 MDNode *N = static_cast<MDNode *>(Mem); in operator delete()
[all …]
DDebugLoc.cpp19 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc()
35 MDNode *DebugLoc::getScope() const { in getScope()
45 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope()
51 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc()
58 DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope, in get()
59 const MDNode *InlinedAt) { in get()
65 const_cast<MDNode *>(Scope), in get()
66 const_cast<MDNode *>(InlinedAt)); in get()
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp142 const MDNode *Node;
146 explicit TBAANode(const MDNode *N) : Node(N) {} in TBAANode()
149 const MDNode *getNode() const { return Node; } in getNode()
155 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent()
180 const MDNode *Node;
183 explicit TBAAStructTagNode(const MDNode *N) : Node(N) {} in TBAAStructTagNode()
186 const MDNode *getNode() const { return Node; } in getNode()
188 const MDNode *getBaseType() const { in getBaseType()
189 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType()
191 const MDNode *getAccessType() const { in getAccessType()
[all …]
DScopedNoAliasAA.cpp57 const MDNode *Node;
61 explicit AliasScopeNode(const MDNode *N) : Node(N) {} in AliasScopeNode()
64 const MDNode *getNode() const { return Node; } in getNode()
67 const MDNode *getDomain() const { in getDomain()
70 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getDomain()
81 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias()
83 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias()
131 const MDNode *List, const MDNode *Domain, in collectMDInDomain()
132 SmallPtrSetImpl<const MDNode *> &Nodes) const { in collectMDInDomain()
134 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain()
[all …]
/external/clang/lib/CodeGen/
DCodeGenTBAA.h36 TBAAPathTag(const Type *B, const llvm::MDNode *A, uint64_t O) in TBAAPathTag()
39 const llvm::MDNode *AccessN;
56 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache;
58 llvm::DenseMap<const Type *, llvm::MDNode *> StructTypeMetadataCache;
60 llvm::DenseMap<TBAAPathTag, llvm::MDNode *> StructTagMetadataCache;
62 llvm::DenseMap<const llvm::MDNode *, llvm::MDNode *> ScalarTagMetadataCache;
66 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache;
68 llvm::MDNode *Root;
69 llvm::MDNode *Char;
73 llvm::MDNode *getRoot();
[all …]
DCodeGenTBAA.cpp42 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot()
59 llvm::MDNode *CodeGenTBAA::createTBAAScalarType(StringRef Name, in createTBAAScalarType()
60 llvm::MDNode *Parent) { in createTBAAScalarType()
64 llvm::MDNode *CodeGenTBAA::getChar() { in getChar()
91 llvm::MDNode *
104 if (llvm::MDNode *N = MetadataCache[Ty]) in getTBAAInfo()
169 llvm::MDNode *CodeGenTBAA::getTBAAInfoForVTablePtr() { in getTBAAInfoForVTablePtr()
209 llvm::MDNode *TBAAInfo = MayAlias ? getChar() : getTBAAInfo(QTy); in CollectFields()
210 llvm::MDNode *TBAATag = getTBAAScalarTagInfo(TBAAInfo); in CollectFields()
215 llvm::MDNode *
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DMetadata.cpp51 MDNode *Parent;
53 MDNodeOperand(Value *V, MDNode *P) : CallbackVH(V), Parent(P) {} in MDNodeOperand()
82 static MDNodeOperand *getOperandPtr(MDNode *N, unsigned Op) { in getOperandPtr()
88 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal) in MDNode() function in MDNode
104 MDNode::~MDNode() { in ~MDNode()
130 if (MDNode *MD = dyn_cast<MDNode>(V)) in getFunctionForValue()
136 static const Function *assertLocalFunction(const MDNode *N) { in assertLocalFunction()
143 if (MDNode *MD = dyn_cast<MDNode>(V)) in assertLocalFunction()
161 const Function *MDNode::getFunction() const { in getFunction()
173 void MDNode::destroy() { in destroy()
[all …]
DDebugLoc.cpp19 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const { in getScope()
36 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const { in getInlinedAt()
48 void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA, in getScopeAndInlinedAt()
74 MDNode *Scope, MDNode *InlinedAt) { in get()
99 MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const { in getAsMDNode()
102 MDNode *Scope, *IA; in getAsMDNode()
112 return MDNode::get(Ctx2, Elts); in getAsMDNode()
116 DebugLoc DebugLoc::getFromDILocation(MDNode *N) { in getFromDILocation()
119 MDNode *Scope = dyn_cast_or_null<MDNode>(N->getOperand(2)); in getFromDILocation()
128 return get(LineNo, ColNo, Scope, dyn_cast_or_null<MDNode>(N->getOperand(3))); in getFromDILocation()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DDIBuilder.cpp53 if (MDNode *Temp = SP.getVariablesNodes()) { in finalize()
67 static MDNode *getNonCompileUnitScope(MDNode *N) { in getNonCompileUnitScope()
84 TempEnumTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
86 MDNode *EnumHolder = MDNode::get(VMContext, THElts); in createCompileUnit()
88 TempRetainTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
90 MDNode *RetainHolder = MDNode::get(VMContext, TRElts); in createCompileUnit()
92 TempSubprograms = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
94 MDNode *SPHolder = MDNode::get(VMContext, TSElts); in createCompileUnit()
96 TempGVs = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
98 MDNode *GVHolder = MDNode::get(VMContext, TVElts); in createCompileUnit()
[all …]
DTypeBasedAliasAnalysis.cpp80 const MDNode *Node;
84 explicit TBAANode(const MDNode *N) : Node(N) {} in TBAANode()
87 const MDNode *getNode() const { return Node; } in getNode()
93 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent()
139 bool Aliases(const MDNode *A, const MDNode *B) const;
172 TypeBasedAliasAnalysis::Aliases(const MDNode *A, in Aliases()
173 const MDNode *B) const { in Aliases()
220 const MDNode *AM = LocA.TBAATag; in alias()
222 const MDNode *BM = LocB.TBAATag; in alias()
238 const MDNode *M = Loc.TBAATag; in pointsToConstantMemory()
[all …]
DDebugInfo.cpp83 DIDescriptor(dyn_cast_or_null<const MDNode>(DbgNode->getOperand(Elt))); in getDescriptorField()
123 MDNode *DIVariable::getInlinedAt() const { in getInlinedAt()
126 return dyn_cast_or_null<MDNode>(DbgNode->getOperand(7)); in getInlinedAt()
296 DIType::DIType(const MDNode *N) : DIScope(N) { in DIType()
321 MDNode *Node = const_cast<MDNode*>(DbgNode); in replaceAllUsesWith()
322 const MDNode *DN = D; in replaceAllUsesWith()
325 MDNode::deleteTemporary(Node); in replaceAllUsesWith()
331 void DIType::replaceAllUsesWith(MDNode *D) { in replaceAllUsesWith()
341 MDNode *Node = const_cast<MDNode*>(DbgNode); in replaceAllUsesWith()
342 const MDNode *DN = D; in replaceAllUsesWith()
[all …]
/external/llvm/unittests/IR/
DMDBuilderTest.cpp34 MDNode *MD0 = MDHelper.createFPMath(0.0); in TEST_F()
35 MDNode *MD1 = MDHelper.createFPMath(1.0); in TEST_F()
36 EXPECT_EQ(MD0, (MDNode *)nullptr); in TEST_F()
37 EXPECT_NE(MD1, (MDNode *)nullptr); in TEST_F()
48 MDNode *R0 = MDHelper.createRange(A, A); in TEST_F()
49 MDNode *R1 = MDHelper.createRange(A, B); in TEST_F()
50 EXPECT_EQ(R0, (MDNode *)nullptr); in TEST_F()
51 EXPECT_NE(R1, (MDNode *)nullptr); in TEST_F()
62 MDNode *R0 = MDHelper.createAnonymousTBAARoot(); in TEST_F()
63 MDNode *R1 = MDHelper.createAnonymousTBAARoot(); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DMetadata.h76 class MDNode : public Value, public FoldingSetNode {
77 MDNode(const MDNode &); // DO NOT IMPLEMENT
78 void operator=(const MDNode &); // DO NOT IMPLEMENT
112 ~MDNode();
114 MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal);
116 static MDNode *getMDNode(LLVMContext &C, ArrayRef<Value*> Vals,
120 static MDNode *get(LLVMContext &Context, ArrayRef<Value*> Vals);
123 static MDNode *getWhenValsUnresolved(LLVMContext &Context,
127 static MDNode *getIfExists(LLVMContext &Context, ArrayRef<Value*> Vals);
132 static MDNode *getTemporary(LLVMContext &Context, ArrayRef<Value*> Vals);
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h626 explicit AAMDNodes(MDNode *T = nullptr, MDNode *S = nullptr,
627 MDNode *N = nullptr)
639 MDNode *TBAA;
642 MDNode *Scope;
645 MDNode *NoAlias;
652 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(),
657 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(),
662 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^
663 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^
664 DenseMapInfo<MDNode *>::getHashValue(Val.NoAlias);
[all …]
DGlobalObject.h27 class MDNode; variable
86 MDNode *getMetadata(unsigned KindID) const;
87 MDNode *getMetadata(StringRef Kind) const;
94 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
95 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
103 void setMetadata(unsigned KindID, MDNode *MD);
104 void setMetadata(StringRef Kind, MDNode *MD);
109 void addMetadata(unsigned KindID, MDNode &MD);
110 void addMetadata(StringRef Kind, MDNode &MD);
116 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DDebugInfo.h35 class MDNode; variable
65 const MDNode *DbgNode;
85 explicit DIDescriptor(const MDNode *N) : DbgNode(N) {} in DIDescriptor()
95 operator MDNode *() const { return const_cast<MDNode*>(DbgNode); }
96 MDNode *operator ->() const { return const_cast<MDNode*>(DbgNode); }
136 explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {} in DIDescriptor()
145 explicit DIArray(const MDNode *N = 0)
157 explicit DIScope(const MDNode *N = 0) : DIDescriptor (N) {} in DIDescriptor()
167 explicit DICompileUnit(const MDNode *N = 0) : DIScope(N) {} in DIScope()
206 explicit DIFile(const MDNode *N = 0) : DIScope(N) { in DIScope()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DDebugLoc.h21 class MDNode; variable
60 MDNode *Scope, MDNode *InlinedAt = 0);
63 static DebugLoc getFromDILocation(MDNode *N);
66 static DebugLoc getFromDILexicalBlock(MDNode *N);
81 MDNode *getScope(const LLVMContext &Ctx) const;
85 MDNode *getInlinedAt(const LLVMContext &Ctx) const;
88 void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
94 MDNode *getAsMDNode(const LLVMContext &Ctx) const;
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DLexicalScopes.h88 LexicalScope *findAbstractScope(const MDNode *N) { in findAbstractScope()
99 LexicalScope *findLexicalScope(const MDNode *N) { in findLexicalScope()
113 LexicalScope *getOrCreateRegularScope(MDNode *Scope);
116 LexicalScope *getOrCreateInlinedScope(MDNode *Scope, MDNode *InlinedAt);
119 LexicalScope *getOrCreateAbstractScope(const MDNode *N);
134 DenseMap<const MDNode *, LexicalScope *> LexicalScopeMap;
141 DenseMap<const MDNode *, LexicalScope *> AbstractScopeMap;
158 LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A) in LexicalScope()
169 const MDNode *getDesc() const { return Desc; } in getDesc()
170 const MDNode *getInlinedAt() const { return InlinedAtLocation; } in getInlinedAt()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSDNodeDbgValue.h23 class MDNode; variable
46 MDNode *Var;
47 MDNode *Expr;
57 SDDbgValue(MDNode *Var, MDNode *Expr, SDNode *N, unsigned R, bool indir, in SDDbgValue()
67 SDDbgValue(MDNode *Var, MDNode *Expr, const Value *C, uint64_t off, in SDDbgValue()
76 SDDbgValue(MDNode *Var, MDNode *Expr, unsigned FI, uint64_t off, DebugLoc dl, in SDDbgValue()
88 MDNode *getVariable() const { return Var; } in getVariable()
91 MDNode *getExpression() const { return Expr; } in getExpression()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp76 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode()
91 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode()
108 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD()
109 MDNode *ArgAQNode = cast<MDNode>(KernelMDNode->getOperand(2)); in AccessQualFromMD()
114 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD()
115 MDNode *ArgTypeNode = cast<MDNode>(KernelMDNode->getOperand(3)); in ArgTypeFromMD()
120 GetArgMD(MDNode *KernelMDNode, unsigned OpIdx) { in GetArgMD()
123 MDNode *Node = cast<MDNode>(KernelMDNode->getOperand(i + 1)); in GetArgMD()
212 bool replaceImageAndSamplerUses(Function *F, MDNode *KernelMDNode) { in replaceImageAndSamplerUses()
252 std::tuple<Function *, MDNode *>
[all …]
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DMetadataTest.cpp90 MDNode *n1 = MDNode::get(Context, V); in TEST_F()
92 MDNode *n2 = MDNode::get(Context, c1); in TEST_F()
93 MDNode *n3 = MDNode::get(Context, V); in TEST_F()
115 MDNode *n = MDNode::get(Context, V); in TEST_F()
130 MDNode *n = MDNode::get(Context, V); in TEST()
131 MDNode *n2 = MDNode::get(Context, V2); in TEST()

12345678910>>...13