/external/spirv-llvm/lib/SPIRV/ |
H A D | SPIRVRegularizeLLVM.cpp | 145 static const char *MDs[] = { local 150 for (auto &MDName:MDs) {
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 187 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 D | IRBindings.cpp | 60 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 D | LoopVersioningLICM.cpp | 118 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 D | LoopUnrollPass.cpp | 608 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 D | Scalarizer.cpp | 338 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 D | ValueEnumerator.cpp | 66 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 D | BitcodeWriter.cpp | 665 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 D | StripSymbols.cpp | 355 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 D | ValueEnumerator.h | 65 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 D | ValueEnumerator.cpp | 346 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 D | BitcodeWriter.cpp | 222 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 D | CloneFunction.cpp | 122 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; local 123 OldFunc->getAllMetadata(MDs); 124 for (auto MD : MDs)
|
H A D | LoopUnrollRuntime.cpp | 362 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 D | ValueMapper.cpp | 880 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 D | LLParser.cpp | 413 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 D | DebugInfoMetadata.cpp | 23 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 D | AsmWriter.cpp | 890 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 D | Verifier.cpp | 451 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 D | Core.cpp | 832 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 D | Metadata.h | 850 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 D | IRMover.cpp | 1126 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 D | MetadataTest.cpp | 77 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 D | Metadata.h | 872 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 D | LoopVectorize.cpp | 465 /// 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...] |