Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DProfileSummary.cpp34 return MDTuple::get(Context, Ops); in getKeyValMD()
42 return MDTuple::get(Context, Ops); in getKeyValMD()
59 Entries.push_back(MDTuple::get(Context, EntryMD)); in getDetailedSummaryMD()
62 MDTuple::get(Context, Entries)}; in getDetailedSummaryMD()
63 return MDTuple::get(Context, Ops); in getDetailedSummaryMD()
84 return MDTuple::get(Context, Components); in getMD()
88 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal()
104 static bool isKeyValuePair(MDTuple *MD, const char *Key, const char *Val) { in isKeyValuePair()
117 static bool getSummaryFromMD(MDTuple *MD, SummaryEntryVector &Summary) { in getSummaryFromMD()
123 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD()
[all …]
DDIBuilder.cpp49 CUNode->replaceEnumTypes(MDTuple::get(VMContext, AllEnumTypes)); in finalize()
62 CUNode->replaceRetainedTypes(MDTuple::get(VMContext, RetainValues)); in finalize()
64 DISubprogramArray SPs = MDTuple::get(VMContext, AllSubprograms); in finalize()
66 MDTuple *Temp = SP->getVariables().get(); in finalize()
86 CUNode->replaceGlobalVariables(MDTuple::get(VMContext, AllGVs)); in finalize()
89 CUNode->replaceImportedEntities(MDTuple::get( in finalize()
371 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType()
509 return MDTuple::get(VMContext, Elements); in getOrCreateArray()
638 MDTuple::getTemporary(VMContext, None).release()); in createFunction()
DMetadata.cpp649 void MDTuple::recalculateHash() { in recalculateHash()
776 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl()
790 return storeImpl(new (MDs.size()) MDTuple(Context, Storage, Hash, MDs), in getImpl()
1443 *MDTuple::get(getContext(), in addTypeMetadata()
DVerifier.cpp370 template <class Ty> bool isValidMetadataArray(const MDTuple &N);
772 bool isValidMetadataArrayImpl(const MDTuple &N, bool AllowNull) { in isValidMetadataArrayImpl()
786 bool isValidMetadataArray(const MDTuple &N) { in isValidMetadataArray()
791 bool isValidMetadataNullArray(const MDTuple &N) { in isValidMetadataNullArray()
858 auto *Params = dyn_cast<MDTuple>(&RawParams); in visitTemplateParams()
881 AssertDI(!N.getRawElements() || isa<MDTuple>(N.getRawElements()), in visitDICompositeType()
900 AssertDI(isa<MDTuple>(Types), "invalid composite elements", &N, Types); in visitDISubroutineType()
928 AssertDI(isa<MDTuple>(Array), "invalid enum list", &N, Array); in visitDICompileUnit()
936 AssertDI(isa<MDTuple>(Array), "invalid retained type list", &N, Array); in visitDICompileUnit()
945 AssertDI(isa<MDTuple>(Array), "invalid global variable list", &N, Array); in visitDICompileUnit()
[all …]
DLLVMContextImpl.h230 template <> struct MDNodeKeyImpl<MDTuple> : MDNodeOpsKey {
232 MDNodeKeyImpl(const MDTuple *N) : MDNodeOpsKey(N) {}
234 bool isKeyOf(const MDTuple *RHS) const { return compareOps(RHS); }
238 static unsigned calculateHash(MDTuple *N) {
DAutoUpgrade.cpp1485 auto *T = dyn_cast_or_null<MDTuple>(MD); in isOldLoopArgument()
1509 auto *T = dyn_cast_or_null<MDTuple>(MD); in upgradeLoopArgument()
1527 return MDTuple::get(T->getContext(), Ops); in upgradeLoopArgument()
1531 auto *T = dyn_cast<MDTuple>(&N); in upgradeInstructionLoopAttachment()
1543 return MDTuple::get(T->getContext(), Ops); in upgradeInstructionLoopAttachment()
DAsmWriter.cpp1386 static void writeMDTuple(raw_ostream &Out, const MDTuple *Node, in writeMDTuple()
/external/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp24 auto *U = MDTuple::get(Context, None); in TEST()
37 auto T = MDTuple::getTemporary(Context, Ops); in TEST()
39 U0 = MDTuple::get(Context, Ops); in TEST()
79 auto T0 = MDTuple::getTemporary(Context, nullptr); in TEST()
81 N1 = MDTuple::get(Context, Ops1); in TEST()
110 TempMDTuple T = MDTuple::getTemporary(Context, None); in TEST()
118 auto *D = MDTuple::getDistinct(Context, None); in TEST()
134 Metadata *Old = MDTuple::getDistinct(Context, None); in TEST()
135 auto *D = MDTuple::getDistinct(Context, Old); in TEST()
138 Metadata *New = MDTuple::getDistinct(Context, None); in TEST()
[all …]
/external/llvm/unittests/IR/
DMetadataTest.cpp81 MDTuple *getTuple() { return MDTuple::getDistinct(Context, None); } in getTuple()
473 MDNode *U = MDTuple::get(Context, None); in TEST_F()
474 MDNode *D = MDTuple::getDistinct(Context, None); in TEST_F()
475 auto T = MDTuple::getTemporary(Context, None); in TEST_F()
482 MDNode *U = MDTuple::get(Context, None); in TEST_F()
483 MDNode *D = MDTuple::getDistinct(Context, None); in TEST_F()
484 auto T = MDTuple::getTemporary(Context, None); in TEST_F()
491 MDNode *U = MDTuple::get(Context, None); in TEST_F()
492 MDNode *D = MDTuple::getDistinct(Context, None); in TEST_F()
493 auto T = MDTuple::getTemporary(Context, None); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h872 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
873 static inline MDTuple *getIfExists(LLVMContext &Context,
875 static inline MDTuple *getDistinct(LLVMContext &Context,
1072 class MDTuple : public MDNode {
1076 MDTuple(LLVMContext &C, StorageType Storage, unsigned Hash,
1082 ~MDTuple() { dropAllReferences(); }
1087 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1099 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1103 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1110 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DMetadata.def82 HANDLE_MDNODE_LEAF_UNIQUABLE(MDTuple)
/external/llvm/include/llvm/IR/
DMetadata.h850 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
851 static inline MDTuple *getIfExists(LLVMContext &Context,
853 static inline MDTuple *getDistinct(LLVMContext &Context,
1048 class MDTuple : public MDNode {
1052 MDTuple(LLVMContext &C, StorageType Storage, unsigned Hash,
1057 ~MDTuple() { dropAllReferences(); }
1062 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1074 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1077 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1084 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
DDebugInfoMetadata.h87 const MDTuple *N = nullptr;
91 DITypeRefArray(const MDTuple *N) : N(N) {} in DITypeRefArray()
94 explicit operator MDTuple *() const { return get(); }
96 MDTuple *get() const { return const_cast<MDTuple *>(N); } in get()
97 MDTuple *operator->() const { return get(); }
98 MDTuple &operator*() const { return *get(); }
883 return cast_or_null<MDTuple>(getRawElements());
887 return cast_or_null<MDTuple>(getRawTemplateParams());
971 return cast_or_null<MDTuple>(getRawTypeArray());
1083 return cast_or_null<MDTuple>(getRawEnumTypes());
[all …]
DProfileSummary.h27 class MDTuple; variable
DMetadata.def82 HANDLE_MDNODE_LEAF_UNIQUABLE(MDTuple)
/external/llvm/bindings/go/llvm/
DDIBuilderBindings.cpp131 D->createSubroutineType(DITypeRefArray(unwrap<MDTuple>(ParameterTypes)))); in LLVMDIBuilderCreateSubroutineType()
144 ElementTypes ? DINodeArray(unwrap<MDTuple>(ElementTypes)) : nullptr)); in LLVMDIBuilderCreateStructType()
178 DINodeArray(unwrap<MDTuple>(Subscripts)))); in LLVMDIBuilderCreateArrayType()
DIRBindings.cpp68 return wrap(MDTuple::getTemporary(*unwrap(C), in LLVMTemporaryMDNode()
/external/llvm/include/llvm/ProfileData/
DProfileCommon.h39 class MDTuple; variable
/external/llvm/lib/Transforms/IPO/
DStripSymbols.cpp343 DIC->replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); in runOnModule()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp762 DummyNodes.push_back(MDTuple::getTemporary(CalledFunc->getContext(), None)); in CloneAliasScopeMetadata()
780 MDTuple *TempM = cast<MDTuple>(MDMap[I]); in CloneAliasScopeMetadata()
DValueMapper.cpp394 MDTuple::get(V->getContext(), None)); in mapValue()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1107 TempMDTuple PrevMD(cast<MDTuple>(OldMD.get())); in assignValue()
1229 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in upgradeTypeRefArray()
1241 std::forward_as_tuple(MDTuple::getTemporary(Context, None))); in upgradeTypeRefArray()
1246 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in resolveTypeRefArray()
1256 return MDTuple::get(Context, Ops); in resolveTypeRefArray()
2163 if (auto *SPs = dyn_cast_or_null<MDTuple>(CU_SP.second)) in parseMetadata()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfUnit.cpp1047 addTemplateParams(ParamDIE, cast<MDTuple>(Val)); in constructTemplateValueParameterDIE()
/external/llvm/lib/AsmParser/
DLLParser.cpp611 FwdRef = std::make_pair(MDTuple::getTemporary(Context, None), IDLoc); in ParseMDNodeID()
3309 MD = (IsDistinct ? MDTuple::getDistinct : MDTuple::get)(Context, Elts); in ParseMDTuple()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp159 void writeMDTuple(const MDTuple *N, SmallVectorImpl<uint64_t> &Record,
1315 void ModuleBitcodeWriter::writeMDTuple(const MDTuple *N, in writeMDTuple()