Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfileSummary.cpp31 return MDTuple::get(Context, Ops); in getKeyValMD()
39 return MDTuple::get(Context, Ops); in getKeyFPValMD()
47 return MDTuple::get(Context, Ops); in getKeyValMD()
64 Entries.push_back(MDTuple::get(Context, EntryMD)); in getDetailedSummaryMD()
67 MDTuple::get(Context, Entries)}; in getDetailedSummaryMD()
68 return MDTuple::get(Context, Ops); in getDetailedSummaryMD()
100 return MDTuple::get(Context, Components); in getMD()
104 static ConstantAsMetadata *getValMD(MDTuple *MD, const char *Key) { in getValMD()
119 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal()
127 static bool getVal(MDTuple *MD, const char *Key, double &Val) { in getVal()
[all …]
H A DMemoryModelRelaxationAnnotations.cpp29 MDTuple *Tuple = dyn_cast<MDTuple>(MD); in MMRAMetadata()
50 if (auto *Tuple = dyn_cast<MDTuple>(MD)) { in isTagMD()
58 MDTuple *MMRAMetadata::getTagMD(LLVMContext &Ctx, StringRef Prefix, in getTagMD()
60 return MDTuple::get(Ctx, in getTagMD()
64 MDTuple *MMRAMetadata::getMD(LLVMContext &Ctx, in getMD()
75 return MDTuple::get(Ctx, MMRAs); in getMD()
98 return MDTuple::get(Ctx, Result); in combine()
H A DDIBuilder.cpp58 MDTuple::get(VMContext, SmallVector<Metadata *, 16>(PN->second.begin(), in finalizeSubprogram()
70 CUNode->replaceEnumTypes(MDTuple::get( in finalize()
85 CUNode->replaceRetainedTypes(MDTuple::get(VMContext, RetainValues)); in finalize()
94 CUNode->replaceGlobalVariables(MDTuple::get(VMContext, AllGVs)); in finalize()
97 CUNode->replaceImportedEntities(MDTuple::get( in finalize()
104 CUNode->replaceMacros(MDTuple::get(VMContext, I.second.getArrayRef())); in finalize()
587 VTableHolder, cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType()
802 return MDTuple::get(VMContext, Elements); in getOrCreateArray()
807 return MDTuple::get(VMContext, Elements); in getOrCreateMacroArray()
874 DIExpression *Expr, MDNode *Decl, MDTuple *TemplateParams, in createGlobalVariableExpression()
[all …]
H A DMetadata.cpp904 void MDTuple::recalculateHash() { in recalculateHash()
1031 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl()
1046 MDTuple(Context, Storage, Hash, MDs), in getImpl()
1728 auto *Tuple = cast<MDTuple>(Existing); in addAnnotationMetadata()
1734 auto *MDAnnotationTuple = cast<MDTuple>(N); in addAnnotationMetadata()
1747 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1749 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1756 auto *Tuple = cast<MDTuple>(Existing); in addAnnotationMetadata()
1767 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1864 *MDTuple::get(getContext(), in addTypeMetadata()
H A DVerifier.cpp541 template <class Ty> bool isValidMetadataArray(const MDTuple &N);
1341 auto *Params = dyn_cast<MDTuple>(&RawParams); in visitTemplateParams()
1367 CheckDI(!N.getRawElements() || isa<MDTuple>(N.getRawElements()), in visitDICompositeType()
1427 CheckDI(isa<MDTuple>(Types), "invalid composite elements", &N, Types); in visitDISubroutineType()
1475 CheckDI(isa<MDTuple>(Array), "invalid enum list", &N, Array); in visitDICompileUnit()
1483 CheckDI(isa<MDTuple>(Array), "invalid retained type list", &N, Array); in visitDICompileUnit()
1492 CheckDI(isa<MDTuple>(Array), "invalid global variable list", &N, Array); in visitDICompileUnit()
1499 CheckDI(isa<MDTuple>(Array), "invalid imported entity list", &N, Array); in visitDICompileUnit()
1506 CheckDI(isa<MDTuple>(Array), "invalid macro list", &N, Array); in visitDICompileUnit()
1531 auto *Node = dyn_cast<MDTuple>(RawNode); in visitDISubprogram()
[all …]
H A DDebugInfo.cpp740 MDTuple *EnumTypes = nullptr; in getReplacementCU()
741 MDTuple *RetainedTypes = nullptr; in getReplacementCU()
742 MDTuple *GlobalVariables = nullptr; in getReplacementCU()
743 MDTuple *ImportedEntities = nullptr; in getReplacementCU()
1735 MDTuple::getTemporary(*unwrap(Ctx), {unwrap(Data), Count}).release()); in LLVMTemporaryMDNode()
H A DLLVMContextImpl.h298 template <> struct MDNodeKeyImpl<MDTuple> : MDNodeOpsKey {
300 MDNodeKeyImpl(const MDTuple *N) : MDNodeOpsKey(N) {}
302 bool isKeyOf(const MDTuple *RHS) const { return compareOps(RHS); }
306 static unsigned calculateHash(MDTuple *N) {
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMemoryModelRelaxationAnnotations.h31 class MDTuple; variable
72 LLVM_ABI static MDTuple *getTagMD(LLVMContext &Ctx, StringRef Prefix,
74 static MDTuple *getTagMD(LLVMContext &Ctx, const TagT &T) { in getTagMD()
80 LLVM_ABI static MDTuple *getMD(LLVMContext &Ctx, ArrayRef<TagT> Tags);
H A DMetadata.h1216 static inline MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs);
1217 static inline MDTuple *getIfExists(LLVMContext &Context,
1219 static inline MDTuple *getDistinct(LLVMContext &Context,
1476 class MDTuple : public MDNode {
1480 MDTuple(LLVMContext &C, StorageType Storage, unsigned Hash,
1486 ~MDTuple() { dropAllReferences(); }
1491 LLVM_ABI static MDTuple *getImpl(LLVMContext &Context,
1505 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1509 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1516 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
H A DDebugInfoMetadata.h75 const MDTuple *N = nullptr;
79 DITypeRefArray(const MDTuple *N) : N(N) {} in DITypeRefArray()
82 explicit operator MDTuple *() const { return get(); }
84 MDTuple *get() const { return const_cast<MDTuple *>(N); } in get()
85 MDTuple *operator->() const { return get(); }
86 MDTuple &operator*() const { return *get(); }
1410 return cast_or_null<MDTuple>(getExtraData()); in getTemplateParams()
1415 return cast_or_null<MDTuple>(getRawAnnotations()); in getAnnotations()
1798 return cast_or_null<MDTuple>(getRawElements()); in getElements()
1804 return cast_or_null<MDTuple>(getRawTemplateParams()); in getTemplateParams()
[all …]
H A DMetadata.def82 HANDLE_MDNODE_LEAF_UNIQUABLE(MDTuple)
H A DDIBuilder.h875 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0,
883 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0);
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILTranslateMetadata.cpp170 static MDTuple *
205 MDTuple *constructEntryMetadata(const Function *EntryFn, MDTuple *Signatures, in constructEntryMetadata()
206 MDNode *Resources, MDTuple *Properties, in constructEntryMetadata()
224 static MDTuple *emitEntryMD(const EntryProperties &EP, MDTuple *Signatures, in emitEntryMD()
228 MDTuple *Properties = in emitEntryMD()
276 static MDTuple *emitTopLevelLibraryNode(Module &M, MDNode *RMD, in emitTopLevelLibraryNode()
279 MDTuple *Properties = nullptr; in emitTopLevelLibraryNode()
339 MDTuple *Signatures = nullptr; in translateMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp249 DIC->replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); in stripDeadDebugInfoImpl()
305 auto *CGProf = dyn_cast_or_null<MDTuple>(M.getModuleFlag("CG Profile")); in run()
316 MDTuple::getDistinct(M.getContext(), ValidCGEdges)); in run()
H A DThinLTOBitcodeWriter.cpp432 CfiFunctionMDs.push_back(MDTuple::get(Ctx, Elts)); in splitAndWriteThinLTOBitcode()
457 FunctionAliases.push_back(MDTuple::get(Ctx, Elts)); in splitAndWriteThinLTOBitcode()
472 Symvers.push_back(MDTuple::get( in splitAndWriteThinLTOBitcode()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBasicBlockSections.cpp286 MDTuple *Tuple = cast<MDTuple>(Existing); in hasInstrProfHashMismatch()
H A DSanitizerBinaryMetadata.cpp79 auto &AuxMDs = *cast<MDTuple>(MD->getOperand(1)); in run()
H A DJMCInstrumenter.cpp223 MDTuple *N = MDNode::get(Ctx, Ops); in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DAnnotationRemarks.cpp62 : cast<MDString>(cast<MDTuple>(Op.get())->getOperand(0).get()) in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp44 MDTuple::getDistinct(Context, Nodes)); in addModuleFlags()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp1260 assert(isa<MDTuple>(DstValue) && in linkModuleFlagsMetadata()
1263 return dyn_cast<MDTuple>(DstValue); in linkModuleFlagsMetadata()
1265 MDTuple *New = MDTuple::getDistinct( in linkModuleFlagsMetadata()
1268 MDNode *Flag = MDTuple::getDistinct(DstM.getContext(), FlagOps); in linkModuleFlagsMetadata()
1352 MDTuple *DstValue = ensureDistinctOp(cast<MDNode>(DstOp->getOperand(2))); in linkModuleFlagsMetadata()
1360 MDTuple *DstValue = ensureDistinctOp(cast<MDNode>(DstOp->getOperand(2))); in linkModuleFlagsMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp201 TempMDTuple PrevMD(cast<MDTuple>(OldMD.get())); in assignValue()
309 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in upgradeTypeRefArray()
321 std::forward_as_tuple(MDTuple::getTemporary(Context, {}))); in upgradeTypeRefArray()
326 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in resolveTypeRefArray()
336 return MDTuple::get(Context, Ops); in resolveTypeRefArray()
484 if (auto *SPs = dyn_cast_or_null<MDTuple>(CU_SP.second)) in upgradeCUSubprograms()
500 if (auto *GVs = dyn_cast_or_null<MDTuple>(CU->getRawGlobalVariables())) in upgradeCUVariables()
593 CU->replaceImportedEntities(MDTuple::get(Context, NewImports)); in upgradeCULocals()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDXILResource.h28 class MDTuple; variable
394 LLVM_ABI MDTuple *getAsMetadata(Module &M, dxil::ResourceTypeInfo &RTI) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUPALMetadata.cpp60 auto *MDN = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readFromIR()
78 auto *Tuple = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readFromIR()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerWriter.cpp297 auto *NameAndContent = llvm::MDTuple::get(*VMContext, Ops); in HandleTranslationUnit()

123