Searched defs:MDs (Results 1 - 25 of 25) sorted by relevance

/external/spirv-llvm/lib/SPIRV/
H A DSPIRVRegularizeLLVM.cpp145 static const char *MDs[] = { local
150 for (auto &MDName:MDs) {
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
H A DValueMapper.cpp187 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
188 I->getAllMetadata(MDs);
190 MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
/external/llvm/bindings/go/llvm/
H A DIRBindings.cpp60 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, argument
63 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count)));
66 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs, argument
69 ArrayRef<Metadata *>(unwrap(MDs), Count))
/external/llvm/lib/Transforms/Scalar/
H A DLoopVersioningLICM.cpp118 Metadata *MDs[] = { local
121 return MDNode::get(Context, MDs);
127 SmallVector<Metadata *, 4> MDs(1);
133 MDs.push_back(Node);
137 MDs.push_back(createStringMetadata(TheLoop, MDString, V));
140 MDNode *NewLoopID = MDNode::get(Context, MDs);
H A DLoopUnrollPass.cpp608 SmallVector<Metadata *, 4> MDs; local
610 MDs.push_back(nullptr);
621 MDs.push_back(LoopID->getOperand(i));
630 MDs.push_back(DisableNode);
632 MDNode *NewLoopID = MDNode::get(Context, MDs);
H A DScalarizer.cpp338 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
339 Op->getAllMetadataOtherThanDebugLoc(MDs);
342 for (const auto &MD : MDs)
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
H A DValueEnumerator.cpp66 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; local
92 MDs.clear();
93 I->getAllMetadataOtherThanDebugLoc(MDs);
94 for (unsigned i = 0, e = MDs.size(); i != e; ++i)
95 EnumerateMetadata(MDs[i].second);
443 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; local
444 I->getAllMetadataOtherThanDebugLoc(MDs);
445 for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
446 MDNode *N = MDs[i].second;
H A DBitcodeWriter.cpp665 SmallVector<std::pair<unsigned, MDNode*>, 4> MDs; local
670 MDs.clear();
671 I->getAllMetadataOtherThanDebugLoc(MDs);
674 if (MDs.empty()) continue;
678 for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
679 Record.push_back(MDs[i].first);
680 Record.push_back(VE.getValueID(MDs[i].second));
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
H A DStripSymbols.cpp355 SmallVector<MDNode *, 8> MDs; local
358 MDs.push_back(NMD->getOperand(i));
364 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(),
365 E = MDs.end(); I != E; ++I) {
379 SmallVector<MDNode *, 8> MDs; local
382 MDs.push_back(NMD->getOperand(i));
388 for (SmallVector<MDNode *, 8>::iterator I = MDs.begin(),
389 E = MDs.end(); I != E; ++I) {
/external/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h65 std::vector<const Metadata *> MDs; member in class:llvm::ValueEnumerator
80 const Metadata *get(ArrayRef<const Metadata *> MDs) const {
82 assert(ID <= MDs.size() && "Expected valid ID");
83 return MDs[ID - 1];
156 unsigned numMDs() const { return MDs.size(); }
193 bool hasMDs() const { return NumModuleMDs < MDs.size(); }
197 return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings);
202 return makeArrayRef(MDs).slice(NumModuleMDs).slice(NumMDStrings);
H A DValueEnumerator.cpp346 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local
348 MDs.clear();
349 GV.getAllMetadata(MDs);
350 for (const auto &I : MDs)
363 MDs.clear();
364 F.getAllMetadata(MDs);
365 for (const auto &I : MDs)
390 MDs.clear();
391 I.getAllMetadataOtherThanDebugLoc(MDs);
392 for (unsigned i = 0, e = MDs
[all...]
H A DBitcodeWriter.cpp222 void writeMetadataRecords(ArrayRef<const Metadata *> MDs,
1803 ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record) {
1804 if (MDs.empty())
1811 for (const Metadata *MD : MDs) {
1871 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
1872 GO.getAllMetadata(MDs);
1873 for (const auto &I : MDs) {
1892 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
1895 MDs.clear();
1896 I.getAllMetadataOtherThanDebugLoc(MDs);
1802 writeMetadataRecords( ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record) argument
[all...]
/external/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp122 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local
123 OldFunc->getAllMetadata(MDs);
124 for (auto MD : MDs)
H A DLoopUnrollRuntime.cpp362 SmallVector<Metadata *, 4> MDs; local
364 MDs.push_back(nullptr);
376 MDs.push_back(LoopID->getOperand(i));
384 MDs.push_back(DisableNode);
386 MDNode *NewLoopID = MDNode::get(Context, MDs);
H A DValueMapper.cpp880 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
881 I->getAllMetadata(MDs);
882 for (const auto &MI : MDs) {
921 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; local
922 F.getAllMetadata(MDs);
924 for (const auto &I : MDs)
/external/llvm/lib/AsmParser/
H A DLLParser.cpp413 std::vector<std::pair<unsigned, MDNode *>> MDs; local
419 MDs.push_back({MDK, N});
425 for (auto &MD : MDs)
3699 SmallVector<Metadata *, 4> MDs;
3700 if (ParseMDNodeVector(MDs))
3703 Result.assign(std::move(MDs));
/external/llvm/lib/IR/
H A DDebugInfoMetadata.cpp23 unsigned Column, ArrayRef<Metadata *> MDs)
24 : MDNode(C, DILocationKind, Storage, MDs) {
25 assert((MDs.size() == 1 || MDs.size() == 2) &&
22 DILocation(LLVMContext &C, StorageType Storage, unsigned Line, unsigned Column, ArrayRef<Metadata *> MDs) argument
H A DAsmWriter.cpp890 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
891 GO.getAllMetadata(MDs);
892 for (auto &MD : MDs)
915 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
916 I.getAllMetadata(MDs);
917 for (auto &MD : MDs)
2108 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs,
2495 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
2496 GV->getAllMetadata(MDs);
2497 printMetadataAttachments(MDs, ", ");
2621 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
2707 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
3195 printMetadataAttachments( const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, StringRef Separator) argument
[all...]
H A DVerifier.cpp451 void verifyFunctionMetadata(ArrayRef<std::pair<unsigned, MDNode *>> MDs);
1590 ArrayRef<std::pair<unsigned, MDNode *>> MDs) {
1591 for (const auto &Pair : MDs) {
1959 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
1960 F.getAllMetadata(MDs);
1961 assert(F.hasMetadata() != MDs.empty() && "Bit out-of-sync");
1962 verifyFunctionMetadata(MDs);
1975 Assert(MDs.empty(), "unmaterialized function cannot have metadata", &F,
1976 MDs.empty() ? nullptr : MDs
1589 verifyFunctionMetadata( ArrayRef<std::pair<unsigned, MDNode *>> MDs) argument
[all...]
H A DCore.cpp832 SmallVector<Metadata *, 8> MDs; local
851 MDs.push_back(MD);
853 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs)));
/external/llvm/include/llvm/IR/
H A 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) { argument
1075 return getImpl(Context, MDs, Uniqued);
1077 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument
1078 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false);
1084 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument
1093 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1106 get(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1109 getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1112 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1115 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
[all...]
/external/llvm/lib/Linker/
H A DIRMover.cpp1126 SmallVector<Metadata *, 8> MDs; local
1127 MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands());
1128 MDs.append(DstValue->op_begin(), DstValue->op_end());
1129 MDs.append(SrcValue->op_begin(), SrcValue->op_end());
1131 replaceDstValue(MDNode::get(DstM.getContext(), MDs));
/external/llvm/unittests/IR/
H A DMetadataTest.cpp77 Metadata *MDs[] = {MD1, MD2}; local
78 return MDNode::get(Context, MDs);
2251 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; local
2252 F->getAllMetadata(MDs);
2253 ASSERT_EQ(4u, MDs.size());
2254 EXPECT_EQ(LLVMContext::MD_dbg, MDs[0].first);
2255 EXPECT_EQ(LLVMContext::MD_prof, MDs[1].first);
2256 EXPECT_EQ(Context.getMDKindID("other1"), MDs[2].first);
2257 EXPECT_EQ(Context.getMDKindID("other2"), MDs[3].first);
2258 EXPECT_EQ(SP, MDs[
[all...]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
H A 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) { argument
1100 return getImpl(Context, MDs, Uniqued);
1103 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument
1104 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false);
1110 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) { argument
1119 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1132 get(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1136 getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1140 getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
1144 getTemporary(LLVMContext &Context, ArrayRef<Metadata *> MDs) argument
[all...]
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp465 /// This includes both the original MDs from \p From and additional ones (\see
1255 Metadata *MDs[] = {MDString::get(Context, Name), local
1258 return MDNode::get(Context, MDs);
1279 SmallVector<Metadata *, 4> MDs(1);
1287 MDs.push_back(Node);
1293 MDs.push_back(createHintMetadata(Twine(Prefix(), H.Name).str(), H.Value));
1297 MDNode *NewLoopID = MDNode::get(Context, MDs);
6333 SmallVector<Metadata *, 4> MDs; local
6335 MDs.push_back(nullptr);
6347 MDs
[all...]

Completed in 1352 milliseconds