Home
last modified time | relevance | path

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

1234

/external/llvm-project/llvm/tools/llvm-reduce/deltas/
DReduceMetadata.cpp27 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in getChunkMetadataNodes() local
28 MDUser.getAllMetadata(MDs); in getChunkMetadataNodes()
29 for (auto &MD : MDs) { in getChunkMetadataNodes()
40 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in eraseMetadataIfOutsideChunk() local
41 MDUser.getAllMetadata(MDs); in eraseMetadataIfOutsideChunk()
42 for (int I = 0, E = MDs.size(); I != E; ++I) in eraseMetadataIfOutsideChunk()
43 if (!NodesToKeep.count(MDs[I].second)) in eraseMetadataIfOutsideChunk()
96 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in addMetadataToSet() local
97 MDUser.getAllMetadata(MDs); in addMetadataToSet()
98 for (auto &MD : MDs) in addMetadataToSet()
/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-10.0/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp379 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
381 MDs.clear(); in ValueEnumerator()
382 GV.getAllMetadata(MDs); in ValueEnumerator()
383 for (const auto &I : MDs) in ValueEnumerator()
396 MDs.clear(); in ValueEnumerator()
397 F.getAllMetadata(MDs); in ValueEnumerator()
398 for (const auto &I : MDs) in ValueEnumerator()
421 MDs.clear(); in ValueEnumerator()
422 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
423 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
DValueEnumerator.h69 std::vector<const Metadata *> MDs; variable
84 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
86 assert(ID <= MDs.size() && "Expected valid ID"); in get()
87 return MDs[ID - 1]; in get()
163 unsigned numMDs() const { return MDs.size(); } in numMDs()
201 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
205 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
210 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings); in getNonMDStrings()
/external/llvm-project/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp420 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
422 MDs.clear(); in ValueEnumerator()
423 GV.getAllMetadata(MDs); in ValueEnumerator()
424 for (const auto &I : MDs) in ValueEnumerator()
437 MDs.clear(); in ValueEnumerator()
438 F.getAllMetadata(MDs); in ValueEnumerator()
439 for (const auto &I : MDs) in ValueEnumerator()
464 MDs.clear(); in ValueEnumerator()
465 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
466 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
[all …]
DValueEnumerator.h67 std::vector<const Metadata *> MDs; variable
82 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
84 assert(ID <= MDs.size() && "Expected valid ID"); in get()
85 return MDs[ID - 1]; in get()
161 unsigned numMDs() const { return MDs.size(); } in numMDs()
199 bool hasMDs() const { return NumModuleMDs < MDs.size(); } in hasMDs()
203 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings); in getMDStrings()
208 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/llvm-project/llvm/lib/IR/
DMetadata.cpp812 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
816 MDTupleInfo::KeyTy Key(MDs); in getImpl()
826 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
901 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in concatenate() local
902 MDs.insert(B->op_begin(), B->op_end()); in concatenate()
906 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
913 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in intersect() local
915 MDs.remove_if([&](Metadata *MD) { return !BSet.count(MD); }); in intersect()
919 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
930 SmallSetVector<Metadata *, 4> MDs; in getMostGenericAliasScope() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DMetadata.h145 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
146 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
915 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
917 ArrayRef<Metadata *> MDs);
919 ArrayRef<Metadata *> MDs);
921 ArrayRef<Metadata *> MDs);
1129 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1141 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1142 return getImpl(Context, MDs, Uniqued);
1145 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DGlobalObject.h148 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
149 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const;
170 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
/external/llvm-project/llvm/include/llvm/IR/
DMetadata.h145 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
146 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
913 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
915 ArrayRef<Metadata *> MDs);
917 ArrayRef<Metadata *> MDs);
919 ArrayRef<Metadata *> MDs);
1127 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1139 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1140 return getImpl(Context, MDs, Uniqued);
1143 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
/external/llvm-project/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-10.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/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;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DMetadata.cpp814 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
818 MDTupleInfo::KeyTy Key(MDs); in getImpl()
828 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
903 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in concatenate() local
904 MDs.insert(B->op_begin(), B->op_end()); in concatenate()
908 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
915 SmallSetVector<Metadata *, 4> MDs(A->op_begin(), A->op_end()); in intersect() local
917 MDs.remove_if([&](Metadata *MD) { return !is_contained(BSet, MD); }); in intersect()
921 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
1044 SmallVector<Metadata *, 4> MDs; in getMostGenericRange() local
[all …]
/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/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-10.0/llvm/lib/Transforms/Utils/
DLoopUtils.cpp202 Metadata *MDs[] = { in createStringMetadata() local
205 return MDNode::get(Context, MDs); in createStringMetadata()
213 SmallVector<Metadata *, 4> MDs(1); in addStringMetadataToLoop() local
233 MDs.push_back(Node); in addStringMetadataToLoop()
237 MDs.push_back(createStringMetadata(TheLoop, StringMD, V)); in addStringMetadataToLoop()
240 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop()
316 SmallVector<Metadata *, 8> MDs; in makeFollowupLoopID() local
317 MDs.push_back(nullptr); in makeFollowupLoopID()
342 MDs.push_back(Op); in makeFollowupLoopID()
359 MDs.push_back(Option.get()); in makeFollowupLoopID()
[all …]
/external/llvm-project/llvm/bindings/go/llvm/
DIRBindings.cpp32 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, in LLVMMDNode2() argument
35 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()

1234