HomeSort by relevance Sort by last modified time
    Searched refs:MDNode (Results 1 - 25 of 173) sorted by null

1 2 3 4 5 6 7

  /external/clang/lib/CodeGen/
CodeGenTBAA.h 24 class MDNode;
50 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache;
54 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache;
56 llvm::MDNode *Root;
57 llvm::MDNode *Char;
59 /// getRoot - This is the mdnode for the root of the metadata type graph
61 llvm::MDNode *getRoot();
63 /// getChar - This is the mdnode for "char", which is special, and any types
65 llvm::MDNode *getChar();
81 /// getTBAAInfo - Get the TBAA MDNode to be used for a dereferenc
    [all...]
  /external/llvm/include/llvm/Support/
DebugLoc.h 20 class MDNode;
59 MDNode *Scope, MDNode *InlinedAt = 0);
62 static DebugLoc getFromDILocation(MDNode *N);
65 static DebugLoc getFromDILexicalBlock(MDNode *N);
80 MDNode *getScope(const LLVMContext &Ctx) const;
84 MDNode *getInlinedAt(const LLVMContext &Ctx) const;
87 void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
92 /// DILocation compatible MDNode
    [all...]
  /external/llvm/include/llvm/IR/
Metadata.h 71 /// MDNode - a tuple of other values.
72 class MDNode : public Value, public FoldingSetNode {
73 MDNode(const MDNode &) LLVM_DELETED_FUNCTION;
74 void operator=(const MDNode &) LLVM_DELETED_FUNCTION;
77 friend struct FoldingSetTrait<MDNode>;
79 /// Hash - If the MDNode is uniqued cache the hash to speed up lookup.
83 /// end of this MDNode.
88 /// FunctionLocalBit - This bit is set if this MDNode is function local.
112 ~MDNode();
    [all...]
MDBuilder.h 45 MDNode *createFPMath(float Accuracy) {
50 return MDNode::get(Context, Op);
58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight) {
64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights) {
74 return MDNode::get(Context, Vals);
82 MDNode *createRange(const APInt &Lo, const APInt &Hi) {
91 return MDNode::get(Context, Range);
102 MDNode *createAnonymousTBAARoot() {
104 MDNode *Dummy = MDNode::getTemporary(Context, ArrayRef<Value*>())
    [all...]
Instruction.h 26 class MDNode;
140 MDNode *getMetadata(unsigned KindID) const {
147 MDNode *getMetadata(StringRef Kind) const {
155 void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const{
163 MDNode*> > &MDs) const {
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...]
  /external/llvm/include/llvm/Analysis/
Loads.h 23 class MDNode;
53 MDNode **TBAATag = 0);
AliasSetTracker.h 44 const MDNode *TBAAInfo;
48 TBAAInfo(DenseMapInfo<const MDNode *>::getEmptyKey()) {}
60 void updateSizeAndTBAAInfo(uint64_t NewSize, const MDNode *NewTBAAInfo) {
63 if (TBAAInfo == DenseMapInfo<const MDNode *>::getEmptyKey())
68 TBAAInfo = DenseMapInfo<const MDNode *>::getTombstoneKey();
75 const MDNode *getTBAAInfo() const {
77 if (TBAAInfo == DenseMapInfo<const MDNode *>::getEmptyKey() ||
78 TBAAInfo == DenseMapInfo<const MDNode *>::getTombstoneKey())
208 const MDNode *getTBAAInfo() const { return CurNode->getTBAAInfo(); }
253 const MDNode *TBAAInfo
    [all...]
  /external/llvm/lib/IR/
Metadata.cpp 52 // Use CallbackVH to hold MDNode operands.
55 MDNode *getParent() {
63 return reinterpret_cast<MDNode*>(Cur) - 1;
95 // MDNode implementation.
99 /// the end of the MDNode.
100 static MDNodeOperand *getOperandPtr(MDNode *N, unsigned Op) {
106 void MDNode::replaceOperandWith(unsigned i, Value *Val) {
111 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal)
130 /// ~MDNode - Destroy MDNode
    [all...]
IntrinsicInst.cpp 57 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);
DebugLoc.cpp 20 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const {
37 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const {
49 void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
75 MDNode *Scope, MDNode *InlinedAt) {
99 /// DILocation compatible MDNode.
100 MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const {
103 MDNode *Scope, *IA;
113 return MDNode::get(Ctx2, Elts)
    [all...]
LLVMContextImpl.h 190 // Provide a FoldingSetTrait::Equals specialization for MDNode that can use a
192 template<> struct FoldingSetTrait<MDNode> : DefaultFoldingSetTrait<MDNode> {
193 static bool Equals(const MDNode &X, const FoldingSetNodeID &ID,
195 assert(!X.isNotUniqued() && "Non-uniqued MDNode in FoldingSet?");
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
    [all...]
DIBuilder.cpp 56 if (MDNode *Temp = SP.getVariablesNodes()) {
68 static MDNode *getNonCompileUnitScope(MDNode *N) {
86 TempEnumTypes = MDNode::getTemporary(VMContext, TElts);
88 TempRetainTypes = MDNode::getTemporary(VMContext, TElts);
90 TempSubprograms = MDNode::getTemporary(VMContext, TElts);
92 TempGVs = MDNode::getTemporary(VMContext, TElts);
109 TheCU = DICompileUnit(MDNode::get(VMContext, Elts));
126 MDNode::get(VMContext, Pair)
128 return DIFile(MDNode::get(VMContext, Elts))
    [all...]
DebugInfo.cpp 69 static Value *getField(const MDNode *DbgNode, unsigned Elt) {
75 static const MDNode *getNodeField(const MDNode *DbgNode, unsigned Elt) {
76 if (const MDNode *R = dyn_cast_or_null<MDNode>(getField(DbgNode, Elt)))
81 static StringRef getStringField(const MDNode *DbgNode, unsigned Elt) {
121 DIDescriptor(dyn_cast_or_null<const MDNode>(DbgNode->getOperand(Elt)));
157 MDNode *Node = const_cast<MDNode*>(DbgNode);
167 MDNode *DIVariable::getInlinedAt() const
    [all...]
  /external/llvm/unittests/IR/
MetadataTest.cpp 90 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::getIfExists(Context, c1)
    [all...]
MDBuilderTest.cpp 33 MDNode *MD0 = MDHelper.createFPMath(0.0);
34 MDNode *MD1 = MDHelper.createFPMath(1.0);
35 EXPECT_EQ(MD0, (MDNode *)0);
36 EXPECT_NE(MD1, (MDNode *)0);
47 MDNode *R0 = MDHelper.createRange(A, A);
48 MDNode *R1 = MDHelper.createRange(A, B);
49 EXPECT_EQ(R0, (MDNode *)0);
50 EXPECT_NE(R1, (MDNode *)0);
61 MDNode *R0 = MDHelper.createAnonymousTBAARoot();
62 MDNode *R1 = MDHelper.createAnonymousTBAARoot()
    [all...]
  /external/llvm/lib/ExecutionEngine/
EventListenerCommon.h 31 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/CodeGen/
LexicalScopes.h 88 LexicalScope *findAbstractScope(const MDNode *N) {
99 LexicalScope *findLexicalScope(const MDNode *N) {
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
    [all...]
MachineMemOperand.h 25 class MDNode;
86 const MDNode *TBAAInfo;
87 const MDNode *Ranges;
109 unsigned base_alignment, const MDNode *TBAAInfo = 0,
110 const MDNode *Ranges = 0);
143 const MDNode *getTBAAInfo() const { return TBAAInfo; }
146 const MDNode *getRanges() const { return Ranges; }
  /external/llvm/lib/CodeGen/SelectionDAG/
SDNodeDbgValue.h 23 class MDNode;
47 MDNode *mdPtr;
54 SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl,
63 SDDbgValue(MDNode *mdP, const Value *C, uint64_t off, DebugLoc dl,
71 SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) :
80 // Returns the MDNode pointer.
81 MDNode *getMDPtr() { return mdPtr; }
  /external/llvm/include/llvm/
DebugInfo.h 35 class MDNode;
48 /// DIDescriptor - A thin wraper around MDNode to access encoded debug info.
49 /// This should not be stored in a container, because the underlying MDNode
69 const MDNode *DbgNode;
91 explicit DIDescriptor(const MDNode *N) : DbgNode(N) {}
101 operator MDNode *() const { return const_cast<MDNode*>(DbgNode); }
102 MDNode *operator ->() const { return const_cast<MDNode*>(DbgNode); }
141 explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {
    [all...]
DIBuilder.h 29 class MDNode;
54 MDNode *TheCU;
56 MDNode *TempEnumTypes;
57 MDNode *TempRetainTypes;
58 MDNode *TempSubprograms;
59 MDNode *TempGVs;
74 const MDNode *getCU() { return TheCU; }
235 MDNode *PropertyNode);
272 DIArray Elements, MDNode *VTableHolder = 0,
273 MDNode *TemplateParms = 0)
    [all...]
  /external/llvm/lib/Analysis/
TypeBasedAliasAnalysis.cpp 76 /// TBAANode - This is a simple wrapper around an MDNode which provides a
80 const MDNode *Node;
84 explicit TBAANode(const MDNode *N) : Node(N) {}
86 /// getNode - Get the MDNode for this TBAANode.
87 const MDNode *getNode() const { return Node; }
93 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1));
139 bool Aliases(const MDNode *A, const MDNode *B) const;
172 TypeBasedAliasAnalysis::Aliases(const MDNode *A
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
ValueMapper.h 64 /// MapValue - provide versions that preserve type safety for MDNode and
66 inline MDNode *MapValue(const MDNode *V, ValueToValueMapTy &VM,
69 return cast<MDNode>(MapValue((const Value*)V, VM, Flags, TypeMapper));
  /external/llvm/lib/Transforms/Utils/
ValueMapper.cpp 53 if (const MDNode *MD = dyn_cast<MDNode>(V)) {
60 MDNode *Dummy = MDNode::getTemporary(V->getContext(), ArrayRef<Value*>());
90 MDNode *NewMD = MDNode::get(V->getContext(), Elts);
93 MDNode::deleteTemporary(Dummy);
98 MDNode::deleteTemporary(Dummy);
202 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
204 for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterato
    [all...]
  /external/llvm/lib/CodeGen/AsmPrinter/
DwarfDebug.h 70 const MDNode *Variable;
90 const MDNode *V)
300 // Maps MDNode with its corresponding CompileUnit.
301 DenseMap <const MDNode *, CompileUnit *> CUMap;
303 // Maps subprogram MDNode with its corresponding CompileUnit.
304 DenseMap <const MDNode *, CompileUnit *> SPMap;
327 DenseMap<const MDNode *, DIE *> AbstractSPDies;
333 DenseMap<const MDNode *, DbgVariable *> AbstractVariables;
345 DenseMap<const MDNode *, SmallVector<InlineInfoLabels, 4> > InlineInfo;
346 SmallVector<const MDNode *, 4> InlinedSPNodes
    [all...]

Completed in 1058 milliseconds

1 2 3 4 5 6 7