Home
last modified time | relevance | path

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

/external/llvm/include/llvm/IR/
DMetadata.h784 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
786 ArrayRef<Metadata *> MDs);
788 ArrayRef<Metadata *> MDs);
790 ArrayRef<Metadata *> MDs);
992 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1004 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1005 return getImpl(Context, MDs, Uniqued);
1007 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1008 return getImpl(Context, MDs, Uniqued, /* ShouldCreate */ false);
1014 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DInstruction.h182 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
184 getAllMetadataImpl(MDs);
190 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const {
192 getAllMetadataOtherThanDebugLocImpl(MDs);
DFunction.h619 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
DDebugInfoMetadata.h1113 unsigned Column, ArrayRef<Metadata *> MDs);
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp330 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in ValueEnumerator() local
338 F.getAllMetadata(MDs); in ValueEnumerator()
339 for (const auto &I : MDs) in ValueEnumerator()
364 MDs.clear(); in ValueEnumerator()
365 I.getAllMetadataOtherThanDebugLoc(MDs); in ValueEnumerator()
366 for (unsigned i = 0, e = MDs.size(); i != e; ++i) in ValueEnumerator()
367 EnumerateMetadata(MDs[i].second); in ValueEnumerator()
540 MDs.push_back(MD); in EnumerateMetadata()
541 MDValueMap[MD] = MDs.size(); in EnumerateMetadata()
553 MDs.push_back(Local); in EnumerateFunctionLocalMetadata()
[all …]
DValueEnumerator.h63 std::vector<const Metadata *> MDs; variable
122 unsigned numMDs() const { return MDs.size(); } in numMDs()
161 const std::vector<const Metadata *> &getMDs() const { return MDs; } in getMDs()
DBitcodeWriter.cpp1255 const auto &MDs = VE.getMDs(); in WriteModuleMetadata() local
1256 if (MDs.empty() && M->named_metadata_empty()) in WriteModuleMetadata()
1317 for (const Metadata *MD : MDs) { in WriteModuleMetadata()
1367 const SmallVectorImpl<const LocalAsMetadata *> &MDs = in WriteFunctionLocalMetadata() local
1369 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in WriteFunctionLocalMetadata()
1370 assert(MDs[i] && "Expected valid function-local metadata"); in WriteFunctionLocalMetadata()
1375 WriteValueAsMetadata(MDs[i], VE, Stream, Record); in WriteFunctionLocalMetadata()
1391 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in WriteMetadataAttachment() local
1392 F.getAllMetadata(MDs); in WriteMetadataAttachment()
1393 if (!MDs.empty()) { in WriteMetadataAttachment()
[all …]
/external/llvm/lib/IR/
DMetadata.cpp713 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl() argument
717 MDTupleInfo::KeyTy Key(MDs); in getImpl()
727 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
800 SmallVector<Metadata *, 4> MDs; in concatenate() local
801 MDs.reserve(A->getNumOperands() + B->getNumOperands()); in concatenate()
802 MDs.append(A->op_begin(), A->op_end()); in concatenate()
803 MDs.append(B->op_begin(), B->op_end()); in concatenate()
807 return getOrSelfReference(A->getContext(), MDs); in concatenate()
814 SmallVector<Metadata *, 4> MDs; in intersect() local
817 MDs.push_back(MD); in intersect()
[all …]
DLLVMContextImpl.cpp209 SmallVector<Metadata *, 8> MDs(N->op_begin() + Offset, N->op_end()); in calculateHash() local
210 unsigned RawHash = calculateHash(MDs); in calculateHash()
DDebugInfoMetadata.cpp23 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()
DVerifier.cpp425 const SmallVector<std::pair<unsigned, MDNode *>, 4> MDs);
1468 const SmallVector<std::pair<unsigned, MDNode *>, 4> MDs) { in VerifyFunctionMetadata() argument
1469 if (MDs.empty()) in VerifyFunctionMetadata()
1472 for (unsigned i = 0; i < MDs.size(); i++) { in VerifyFunctionMetadata()
1473 if (MDs[i].first == LLVMContext::MD_prof) { in VerifyFunctionMetadata()
1474 MDNode *MD = MDs[i].second; in VerifyFunctionMetadata()
1774 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in visitFunction() local
1775 F.getAllMetadata(MDs); in visitFunction()
1776 assert(F.hasMetadata() != MDs.empty() && "Bit out-of-sync"); in visitFunction()
1777 VerifyFunctionMetadata(MDs); in visitFunction()
[all …]
DAsmWriter.cpp850 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processFunctionMetadata() local
851 F.getAllMetadata(MDs); in processFunctionMetadata()
852 for (auto &MD : MDs) in processFunctionMetadata()
872 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in processInstructionMetadata() local
873 I.getAllMetadata(MDs); in processInstructionMetadata()
874 for (auto &MD : MDs) in processInstructionMetadata()
2054 const SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs,
2628 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in printFunction() local
2629 F->getAllMetadata(MDs); in printFunction()
2630 printMetadataAttachments(MDs, " "); in printFunction()
[all …]
DCore.cpp742 SmallVector<Metadata *, 8> MDs; in LLVMMDNodeInContext() local
761 MDs.push_back(MD); in LLVMMDNodeInContext()
763 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs))); in LLVMMDNodeInContext()
/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/Utils/
DLoopUnrollRuntime.cpp226 SmallVector<Metadata *, 4> MDs; in CloneLoopBlocks() local
228 MDs.push_back(nullptr); in CloneLoopBlocks()
240 MDs.push_back(LoopID->getOperand(i)); in CloneLoopBlocks()
248 MDs.push_back(DisableNode); in CloneLoopBlocks()
250 MDNode *NewLoopID = MDNode::get(Context, MDs); in CloneLoopBlocks()
DValueMapper.cpp452 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in RemapInstruction() local
453 I->getAllMetadata(MDs); in RemapInstruction()
454 for (const auto &MI : MDs) { in RemapInstruction()
/external/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp769 SmallVector<Metadata *, 4> MDs; in SetLoopAlreadyUnrolled() local
771 MDs.push_back(nullptr); in SetLoopAlreadyUnrolled()
780 MDs.push_back(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
788 MDs.push_back(DisableNode); in SetLoopAlreadyUnrolled()
790 MDNode *NewLoopID = MDNode::get(Context, MDs); in SetLoopAlreadyUnrolled()
DScalarizer.cpp333 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in transferMetadata() local
334 Op->getAllMetadataOtherThanDebugLoc(MDs); in transferMetadata()
338 MI = MDs.begin(), in transferMetadata()
339 ME = MDs.end(); in transferMetadata()
DLoopUnswitch.cpp693 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in copyMetadata() local
694 SrcInst->getAllMetadata(MDs); in copyMetadata()
695 for (auto &MD : MDs) { in copyMetadata()
/external/llvm/lib/Linker/
DIRMover.cpp1144 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in linkFunctionBody() local
1145 Src.getAllMetadata(MDs); in linkFunctionBody()
1146 for (const auto &I : MDs) in linkFunctionBody()
1386 SmallVector<Metadata *, 8> MDs; in linkModuleFlagsMetadata() local
1387 MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands()); in linkModuleFlagsMetadata()
1388 MDs.append(DstValue->op_begin(), DstValue->op_end()); in linkModuleFlagsMetadata()
1389 MDs.append(SrcValue->op_begin(), SrcValue->op_end()); in linkModuleFlagsMetadata()
1391 replaceDstValue(MDNode::get(DstM.getContext(), MDs)); in linkModuleFlagsMetadata()
/external/llvm/unittests/IR/
DMetadataTest.cpp77 Metadata *MDs[] = {MD1, MD2}; in getNode() local
78 return MDNode::get(Context, MDs); in getNode()
2214 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in TEST_F() local
2215 F->getAllMetadata(MDs); in TEST_F()
2216 ASSERT_EQ(4u, MDs.size()); in TEST_F()
2217 EXPECT_EQ(LLVMContext::MD_dbg, MDs[0].first); in TEST_F()
2218 EXPECT_EQ(LLVMContext::MD_prof, MDs[1].first); in TEST_F()
2219 EXPECT_EQ(Context.getMDKindID("other1"), MDs[2].first); in TEST_F()
2220 EXPECT_EQ(Context.getMDKindID("other2"), MDs[3].first); in TEST_F()
2221 EXPECT_EQ(SP, MDs[0].second); in TEST_F()
[all …]
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1092 Metadata *MDs[] = {MDString::get(Context, Name), in createHintMetadata() local
1095 return MDNode::get(Context, MDs); in createHintMetadata()
1116 SmallVector<Metadata *, 4> MDs(1); in writeHintsToMetadata() local
1124 MDs.push_back(Node); in writeHintsToMetadata()
1130 MDs.push_back(createHintMetadata(Twine(Prefix(), H.Name).str(), H.Value)); in writeHintsToMetadata()
1134 MDNode *NewLoopID = MDNode::get(Context, MDs); in writeHintsToMetadata()
1666 SmallVector<Metadata *, 4> MDs; in AddRuntimeUnrollDisableMetaData() local
1668 MDs.push_back(nullptr); in AddRuntimeUnrollDisableMetaData()
1680 MDs.push_back(LoopID->getOperand(i)); in AddRuntimeUnrollDisableMetaData()
1691 MDs.push_back(DisableNode); in AddRuntimeUnrollDisableMetaData()
[all …]
/external/llvm/lib/AsmParser/
DLLParser.h417 bool ParseMDNodeVector(SmallVectorImpl<Metadata *> &MDs);
DLLParser.cpp3493 SmallVector<Metadata *, 4> MDs; in ParseMDField() local
3494 if (ParseMDNodeVector(MDs)) in ParseMDField()
3497 Result.assign(std::move(MDs)); in ParseMDField()