Searched refs:MDNode (Results 1 - 25 of 168) sorted by relevance

1234567

/external/llvm/include/llvm/IR/
H A DMDBuilder.h26 class MDNode;
46 MDNode *createFPMath(float Accuracy);
53 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight);
56 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
63 MDNode *createRange(const APInt &Lo, const APInt &Hi);
72 MDNode *createAnonymousTBAARoot();
77 MDNode *createTBAARoot(StringRef Name);
81 MDNode *createTBAANode(StringRef Name, MDNode *Parent,
87 MDNode *TBA
[all...]
H A DDebugLoc.h22 class MDNode;
62 MDNode *Scope, MDNode *InlinedAt = nullptr);
65 static DebugLoc getFromDILocation(MDNode *N);
68 static DebugLoc getFromDILexicalBlock(MDNode *N);
83 MDNode *getScope(const LLVMContext &Ctx) const;
87 MDNode *getInlinedAt(const LLVMContext &Ctx) const;
90 void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
93 /// getScopeNode - Get MDNode fo
[all...]
H A DMetadata.h73 /// MDNode - a tuple of other values.
74 class MDNode : public Value, public FoldingSetNode { class in inherits:Value,FoldingSetNode
75 MDNode(const MDNode &) LLVM_DELETED_FUNCTION;
76 void operator=(const MDNode &) LLVM_DELETED_FUNCTION;
79 friend struct FoldingSetTrait<MDNode>;
81 /// Hash - If the MDNode is uniqued cache the hash to speed up lookup.
85 /// end of this MDNode.
90 /// FunctionLocalBit - This bit is set if this MDNode is function local.
114 ~MDNode();
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenTBAA.h24 class MDNode;
39 TBAAPathTag(const Type *B, const llvm::MDNode *A, uint64_t O)
42 const llvm::MDNode *AccessN;
59 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache;
61 llvm::DenseMap<const Type *, llvm::MDNode *> StructTypeMetadataCache;
63 llvm::DenseMap<TBAAPathTag, llvm::MDNode *> StructTagMetadataCache;
65 llvm::DenseMap<const llvm::MDNode *, llvm::MDNode *> ScalarTagMetadataCache;
69 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache;
71 llvm::MDNode *Roo
[all...]
H A DCGLoopInfo.cpp20 static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) {
29 MDNode *TempNode = MDNode::getTemporary(Ctx, None);
37 Args.push_back(MDNode::get(Ctx, Vals));
45 Args.push_back(MDNode::get(Ctx, Vals));
54 Args.push_back(MDNode::get(Ctx, Vals));
57 MDNode *LoopID = MDNode::get(Ctx, Args);
62 MDNode::deleteTemporary(TempNode);
H A DCodeGenTBAA.cpp42 llvm::MDNode *CodeGenTBAA::getRoot() {
55 llvm::MDNode *CodeGenTBAA::createTBAAScalarType(StringRef Name,
56 llvm::MDNode *Parent) {
60 llvm::MDNode *CodeGenTBAA::getChar() {
87 llvm::MDNode *
100 if (llvm::MDNode *N = MetadataCache[Ty])
166 llvm::MDNode *CodeGenTBAA::getTBAAInfoForVTablePtr() {
206 llvm::MDNode *TBAAInfo = MayAlias ? getChar() : getTBAAInfo(QTy);
207 llvm::MDNode *TBAATag = getTBAAScalarTagInfo(TBAAInfo);
212 llvm::MDNode *
[all...]
H A DCGLoopInfo.h26 class MDNode;
60 llvm::MDNode *getLoopID() const { return LoopID; }
70 llvm::MDNode *LoopID;
95 llvm::MDNode *getCurLoopID() const { return getInfo().getLoopID(); }
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDbgValueHistoryCalculator.h20 class MDNode;
33 typedef MapVector<const MDNode *, InstrRanges> InstrRangesMap;
37 void startInstrRange(const MDNode *Var, const MachineInstr &MI);
38 void endInstrRange(const MDNode *Var, const MachineInstr &MI);
41 unsigned getRegisterForVar(const MDNode *Var) const;
H A DDebugLocEntry.h18 class MDNode;
29 Value(const MDNode *Var, int64_t i)
33 Value(const MDNode *Var, const ConstantFP *CFP)
37 Value(const MDNode *Var, const ConstantInt *CIP)
41 Value(const MDNode *Var, MachineLocation Loc)
46 const MDNode *Variable;
87 const MDNode *getVariable() const { return Variable; }
/external/llvm/lib/IR/
H A DMDBuilder.cpp24 MDNode *MDBuilder::createFPMath(float Accuracy) {
29 return MDNode::get(Context, Op);
32 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight,
38 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) {
48 return MDNode::get(Context, Vals);
51 MDNode *MDBuilder::createRange(const APInt &Lo, const APInt &Hi) {
60 return MDNode::get(Context, Range);
63 MDNode *MDBuilder::createAnonymousTBAARoot() {
65 MDNode *Dummy = MDNode
[all...]
H A DMetadata.cpp53 // Use CallbackVH to hold MDNode operands.
56 MDNode *getParent() {
64 return reinterpret_cast<MDNode*>(Cur) - 1;
98 // MDNode implementation.
102 /// the end of the MDNode.
103 static MDNodeOperand *getOperandPtr(MDNode *N, unsigned Op) {
109 void MDNode::replaceOperandWith(unsigned i, Value *Val) {
114 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal) function in class:MDNode
133 /// ~MDNode
[all...]
H A DIntrinsicInst.cpp57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
68 return cast<MDNode>(getArgOperand(0))->getOperand(0);
72 return cast<MDNode>(getArgOperand(0))->getOperand(0);
H A DDebugLoc.cpp20 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const {
37 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const {
49 void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
73 MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const {
74 if (MDNode *InlinedAt = getInlinedAt(Ctx))
80 const MDNode *Scope = getScopeNode(Ctx);
95 MDNode *Scope, MDNode *InlinedAt) {
119 /// DILocation-compatible MDNode
[all...]
H A DLLVMContextImpl.h193 // Provide a FoldingSetTrait::Equals specialization for MDNode that can use a
195 template<> struct FoldingSetTrait<MDNode> : DefaultFoldingSetTrait<MDNode> {
196 static bool Equals(const MDNode &X, const FoldingSetNodeID &ID,
198 assert(!X.isNotUniqued() && "Non-uniqued MDNode in FoldingSet?");
208 static unsigned ComputeHash(const MDNode &X, FoldingSetNodeID &) {
225 DebugRecVH(MDNode *n, LLVMContextImpl *ctx, int idx)
228 MDNode *get() const {
229 return cast_or_null<MDNode>(getValPtr());
265 FoldingSet<MDNode> MDNodeSe
[all...]
H A DDIBuilder.cpp64 if (MDNode *Temp = SP.getVariablesNodes()) {
82 static MDNode *getNonCompileUnitScope(MDNode *N) {
88 static MDNode *createFilePathPair(LLVMContext &VMContext, StringRef Filename,
95 return MDNode::get(VMContext, Pair);
114 TempEnumTypes = MDNode::getTemporary(VMContext, TElts);
116 TempRetainTypes = MDNode::getTemporary(VMContext, TElts);
118 TempSubprograms = MDNode::getTemporary(VMContext, TElts);
120 TempGVs = MDNode::getTemporary(VMContext, TElts);
122 TempImportedModules = MDNode
[all...]
/external/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp140 /// TBAANode - This is a simple wrapper around an MDNode which provides a
144 const MDNode *Node;
148 explicit TBAANode(const MDNode *N) : Node(N) {}
150 /// getNode - Get the MDNode for this TBAANode.
151 const MDNode *getNode() const { return Node; }
157 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1));
177 /// This is a simple wrapper around an MDNode which provides a
182 const MDNode *Node;
185 explicit TBAAStructTagNode(const MDNode *
[all...]
/external/llvm/include/llvm/CodeGen/
H A DLexicalScopes.h48 LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A)
57 const MDNode *getDesc() const { return Desc; }
58 const MDNode *getInlinedAt() const { return InlinedAtLocation; }
59 const MDNode *getScopeNode() const { return Desc; }
119 AssertingVH<const MDNode> Desc; // Debug info descriptor.
120 AssertingVH<const MDNode> InlinedAtLocation; // Location at which this
182 LexicalScope *findAbstractScope(const MDNode *N) {
192 LexicalScope *findLexicalScope(const MDNode *N) {
201 LexicalScope *getOrCreateAbstractScope(const MDNode *
[all...]
H A DMachineMemOperand.h27 class MDNode;
94 const MDNode *TBAAInfo;
95 const MDNode *Ranges;
120 unsigned base_alignment, const MDNode *TBAAInfo = nullptr,
121 const MDNode *Ranges = nullptr);
165 const MDNode *getTBAAInfo() const { return TBAAInfo; }
168 const MDNode *getRanges() const { return Ranges; }
/external/llvm/unittests/IR/
H A DMetadataTest.cpp90 MDNode *n1 = MDNode::get(Context, V);
92 MDNode *n2 = MDNode::get(Context, c1);
94 MDNode *n3 = MDNode::get(Context, V);
95 MDNode *n4 = MDNode::getIfExists(Context, V);
96 MDNode *n5 = MDNode
[all...]
H A DMDBuilderTest.cpp34 MDNode *MD0 = MDHelper.createFPMath(0.0);
35 MDNode *MD1 = MDHelper.createFPMath(1.0);
36 EXPECT_EQ(MD0, (MDNode *)nullptr);
37 EXPECT_NE(MD1, (MDNode *)nullptr);
48 MDNode *R0 = MDHelper.createRange(A, A);
49 MDNode *R1 = MDHelper.createRange(A, B);
50 EXPECT_EQ(R0, (MDNode *)nullptr);
51 EXPECT_NE(R1, (MDNode *)nullptr);
62 MDNode *R0 = MDHelper.createAnonymousTBAARoot();
63 MDNode *R
[all...]
/external/llvm/lib/ExecutionEngine/
H A DEventListenerCommon.h31 DenseMap<AssertingVH<MDNode>, std::string> Filenames;
32 DenseMap<AssertingVH<MDNode>, std::string> Paths;
35 const char *getFilename(MDNode *Scope) {
44 const char *getFullPath(MDNode *Scope) {
/external/llvm/include/llvm/Analysis/
H A DLoads.h23 class MDNode;
54 MDNode **TBAATag = nullptr);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h23 class MDNode;
47 MDNode *mdPtr;
55 SDDbgValue(MDNode *mdP, SDNode *N, unsigned R,
66 SDDbgValue(MDNode *mdP, const Value *C, uint64_t off, DebugLoc dl,
75 SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) :
85 // Returns the MDNode pointer.
86 MDNode *getMDPtr() { return mdPtr; }
/external/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h79 /// MapValue - provide versions that preserve type safety for MDNode and
81 inline MDNode *MapValue(const MDNode *V, ValueToValueMapTy &VM,
85 return cast<MDNode>(MapValue((const Value*)V, VM, Flags, TypeMapper,
/external/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp61 if (const MDNode *MD = dyn_cast<MDNode>(V)) {
68 MDNode *Dummy = MDNode::getTemporary(V->getContext(), None);
98 MDNode *NewMD = MDNode::get(V->getContext(), Elts);
101 MDNode::deleteTemporary(Dummy);
106 MDNode::deleteTemporary(Dummy);
211 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
213 for (SmallVectorImpl<std::pair<unsigned, MDNode *> >
[all...]

Completed in 314 milliseconds

1234567