/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 144 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; 185 explicit TBAAStructTagNode(const MDNode *N) : Node(N) {} in TBAAStructTagNode() 188 const MDNode *getNode() const { return Node; } in getNode() 190 const MDNode *getBaseType() const { in getBaseType() 191 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 193 const MDNode *getAccessType() const { in getAccessType() [all …]
|
/external/llvm/include/llvm/IR/ |
D | MDBuilder.h | 26 class MDNode; variable 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 *TBAA; 88 TBAAStructField(uint64_t Offset, uint64_t Size, MDNode *TBAA) : in TBAAStructField() [all …]
|
D | Metadata.h | 74 class MDNode : public Value, public FoldingSetNode { 75 MDNode(const MDNode &) LLVM_DELETED_FUNCTION; 76 void operator=(const MDNode &) LLVM_DELETED_FUNCTION; 79 friend struct FoldingSetTrait<MDNode>; 114 ~MDNode(); 116 MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal); 118 static MDNode *getMDNode(LLVMContext &C, ArrayRef<Value*> Vals, 122 static MDNode *get(LLVMContext &Context, ArrayRef<Value*> Vals); 125 static MDNode *getWhenValsUnresolved(LLVMContext &Context, 129 static MDNode *getIfExists(LLVMContext &Context, ArrayRef<Value*> Vals); [all …]
|
D | DebugLoc.h | 22 class MDNode; variable 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, 94 MDNode *getScopeNode(const LLVMContext &Ctx) const; 102 MDNode *getAsMDNode(const LLVMContext &Ctx) const;
|
D | DebugInfo.h | 40 class MDNode; variable 56 typedef DenseMap<const MDString *, MDNode *> DITypeIdentifierMap; 87 const MDNode *DbgNode; 107 explicit DIDescriptor(const MDNode *N = nullptr) : DbgNode(N) {} in DbgNode() 111 operator MDNode *() const { return const_cast<MDNode *>(DbgNode); } 112 MDNode *operator->() const { return const_cast<MDNode *>(DbgNode); } 162 explicit DISubrange(const MDNode *N = nullptr) : DIDescriptor(N) {} in DIDescriptor() 172 explicit DIArray(const MDNode *N = nullptr) : DIDescriptor(N) {} in DIDescriptor() 188 explicit DIEnumerator(const MDNode *N = nullptr) : DIDescriptor(N) {} in DIDescriptor() 213 explicit DIScope(const MDNode *N = nullptr) : DIDescriptor(N) {} in DIDescriptor() [all …]
|
D | DIBuilder.h | 31 class MDNode; variable 60 MDNode *TempEnumTypes; 61 MDNode *TempRetainTypes; 62 MDNode *TempSubprograms; 63 MDNode *TempGVs; 64 MDNode *TempImportedModules; 72 SmallVector<TrackingVH<MDNode>, 4> AllRetainTypes; 75 SmallVector<TrackingVH<MDNode>, 4> AllImportedModules; 81 MDNode *File = nullptr, unsigned LineNo = 0, 267 MDNode *PropertyNode); [all …]
|
D | Instruction.h | 27 class MDNode; variable 143 MDNode *getMetadata(unsigned KindID) const { in getMetadata() 150 MDNode *getMetadata(StringRef Kind) const { in getMetadata() 158 void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const{ in getAllMetadata() 166 MDNode*> > &MDs) const { in getAllMetadataOtherThanDebugLoc() 174 void setMetadata(unsigned KindID, MDNode *Node); 175 void setMetadata(StringRef Kind, MDNode *Node); 259 MDNode *getMetadataImpl(unsigned KindID) const; 260 MDNode *getMetadataImpl(StringRef Kind) const; 261 void getAllMetadataImpl(SmallVectorImpl<std::pair<unsigned,MDNode*> > &)const; [all …]
|
/external/llvm/lib/IR/ |
D | MDBuilder.cpp | 24 MDNode *MDBuilder::createFPMath(float Accuracy) { in createFPMath() 29 return MDNode::get(Context, Op); in createFPMath() 32 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() 38 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() 48 return MDNode::get(Context, Vals); in createBranchWeights() 51 MDNode *MDBuilder::createRange(const APInt &Lo, const APInt &Hi) { in createRange() 60 return MDNode::get(Context, Range); in createRange() 63 MDNode *MDBuilder::createAnonymousTBAARoot() { in createAnonymousTBAARoot() 65 MDNode *Dummy = MDNode::getTemporary(Context, ArrayRef<Value *>()); in createAnonymousTBAARoot() 66 MDNode *Root = MDNode::get(Context, Dummy); in createAnonymousTBAARoot() [all …]
|
D | Metadata.cpp | 56 MDNode *getParent() { in getParent() 64 return reinterpret_cast<MDNode*>(Cur) - 1; in getParent() 103 static MDNodeOperand *getOperandPtr(MDNode *N, unsigned Op) { in getOperandPtr() 109 void MDNode::replaceOperandWith(unsigned i, Value *Val) { in replaceOperandWith() 114 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal) in MDNode() function in MDNode 134 MDNode::~MDNode() { in ~MDNode() 160 if (MDNode *MD = dyn_cast<MDNode>(V)) in getFunctionForValue() 166 static const Function *assertLocalFunction(const MDNode *N) { in assertLocalFunction() 173 if (MDNode *MD = dyn_cast<MDNode>(V)) in assertLocalFunction() 192 const Function *MDNode::getFunction() const { in getFunction() [all …]
|
D | DebugLoc.cpp | 20 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() 73 MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const { in getScopeNode() 74 if (MDNode *InlinedAt = getInlinedAt(Ctx)) in getScopeNode() 80 const MDNode *Scope = getScopeNode(Ctx); in getFnDebugLoc() 95 MDNode *Scope, MDNode *InlinedAt) { in get() 120 MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const { in getAsMDNode() 123 MDNode *Scope, *IA; in getAsMDNode() 133 return MDNode::get(Ctx2, Elts); in getAsMDNode() [all …]
|
D | DIBuilder.cpp | 64 if (MDNode *Temp = SP.getVariablesNodes()) { in finalize() 82 static MDNode *getNonCompileUnitScope(MDNode *N) { in getNonCompileUnitScope() 88 static MDNode *createFilePathPair(LLVMContext &VMContext, StringRef Filename, in createFilePathPair() 95 return MDNode::get(VMContext, Pair); in createFilePathPair() 114 TempEnumTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit() 116 TempRetainTypes = MDNode::getTemporary(VMContext, TElts); in createCompileUnit() 118 TempSubprograms = MDNode::getTemporary(VMContext, TElts); in createCompileUnit() 120 TempGVs = MDNode::getTemporary(VMContext, TElts); in createCompileUnit() 122 TempImportedModules = MDNode::getTemporary(VMContext, TElts); in createCompileUnit() 141 MDNode *CUNode = MDNode::get(VMContext, Elts); in createCompileUnit() [all …]
|
D | DebugInfo.cpp | 55 static Value *getField(const MDNode *DbgNode, unsigned Elt) { in getField() 61 static MDNode *getNodeField(const MDNode *DbgNode, unsigned Elt) { in getNodeField() 62 return dyn_cast_or_null<MDNode>(getField(DbgNode, Elt)); in getNodeField() 65 static StringRef getStringField(const MDNode *DbgNode, unsigned Elt) { in getStringField() 100 MDNode *Field = getNodeField(DbgNode, Elt); in getDescriptorField() 136 MDNode *Node = const_cast<MDNode *>(DbgNode); in replaceFunctionField() 152 MDNode *DIVariable::getInlinedAt() const { return getNodeField(DbgNode, 7); } in getInlinedAt() 353 const MDNode *DN = D; in replaceAllUsesWith() 358 DN = MDNode::get(VMContext, Ops); in replaceAllUsesWith() 361 MDNode *Node = const_cast<MDNode *>(DbgNode); in replaceAllUsesWith() [all …]
|
D | LLVMContextImpl.h | 195 template<> struct FoldingSetTrait<MDNode> : DefaultFoldingSetTrait<MDNode> { 196 static bool Equals(const MDNode &X, const FoldingSetNodeID &ID, 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> MDNodeSet; 271 SmallPtrSet<MDNode*, 1> NonUniquedMDNodes; 337 typedef std::pair<unsigned, TrackingVH<MDNode> > MDPairTy; 346 DenseMap<MDNode*, int> ScopeRecordIdx; [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTBAA.h | 24 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 …]
|
D | CodeGenTBAA.cpp | 42 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 …]
|
D | CGLoopInfo.cpp | 20 static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) { in createMetadata() 29 MDNode *TempNode = MDNode::getTemporary(Ctx, None); in createMetadata() 37 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 45 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 54 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 57 MDNode *LoopID = MDNode::get(Ctx, Args); in createMetadata() 62 MDNode::deleteTemporary(TempNode); in createMetadata()
|
/external/llvm/include/llvm/CodeGen/ |
D | LexicalScopes.h | 48 LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A) in LexicalScope() 57 const MDNode *getDesc() const { return Desc; } in getDesc() 58 const MDNode *getInlinedAt() const { return InlinedAtLocation; } in getInlinedAt() 59 const MDNode *getScopeNode() const { return Desc; } in getScopeNode() 119 AssertingVH<const MDNode> Desc; // Debug info descriptor. 120 AssertingVH<const MDNode> InlinedAtLocation; // Location at which this 182 LexicalScope *findAbstractScope(const MDNode *N) { in findAbstractScope() 192 LexicalScope *findLexicalScope(const MDNode *N) { in findLexicalScope() 201 LexicalScope *getOrCreateAbstractScope(const MDNode *N); 209 LexicalScope *getOrCreateRegularScope(MDNode *Scope); [all …]
|
D | MachineMemOperand.h | 27 class MDNode; variable 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; } in getTBAAInfo() 168 const MDNode *getRanges() const { return Ranges; } in getRanges()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 90 MDNode *n1 = MDNode::get(Context, V); in TEST_F() 92 MDNode *n2 = MDNode::get(Context, c1); in TEST_F() 94 MDNode *n3 = MDNode::get(Context, V); in TEST_F() 95 MDNode *n4 = MDNode::getIfExists(Context, V); in TEST_F() 96 MDNode *n5 = MDNode::getIfExists(Context, c1); in TEST_F() 97 MDNode *n6 = MDNode::getIfExists(Context, c2); in TEST_F() 122 MDNode *n = MDNode::get(Context, V); in TEST_F() 137 MDNode *n = MDNode::get(Context, V); in TEST() 138 MDNode *n2 = MDNode::get(Context, V2); in TEST()
|
D | MDBuilderTest.cpp | 34 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/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 43 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() 253 const MDNode *TBAAInfo, [all …]
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfDebug.h | 169 MapVector<const MDNode *, DwarfCompileUnit *> CUMap; 172 DenseMap<const MDNode *, DwarfCompileUnit *> SPMap; 180 DenseMap<const MDNode *, DIE *> MDTypeNodeToDieMap; 198 DenseMap<const MDNode *, DIE *> AbstractSPDies; 206 DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables; 219 SmallPtrSet<const MDNode *, 16> ProcessedSPNodes; 278 typedef SmallVector<std::pair<const MDNode *, const MDNode *>, 32> 284 DenseMap<const MDNode *, const DwarfTypeUnit *> DwarfTypeUnits; 349 const MDNode *Scope); 351 const MDNode *Scope); [all …]
|
D | DbgValueHistoryCalculator.h | 20 class MDNode; variable 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;
|
D | DebugLocEntry.h | 18 class MDNode; variable 29 Value(const MDNode *Var, int64_t i) in Value() 33 Value(const MDNode *Var, const ConstantFP *CFP) in Value() 37 Value(const MDNode *Var, const ConstantInt *CIP) in Value() 41 Value(const MDNode *Var, MachineLocation Loc) in Value() 46 const MDNode *Variable; 87 const MDNode *getVariable() const { return Variable; } in getVariable()
|
/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 73 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in ValueEnumerator() 83 if (MDNode *MD = dyn_cast<MDNode>(&Op)) in ValueEnumerator() 102 MDNode *Scope, *IA; in ValueEnumerator() 131 if (isa<MDNode>(V) || isa<MDString>(V)) { in getValueID() 227 void ValueEnumerator::EnumerateMDNodeOperands(const MDNode *N) { in EnumerateMDNodeOperands() 230 if (isa<MDNode>(V) || isa<MDString>(V)) in EnumerateMDNodeOperands() 240 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); in EnumerateMetadata() 245 const MDNode *N = dyn_cast<MDNode>(MD); in EnumerateMetadata() 271 void ValueEnumerator::EnumerateFunctionLocalMetadata(const MDNode *N) { in EnumerateFunctionLocalMetadata() 292 if (MDNode *O = dyn_cast<MDNode>(V)) { in EnumerateFunctionLocalMetadata() [all …]
|