Home
last modified time | relevance | path

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

123456

/trueos/contrib/llvm/lib/Analysis/
HDTypeBasedAliasAnalysis.cpp144 const MDNode *Node;
148 explicit TBAANode(const MDNode *N) : Node(N) {} in TBAANode()
151 const MDNode *getNode() const { return Node; } in getNode()
157 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent()
182 const MDNode *Node;
186 explicit TBAAStructTagNode(const MDNode *N) : Node(N) {} in TBAAStructTagNode()
189 const MDNode *getNode() const { return Node; } in getNode()
191 const MDNode *getBaseType() const { in getBaseType()
192 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType()
194 const MDNode *getAccessType() const { in getAccessType()
[all …]
/trueos/contrib/llvm/include/llvm/IR/
HDMDBuilder.h45 MDNode *createFPMath(float Accuracy) { in createFPMath()
50 return MDNode::get(Context, Op); in createFPMath()
58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight) { in createBranchWeights()
64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights()
74 return MDNode::get(Context, Vals); in createBranchWeights()
82 MDNode *createRange(const APInt &Lo, const APInt &Hi) { in createRange()
91 return MDNode::get(Context, Range); in createRange()
102 MDNode *createAnonymousTBAARoot() { in createAnonymousTBAARoot()
104 MDNode *Dummy = MDNode::getTemporary(Context, ArrayRef<Value*>()); in createAnonymousTBAARoot()
105 MDNode *Root = MDNode::get(Context, Dummy); in createAnonymousTBAARoot()
[all …]
HDMetadata.h73 class MDNode : public Value, public FoldingSetNode {
74 MDNode(const MDNode &) LLVM_DELETED_FUNCTION;
75 void operator=(const MDNode &) LLVM_DELETED_FUNCTION;
78 friend struct FoldingSetTrait<MDNode>;
113 ~MDNode();
115 MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal);
117 static MDNode *getMDNode(LLVMContext &C, ArrayRef<Value*> Vals,
121 static MDNode *get(LLVMContext &Context, ArrayRef<Value*> Vals);
124 static MDNode *getWhenValsUnresolved(LLVMContext &Context,
128 static MDNode *getIfExists(LLVMContext &Context, ArrayRef<Value*> Vals);
[all …]
HDInstruction.h26 class MDNode; variable
140 MDNode *getMetadata(unsigned KindID) const { in getMetadata()
147 MDNode *getMetadata(StringRef Kind) const { in getMetadata()
155 void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const{ in getAllMetadata()
163 MDNode*> > &MDs) const { in getAllMetadataOtherThanDebugLoc()
171 void setMetadata(unsigned KindID, MDNode *Node);
172 void setMetadata(StringRef Kind, MDNode *Node);
241 MDNode *getMetadataImpl(unsigned KindID) const;
242 MDNode *getMetadataImpl(StringRef Kind) const;
243 void getAllMetadataImpl(SmallVectorImpl<std::pair<unsigned,MDNode*> > &)const;
[all …]
/trueos/contrib/llvm/tools/clang/lib/CodeGen/
HDCodeGenTBAA.h24 class MDNode; variable
39 TBAAPathTag(const Type *B, const llvm::MDNode *A, uint64_t O) in TBAAPathTag()
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 *Root;
72 llvm::MDNode *Char;
[all …]
HDCodeGenTBAA.cpp42 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot()
55 llvm::MDNode *CodeGenTBAA::createTBAAScalarType(StringRef Name, in createTBAAScalarType()
56 llvm::MDNode *Parent) { in createTBAAScalarType()
60 llvm::MDNode *CodeGenTBAA::getChar() { in getChar()
87 llvm::MDNode *
100 if (llvm::MDNode *N = MetadataCache[Ty]) in getTBAAInfo()
166 llvm::MDNode *CodeGenTBAA::getTBAAInfoForVTablePtr() { in getTBAAInfoForVTablePtr()
206 llvm::MDNode *TBAAInfo = MayAlias ? getChar() : getTBAAInfo(QTy); in CollectFields()
207 llvm::MDNode *TBAATag = getTBAAScalarTagInfo(TBAAInfo); in CollectFields()
212 llvm::MDNode *
[all …]
/trueos/contrib/llvm/lib/IR/
HDMetadata.cpp55 MDNode *getParent() { in getParent()
63 return reinterpret_cast<MDNode*>(Cur) - 1; in getParent()
102 static MDNodeOperand *getOperandPtr(MDNode *N, unsigned Op) { in getOperandPtr()
108 void MDNode::replaceOperandWith(unsigned i, Value *Val) { in replaceOperandWith()
113 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal) in MDNode() function in MDNode
133 MDNode::~MDNode() { in ~MDNode()
159 if (MDNode *MD = dyn_cast<MDNode>(V)) in getFunctionForValue()
165 static const Function *assertLocalFunction(const MDNode *N) { in assertLocalFunction()
172 if (MDNode *MD = dyn_cast<MDNode>(V)) in assertLocalFunction()
190 const Function *MDNode::getFunction() const { in getFunction()
[all …]
HDDebugLoc.cpp20 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const { in getScope()
37 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const { in getInlinedAt()
49 void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA, in getScopeAndInlinedAt()
75 MDNode *Scope, MDNode *InlinedAt) { in get()
100 MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const { in getAsMDNode()
103 MDNode *Scope, *IA; in getAsMDNode()
113 return MDNode::get(Ctx2, Elts); in getAsMDNode()
117 DebugLoc DebugLoc::getFromDILocation(MDNode *N) { in getFromDILocation()
119 MDNode *Scope = Loc.getScope(); in getFromDILocation()
126 DebugLoc DebugLoc::getFromDILexicalBlock(MDNode *N) { in getFromDILexicalBlock()
[all …]
HDDIBuilder.cpp63 if (MDNode *Temp = SP.getVariablesNodes()) { in finalize()
78 static MDNode *getNonCompileUnitScope(MDNode *N) { in getNonCompileUnitScope()
84 static MDNode *createFilePathPair(LLVMContext &VMContext, StringRef Filename, in createFilePathPair()
91 return MDNode::get(VMContext, Pair); in createFilePathPair()
107 TempEnumTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
109 TempRetainTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
111 TempSubprograms = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
113 TempGVs = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
115 TempImportedModules = MDNode::getTemporary(VMContext, TElts); in createCompileUnit()
133 MDNode *CUNode = MDNode::get(VMContext, Elts); in createCompileUnit()
[all …]
HDDebugInfo.cpp53 static Value *getField(const MDNode *DbgNode, unsigned Elt) { in getField()
59 static MDNode *getNodeField(const MDNode *DbgNode, unsigned Elt) { in getNodeField()
60 return dyn_cast_or_null<MDNode>(getField(DbgNode, Elt)); in getNodeField()
63 static StringRef getStringField(const MDNode *DbgNode, unsigned Elt) { in getStringField()
98 MDNode *Field = getNodeField(DbgNode, Elt); in getDescriptorField()
134 MDNode *Node = const_cast<MDNode *>(DbgNode); in replaceFunctionField()
144 MDNode *DIVariable::getInlinedAt() const { return getNodeField(DbgNode, 7); } in getInlinedAt()
346 MDNode *Node = const_cast<MDNode *>(DbgNode); in replaceAllUsesWith()
347 const MDNode *DN = D; in replaceAllUsesWith()
350 MDNode::deleteTemporary(Node); in replaceAllUsesWith()
[all …]
HDLLVMContextImpl.h192 template<> struct FoldingSetTrait<MDNode> : DefaultFoldingSetTrait<MDNode> {
193 static bool Equals(const MDNode &X, const FoldingSetNodeID &ID,
205 static unsigned ComputeHash(const MDNode &X, FoldingSetNodeID &) {
222 DebugRecVH(MDNode *n, LLVMContextImpl *ctx, int idx)
225 MDNode *get() const {
226 return cast_or_null<MDNode>(getValPtr());
256 FoldingSet<MDNode> MDNodeSet;
262 SmallPtrSet<MDNode*, 1> NonUniquedMDNodes;
328 typedef std::pair<unsigned, TrackingVH<MDNode> > MDPairTy;
337 DenseMap<MDNode*, int> ScopeRecordIdx;
[all …]
HDIntrinsicInst.cpp57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0))) in getAddress()
68 return cast<MDNode>(getArgOperand(0))->getOperand(0); in getValue()
72 return cast<MDNode>(getArgOperand(0))->getOperand(0); in getValue()
/trueos/contrib/llvm/include/llvm/
HDDebugInfo.h39 class MDNode; variable
55 typedef DenseMap<const MDString *, MDNode *> DITypeIdentifierMap;
84 const MDNode *DbgNode;
104 explicit DIDescriptor(const MDNode *N = 0) : DbgNode(N) {} in DbgNode()
108 operator MDNode *() const { return const_cast<MDNode *>(DbgNode); }
109 MDNode *operator->() const { return const_cast<MDNode *>(DbgNode); }
159 explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {} in DIDescriptor()
169 explicit DIArray(const MDNode *N = 0) : DIDescriptor(N) {} in DIDescriptor()
185 explicit DIEnumerator(const MDNode *N = 0) : DIDescriptor(N) {} in DIDescriptor()
203 explicit DIScope(const MDNode *N = 0) : DIDescriptor(N) {} in DIDescriptor()
[all …]
HDDIBuilder.h31 class MDNode; variable
60 MDNode *TempEnumTypes;
61 MDNode *TempRetainTypes;
62 MDNode *TempSubprograms;
63 MDNode *TempGVs;
64 MDNode *TempImportedModules;
72 SmallVector<TrackingVH<MDNode>, 4> AllRetainTypes;
80 MDNode *File = 0, unsigned LineNo = 0,
253 MDNode *PropertyNode);
293 MDNode *TemplateParms = 0,
[all …]
/trueos/contrib/llvm/include/llvm/CodeGen/
HDLexicalScopes.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;
159 LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A) in LexicalScope()
170 const MDNode *getDesc() const { return Desc; } in getDesc()
171 const MDNode *getInlinedAt() const { return InlinedAtLocation; } in getInlinedAt()
[all …]
HDMachineMemOperand.h25 class MDNode; variable
86 const MDNode *TBAAInfo;
87 const MDNode *Ranges;
112 unsigned base_alignment, const MDNode *TBAAInfo = 0,
113 const MDNode *Ranges = 0);
149 const MDNode *getTBAAInfo() const { return TBAAInfo; } in getTBAAInfo()
152 const MDNode *getRanges() const { return Ranges; } in getRanges()
/trueos/contrib/llvm/include/llvm/Support/
HDDebugLoc.h22 class MDNode; variable
61 MDNode *Scope, MDNode *InlinedAt = 0);
64 static DebugLoc getFromDILocation(MDNode *N);
67 static DebugLoc getFromDILexicalBlock(MDNode *N);
82 MDNode *getScope(const LLVMContext &Ctx) const;
86 MDNode *getInlinedAt(const LLVMContext &Ctx) const;
89 void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
95 MDNode *getAsMDNode(const LLVMContext &Ctx) const;
/trueos/contrib/llvm/include/llvm/Analysis/
HDAliasSetTracker.h43 const MDNode *TBAAInfo;
47 TBAAInfo(DenseMapInfo<const MDNode *>::getEmptyKey()) {} in PointerRec()
59 void updateSizeAndTBAAInfo(uint64_t NewSize, const MDNode *NewTBAAInfo) { in updateSizeAndTBAAInfo()
62 if (TBAAInfo == DenseMapInfo<const MDNode *>::getEmptyKey()) in updateSizeAndTBAAInfo()
67 TBAAInfo = DenseMapInfo<const MDNode *>::getTombstoneKey(); in updateSizeAndTBAAInfo()
74 const MDNode *getTBAAInfo() const { in getTBAAInfo()
76 if (TBAAInfo == DenseMapInfo<const MDNode *>::getEmptyKey() || in getTBAAInfo()
77 TBAAInfo == DenseMapInfo<const MDNode *>::getTombstoneKey()) in getTBAAInfo()
207 const MDNode *getTBAAInfo() const { return CurNode->getTBAAInfo(); } in getTBAAInfo()
252 const MDNode *TBAAInfo,
[all …]
/trueos/contrib/llvm/lib/CodeGen/AsmPrinter/
HDDwarfDebug.h89 const MDNode *Variable;
99 const MDNode *V) in DotDebugLocEntry()
138 const MDNode *getVariable() const { return Variable; } in getVariable()
327 DenseMap <const MDNode *, CompileUnit *> CUMap;
330 DenseMap <const MDNode *, CompileUnit *> SPMap;
338 DenseMap<const MDNode *, DIE *> MDTypeNodeToDieMap;
368 DenseMap<const MDNode *, DIE *> AbstractSPDies;
376 DenseMap<const MDNode *, DbgVariable *> AbstractVariables;
387 SmallPtrSet<const MDNode *, 16> ProcessedSPNodes;
397 SmallVector<const MDNode*, 8> UserVariables;
[all …]
/trueos/contrib/llvm/lib/Bitcode/Writer/
HDValueEnumerator.cpp73 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in ValueEnumerator()
86 if (MDNode *MD = dyn_cast<MDNode>(*OI)) in ValueEnumerator()
105 MDNode *Scope, *IA; in ValueEnumerator()
128 if (isa<MDNode>(V) || isa<MDString>(V)) { in getValueID()
235 void ValueEnumerator::EnumerateMDNodeOperands(const MDNode *N) { in EnumerateMDNodeOperands()
238 if (isa<MDNode>(V) || isa<MDString>(V)) in EnumerateMDNodeOperands()
248 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); in EnumerateMetadata()
253 const MDNode *N = dyn_cast<MDNode>(MD); in EnumerateMetadata()
279 void ValueEnumerator::EnumerateFunctionLocalMetadata(const MDNode *N) { in EnumerateFunctionLocalMetadata()
300 if (MDNode *O = dyn_cast<MDNode>(V)) { in EnumerateFunctionLocalMetadata()
[all …]
/trueos/contrib/llvm/lib/Transforms/Utils/
HDValueMapper.cpp61 if (const MDNode *MD = dyn_cast<MDNode>(V)) { in MapValue()
68 MDNode *Dummy = MDNode::getTemporary(V->getContext(), None); in MapValue()
98 MDNode *NewMD = MDNode::get(V->getContext(), Elts); in MapValue()
101 MDNode::deleteTemporary(Dummy); in MapValue()
106 MDNode::deleteTemporary(Dummy); in MapValue()
211 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in RemapInstruction()
213 for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator in RemapInstruction()
215 MDNode *Old = MI->second; in RemapInstruction()
216 MDNode *New = MapValue(Old, VMap, Flags, TypeMapper, Materializer); in RemapInstruction()
/trueos/contrib/llvm/lib/CodeGen/SelectionDAG/
HDSDNodeDbgValue.h23 class MDNode; variable
47 MDNode *mdPtr;
54 SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl, in SDDbgValue()
63 SDDbgValue(MDNode *mdP, const Value *C, uint64_t off, DebugLoc dl, in SDDbgValue()
71 SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) : in SDDbgValue()
81 MDNode *getMDPtr() { return mdPtr; } in getMDPtr()
/trueos/contrib/llvm/lib/Transforms/Instrumentation/
HDDebugIR.cpp163 MDNode *FileNode;
164 MDNode *LexicalBlockFileNode;
165 const MDNode *CUNode;
167 ValueMap<const Function *, MDNode *> SubprogramDescriptors;
168 DenseMap<const Type *, MDNode *> TypeDescriptors;
259 else if (MDNode *scope = findScope(&I)) in visitInstruction()
273 void createCompileUnit(MDNode *CUToReplace) { in createCompileUnit()
298 CUToReplace->replaceAllUsesWith(const_cast<MDNode *>(CUNode)); in createCompileUnit()
306 MDNode *findScope(const Instruction *I) { in findScope()
308 if (MDNode *ret = findDISubprogram(F)) in findScope()
[all …]
/trueos/contrib/llvm/lib/ExecutionEngine/
HDEventListenerCommon.h31 DenseMap<AssertingVH<MDNode>, std::string> Filenames;
32 DenseMap<AssertingVH<MDNode>, std::string> Paths;
35 const char *getFilename(MDNode *Scope) { in getFilename()
44 const char *getFullPath(MDNode *Scope) { in getFullPath()
/trueos/contrib/llvm/lib/CodeGen/
HDLexicalScopes.cpp117 MDNode *Scope = NULL; in findLexicalScope()
118 MDNode *IA = NULL; in findLexicalScope()
136 MDNode *Scope = NULL; in getOrCreateLexicalScope()
137 MDNode *InlinedAt = NULL; in getOrCreateLexicalScope()
151 LexicalScope *LexicalScopes::getOrCreateRegularScope(MDNode *Scope) { in getOrCreateRegularScope()
175 LexicalScope *LexicalScopes::getOrCreateInlinedScope(MDNode *Scope, in getOrCreateInlinedScope()
176 MDNode *InlinedAt) { in getOrCreateInlinedScope()
190 LexicalScope *LexicalScopes::getOrCreateAbstractScope(const MDNode *N) { in getOrCreateAbstractScope()
322 const MDNode *N = Desc; in dump()

123456