/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 346 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 …]
|
D | ValueEnumerator.h | 65 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()
|
D | BitcodeWriter.cpp | 222 void writeMetadataRecords(ArrayRef<const Metadata *> MDs, 1803 ArrayRef<const Metadata *> MDs, SmallVectorImpl<uint64_t> &Record) { in writeMetadataRecords() argument 1804 if (MDs.empty()) in writeMetadataRecords() 1811 for (const Metadata *MD : MDs) { in writeMetadataRecords() 1871 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in pushGlobalMetadataAttachment() local 1872 GO.getAllMetadata(MDs); in pushGlobalMetadataAttachment() 1873 for (const auto &I : MDs) { in pushGlobalMetadataAttachment() 1892 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in writeFunctionMetadataAttachment() local 1895 MDs.clear(); in writeFunctionMetadataAttachment() 1896 I.getAllMetadataOtherThanDebugLoc(MDs); in writeFunctionMetadataAttachment() [all …]
|
/external/llvm/lib/IR/ |
D | Metadata.cpp | 776 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 …]
|
D | LLVMContextImpl.cpp | 185 SmallVector<Metadata *, 8> MDs(N->op_begin() + Offset, N->op_end()); in calculateHash() local 186 unsigned RawHash = calculateHash(MDs); in calculateHash()
|
D | AsmWriter.cpp | 890 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processGlobalObjectMetadata() local 891 GO.getAllMetadata(MDs); in processGlobalObjectMetadata() 892 for (auto &MD : MDs) in processGlobalObjectMetadata() 915 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processInstructionMetadata() local 916 I.getAllMetadata(MDs); in processInstructionMetadata() 917 for (auto &MD : MDs) in processInstructionMetadata() 2108 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs, 2495 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in printGlobal() local 2496 GV->getAllMetadata(MDs); in printGlobal() 2497 printMetadataAttachments(MDs, ", "); in printGlobal() [all …]
|
D | DebugInfoMetadata.cpp | 23 unsigned Column, ArrayRef<Metadata *> MDs) in DILocation() argument 24 : MDNode(C, DILocationKind, Storage, MDs) { in DILocation() 25 assert((MDs.size() == 1 || MDs.size() == 2) && in DILocation()
|
/external/llvm/include/llvm/IR/ |
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) { 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 …]
|
D | GlobalObject.h | 91 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;
|
D | Instruction.h | 177 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/lib/Transforms/IPO/ |
D | StripSymbols.cpp | 355 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/ |
D | IRBindings.cpp | 60 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()
|
D | IRBindings.h | 43 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, 45 LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs,
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 66 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/ |
D | LoopVersioningLICM.cpp | 118 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()
|
D | LoopUnrollPass.cpp | 608 SmallVector<Metadata *, 4> MDs; in SetLoopAlreadyUnrolled() local 610 MDs.push_back(nullptr); in SetLoopAlreadyUnrolled() 621 MDs.push_back(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled() 630 MDs.push_back(DisableNode); in SetLoopAlreadyUnrolled() 632 MDNode *NewLoopID = MDNode::get(Context, MDs); in SetLoopAlreadyUnrolled()
|
D | Scalarizer.cpp | 338 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in transferMetadata() local 339 Op->getAllMetadataOtherThanDebugLoc(MDs); in transferMetadata() 342 for (const auto &MD : MDs) in transferMetadata()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Instruction.h | 154 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/ |
D | ValueMapper.cpp | 187 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/spirv-llvm/lib/SPIRV/ |
D | SPIRVRegularizeLLVM.cpp | 145 static const char *MDs[] = { in regularize() local 150 for (auto &MDName:MDs) { in regularize()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 362 SmallVector<Metadata *, 4> MDs; in CloneLoopBlocks() local 364 MDs.push_back(nullptr); in CloneLoopBlocks() 376 MDs.push_back(LoopID->getOperand(i)); in CloneLoopBlocks() 384 MDs.push_back(DisableNode); in CloneLoopBlocks() 386 MDNode *NewLoopID = MDNode::get(Context, MDs); in CloneLoopBlocks()
|
D | ValueMapper.cpp | 880 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in remapInstruction() local 881 I->getAllMetadata(MDs); in remapInstruction() 882 for (const auto &MI : MDs) { in remapInstruction() 921 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in remapFunction() local 922 F.getAllMetadata(MDs); in remapFunction() 924 for (const auto &I : MDs) in remapFunction()
|
D | CloneFunction.cpp | 122 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneFunctionInto() local 123 OldFunc->getAllMetadata(MDs); in CloneFunctionInto() 124 for (auto MD : MDs) in CloneFunctionInto()
|
/external/llvm/lib/Linker/ |
D | IRMover.cpp | 1126 SmallVector<Metadata *, 8> MDs; in linkModuleFlagsMetadata() local 1127 MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands()); in linkModuleFlagsMetadata() 1128 MDs.append(DstValue->op_begin(), DstValue->op_end()); in linkModuleFlagsMetadata() 1129 MDs.append(SrcValue->op_begin(), SrcValue->op_end()); in linkModuleFlagsMetadata() 1131 replaceDstValue(MDNode::get(DstM.getContext(), MDs)); in linkModuleFlagsMetadata()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 77 Metadata *MDs[] = {MD1, MD2}; in getNode() local 78 return MDNode::get(Context, MDs); in getNode() 2251 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in TEST_F() local 2252 F->getAllMetadata(MDs); in TEST_F() 2253 ASSERT_EQ(4u, MDs.size()); in TEST_F() 2254 EXPECT_EQ(LLVMContext::MD_dbg, MDs[0].first); in TEST_F() 2255 EXPECT_EQ(LLVMContext::MD_prof, MDs[1].first); in TEST_F() 2256 EXPECT_EQ(Context.getMDKindID("other1"), MDs[2].first); in TEST_F() 2257 EXPECT_EQ(Context.getMDKindID("other2"), MDs[3].first); in TEST_F() 2258 EXPECT_EQ(SP, MDs[0].second); in TEST_F() [all …]
|