Home
last modified time | relevance | path

Searched refs:MDs (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp346 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
348 MDs.clear(); in ValueEnumerator()
349 GV.getAllMetadata(MDs); in ValueEnumerator()
350 for (const auto &I : MDs) in ValueEnumerator()
363 MDs.clear(); in ValueEnumerator()
364 F.getAllMetadata(MDs); in ValueEnumerator()
365 for (const auto &I : MDs) in ValueEnumerator()
390 MDs.clear(); in ValueEnumerator()
391 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
392 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
DValueEnumerator.h65 std::vector<const Metadata *> MDs; variable
80 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
82 assert(ID <= MDs.size() && "Expected valid ID"); in get()
83 return MDs[ID - 1]; in get()
156 unsigned numMDs() const { return MDs.size(); } in numMDs()
193 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
197 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
202 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp380 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
382 MDs.clear(); in ValueEnumerator()
383 GV.getAllMetadata(MDs); in ValueEnumerator()
384 for (const auto &I : MDs) in ValueEnumerator()
397 MDs.clear(); in ValueEnumerator()
398 F.getAllMetadata(MDs); in ValueEnumerator()
399 for (const auto &I : MDs) in ValueEnumerator()
424 MDs.clear(); in ValueEnumerator()
425 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
426 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
DValueEnumerator.h70 std::vector<const Metadata *> MDs; variable
85 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
87 assert(ID <= MDs.size() && "Expected valid ID"); in get()
88 return MDs[ID - 1]; in get()
164 unsigned numMDs() const { return MDs.size(); } in numMDs()
202 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
206 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
211 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
/external/llvm/lib/IR/
DMetadata.cpp776 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
780 MDTupleInfo::KeyTy Key(MDs); in getImpl()
790 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
865 SmallVector<Metadata *, 4> MDs; in concatenate() local
866 MDs.reserve(A->getNumOperands() + B->getNumOperands()); in concatenate()
867 MDs.append(A->op_begin(), A->op_end()); in concatenate()
868 MDs.append(B->op_begin(), B->op_end()); in concatenate()
872 return getOrSelfReference(A->getContext(), MDs); in concatenate()
879 SmallVector<Metadata *, 4> MDs; in intersect() local
882 MDs.push_back(MD); in intersect()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DConstantMerge.cpp71 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in hasMetadataOtherThanDebugLoc() local
72 GV->getAllMetadata(MDs); in hasMetadataOtherThanDebugLoc()
73 for (const auto &V : MDs) in hasMetadataOtherThanDebugLoc()
81 SmallVector<DIGlobalVariableExpression *, 1> MDs; in copyDebugLocMetadata() local
82 From->getDebugInfo(MDs); in copyDebugLocMetadata()
83 for (auto MD : MDs) in copyDebugLocMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMetadata.h143 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
144 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
905 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
907 ArrayRef<Metadata *> MDs);
909 ArrayRef<Metadata *> MDs);
911 ArrayRef<Metadata *> MDs);
1119 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1131 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1132 return getImpl(Context, MDs, Uniqued);
1135 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DGlobalObject.h129 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
130 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
151 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
DInstruction.h216 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
218 getAllMetadataImpl(MDs);
224 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
226 getAllMetadataOtherThanDebugLocImpl(MDs);
/external/llvm/include/llvm/IR/
DMetadata.h850 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
852 ArrayRef<Metadata *> MDs);
854 ArrayRef<Metadata *> MDs);
856 ArrayRef<Metadata *> MDs);
1062 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1074 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1075 return getImpl(Context, MDs, Uniqued);
1077 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1078 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false);
1084 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DGlobalObject.h91 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
92 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
113 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
DInstruction.h177 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
179 getAllMetadataImpl(MDs);
185 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
187 getAllMetadataOtherThanDebugLocImpl(MDs);
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h872 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
874 ArrayRef<Metadata *> MDs);
876 ArrayRef<Metadata *> MDs);
878 ArrayRef<Metadata *> MDs);
1087 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1099 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1100 return getImpl(Context, MDs, Uniqued);
1103 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1104 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false);
1110 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DGlobalObject.h94 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
95 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
116 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
DInstruction.h191 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata() argument
193 getAllMetadataImpl(MDs); in getAllMetadata()
199 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadataOtherThanDebugLoc() argument
201 getAllMetadataOtherThanDebugLocImpl(MDs); in getAllMetadataOtherThanDebugLoc()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DMetadata.cpp813 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
817 MDTupleInfo::KeyTy Key(MDs); in getImpl()
827 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
902 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in concatenate() local
903 MDs.insert(B->op_begin(), B->op_end()); in concatenate()
907 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
914 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in intersect() local
916 MDs.remove_if([&](Metadata *MD) { return !is_contained(BSet, MD); }); in intersect()
920 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
1043 SmallVector<Metadata *, 4> MDs; in getMostGenericRange() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DStripSymbols.cpp355 SmallVector<MDNode *, 8> MDs; in runOnModule() local
358 MDs.push_back(NMD->getOperand(i)); in runOnModule()
364 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(), in runOnModule()
365 E = MDs.end(); I != E; ++I) { in runOnModule()
379 SmallVector<MDNode *, 8> MDs; in runOnModule() local
382 MDs.push_back(NMD->getOperand(i)); in runOnModule()
388 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(), in runOnModule()
389 E = MDs.end(); I != E; ++I) { in runOnModule()
/external/llvm/bindings/go/llvm/
DIRBindings.cpp60 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMMDNode2() argument
63 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()
66 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMTemporaryMDNode() argument
69 ArrayRef<Metadata *>(unwrap(MDs), Count)) in LLVMTemporaryMDNode()
DIRBindings.h43 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs,
45 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs,
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DValueEnumerator.cpp66 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in ValueEnumerator() local
92 MDs.clear(); in ValueEnumerator()
93 I->getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
94 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
95 EnumerateMetadata(MDs[i].second); in ValueEnumerator()
443 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in incorporateFunction() local
444 I->getAllMetadataOtherThanDebugLoc(MDs); in incorporateFunction()
445 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in incorporateFunction()
446 MDNode *N = MDs[i].second; in incorporateFunction()
/external/llvm/lib/Transforms/Scalar/
DLoopVersioningLICM.cpp118 Metadata *MDs[] = { in createStringMetadata() local
121 return MDNode::get(Context, MDs); in createStringMetadata()
127 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local
133 MDs.push_back(Node); in addStringMetadataToLoop()
137 MDs.push_back(createStringMetadata(TheLoop, MDString, V)); in addStringMetadataToLoop()
140 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopVersioningLICM.cpp119 Metadata *MDs[] = { in createStringMetadata() local
122 return MDNode::get(Context, MDs); in createStringMetadata()
128 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local
134 MDs.push_back(Node); in addStringMetadataToLoop()
138 MDs.push_back(createStringMetadata(TheLoop, MDString, V)); in addStringMetadataToLoop()
141 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstruction.h154 void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const{ in getAllMetadata() argument
156 getAllMetadataImpl(MDs); in getAllMetadata()
162 MDNode*> > &MDs) const { in getAllMetadataOtherThanDebugLoc()
164 getAllMetadataOtherThanDebugLocImpl(MDs); in getAllMetadataOtherThanDebugLoc()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DValueMapper.cpp187 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in RemapInstruction() local
188 I->getAllMetadata(MDs); in RemapInstruction()
190 MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) { in RemapInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/go/llvm/
DIRBindings.cpp33 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMMDNode2() argument
36 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()

123