Home
last modified time | relevance | path

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

12

/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.cpp30 MDTuple *Tuple = dyn_cast<MDTuple>(MD); in MMRAMetadata()
51 if (auto *Tuple = dyn_cast<MDTuple>(MD)) { in isTagMD()
59 MDTuple *MMRAMetadata::getTagMD(LLVMContext &Ctx, StringRef Prefix, in getTagMD()
61 return MDTuple::get(Ctx, in getTagMD()
65 MDTuple *MMRAMetadata::getMD(LLVMContext &Ctx, in getMD()
76 return MDTuple::get(Ctx, MMRAs); in getMD()
99 return MDTuple::get(Ctx, Result); in combine()
H A DMetadata.cpp897 void MDTuple::recalculateHash() { in recalculateHash()
1024 MDTuple *MDTuple::getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs, in getImpl()
1039 MDTuple(Context, Storage, Hash, MDs), in getImpl()
1664 auto *Tuple = cast<MDTuple>(Existing); in addAnnotationMetadata()
1670 auto *MDAnnotationTuple = cast<MDTuple>(N); in addAnnotationMetadata()
1683 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1685 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1692 auto *Tuple = cast<MDTuple>(Existing); in addAnnotationMetadata()
1703 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1800 *MDTuple::get(getContext(), in addTypeMetadata()
H A DDIBuilder.cpp60 MDTuple::get(VMContext, SmallVector<Metadata *, 16>(PN->second.begin(), in finalizeSubprogram()
72 CUNode->replaceEnumTypes(MDTuple::get( in finalize()
87 CUNode->replaceRetainedTypes(MDTuple::get(VMContext, RetainValues)); in finalize()
96 CUNode->replaceGlobalVariables(MDTuple::get(VMContext, AllGVs)); in finalize()
99 CUNode->replaceImportedEntities(MDTuple::get( in finalize()
106 CUNode->replaceMacros(MDTuple::get(VMContext, I.second.getArrayRef())); in finalize()
515 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier); in createClassType()
694 return MDTuple::get(VMContext, Elements); in getOrCreateArray()
699 return MDTuple::get(VMContext, Elements); in getOrCreateMacroArray()
756 DIExpression *Expr, MDNode *Decl, MDTuple *TemplateParams, in createGlobalVariableExpression()
[all …]
H A DVerifier.cpp532 template <class Ty> bool isValidMetadataArray(const MDTuple &N);
1278 auto *Params = dyn_cast<MDTuple>(&RawParams); in visitTemplateParams()
1303 CheckDI(!N.getRawElements() || isa<MDTuple>(N.getRawElements()), in visitDICompositeType()
1356 CheckDI(isa<MDTuple>(Types), "invalid composite elements", &N, Types); in visitDISubroutineType()
1404 CheckDI(isa<MDTuple>(Array), "invalid enum list", &N, Array); in visitDICompileUnit()
1412 CheckDI(isa<MDTuple>(Array), "invalid retained type list", &N, Array); in visitDICompileUnit()
1421 CheckDI(isa<MDTuple>(Array), "invalid global variable list", &N, Array); in visitDICompileUnit()
1428 CheckDI(isa<MDTuple>(Array), "invalid imported entity list", &N, Array); in visitDICompileUnit()
1435 CheckDI(isa<MDTuple>(Array), "invalid macro list", &N, Array); in visitDICompileUnit()
1460 auto *Node = dyn_cast<MDTuple>(RawNode); in visitDISubprogram()
[all …]
H A DDebugInfo.cpp718 MDTuple *EnumTypes = nullptr; in getReplacementCU()
719 MDTuple *RetainedTypes = nullptr; in getReplacementCU()
720 MDTuple *GlobalVariables = nullptr; in getReplacementCU()
721 MDTuple *ImportedEntities = nullptr; in getReplacementCU()
1640 MDTuple::getTemporary(*unwrap(Ctx), {unwrap(Data), Count}).release()); in LLVMTemporaryMDNode()
H A DLLVMContextImpl.h302 template <> struct MDNodeKeyImpl<MDTuple> : MDNodeOpsKey {
304 MDNodeKeyImpl(const MDTuple *N) : MDNodeOpsKey(N) {}
306 bool isKeyOf(const MDTuple *RHS) const { return compareOps(RHS); }
310 static unsigned calculateHash(MDTuple *N) {
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILMetadata.cpp149 MDTuple *emitDXILEntryProps(uint64_t RawShaderFlag, LLVMContext &Ctx, in emitDXILEntryProps()
167 static MDTuple *emitEntryPropsForEmptyEntry(uint64_t RawShaderFlag, in emitEntryPropsForEmptyEntry()
233 MDTuple *emitEntryTuple(MDTuple *Resources, uint64_t RawShaderFlag) { in emitEntryTuple()
236 MDTuple *Signatures = nullptr; in emitEntryTuple()
242 MDTuple *emitEntryTupleForLib(uint64_t RawShaderFlag) { in emitEntryTupleForLib()
245 MDTuple *Signatures = nullptr; in emitEntryTupleForLib()
254 static MDTuple *emitEmptyEntryForLib(MDTuple *Resources, in emitEmptyEntryForLib()
263 static MDTuple *emitDXILEntryPointTuple(Function *Fn, const std::string &Name, in emitDXILEntryPointTuple()
264 MDTuple *Signatures, in emitDXILEntryPointTuple()
265 MDTuple *Resources, in emitDXILEntryPointTuple()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMemoryModelRelaxationAnnotations.h30 class MDTuple; variable
71 static MDTuple *getTagMD(LLVMContext &Ctx, StringRef Prefix,
73 static MDTuple *getTagMD(LLVMContext &Ctx, const TagT &T) { in getTagMD()
79 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,
1472 class MDTuple : public MDNode {
1476 MDTuple(LLVMContext &C, StorageType Storage, unsigned Hash,
1482 ~MDTuple() { dropAllReferences(); }
1487 static MDTuple *getImpl(LLVMContext &Context, ArrayRef<Metadata *> MDs,
1500 static MDTuple *get(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1504 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1511 static MDTuple *getDistinct(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
H A DDebugInfoMetadata.h74 const MDTuple *N = nullptr;
78 DITypeRefArray(const MDTuple *N) : N(N) {} in DITypeRefArray()
81 explicit operator MDTuple *() const { return get(); }
83 MDTuple *get() const { return const_cast<MDTuple *>(N); } in get()
84 MDTuple *operator->() const { return get(); }
85 MDTuple &operator*() const { return *get(); }
1107 return cast_or_null<MDTuple>(getExtraData()); in getTemplateParams()
1112 return cast_or_null<MDTuple>(getRawAnnotations()); in getAnnotations()
1287 return cast_or_null<MDTuple>(getRawElements()); in getElements()
1293 return cast_or_null<MDTuple>(getRawTemplateParams()); in getTemplateParams()
[all …]
H A DMetadata.def82 HANDLE_MDNODE_LEAF_UNIQUABLE(MDTuple)
H A DDIBuilder.h722 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0,
730 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBasicBlockSections.cpp283 MDTuple *Tuple = cast<MDTuple>(Existing); in hasInstrProfHashMismatch()
H A DSanitizerBinaryMetadata.cpp57 auto &AuxMDs = *cast<MDTuple>(MD->getOperand(1)); in runOnMachineFunction()
H A DJMCInstrumenter.cpp223 MDTuple *N = MDNode::get(Ctx, Ops); in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DAnnotationRemarks.cpp63 : cast<MDString>(cast<MDTuple>(Op.get())->getOperand(0).get()) in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp421 CfiFunctionMDs.push_back(MDTuple::get(Ctx, Elts)); in splitAndWriteThinLTOBitcode()
446 FunctionAliases.push_back(MDTuple::get(Ctx, Elts)); in splitAndWriteThinLTOBitcode()
461 Symvers.push_back(MDTuple::get( in splitAndWriteThinLTOBitcode()
H A DStripSymbols.cpp248 DIC->replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); in stripDeadDebugInfoImpl()
/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.cpp1368 assert(isa<MDTuple>(DstValue) && in linkModuleFlagsMetadata()
1371 return dyn_cast<MDTuple>(DstValue); in linkModuleFlagsMetadata()
1373 MDTuple *New = MDTuple::getDistinct( in linkModuleFlagsMetadata()
1377 MDNode *Flag = MDTuple::getDistinct(DstM.getContext(), FlagOps); in linkModuleFlagsMetadata()
1457 MDTuple *DstValue = ensureDistinctOp(cast<MDNode>(DstOp->getOperand(2))); in linkModuleFlagsMetadata()
1465 MDTuple *DstValue = ensureDistinctOp(cast<MDNode>(DstOp->getOperand(2))); in linkModuleFlagsMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp204 TempMDTuple PrevMD(cast<MDTuple>(OldMD.get())); in assignValue()
312 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in upgradeTypeRefArray()
324 std::forward_as_tuple(MDTuple::getTemporary(Context, std::nullopt))); in upgradeTypeRefArray()
329 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple); in resolveTypeRefArray()
339 return MDTuple::get(Context, Ops); in resolveTypeRefArray()
487 if (auto *SPs = dyn_cast_or_null<MDTuple>(CU_SP.second)) in upgradeCUSubprograms()
503 if (auto *GVs = dyn_cast_or_null<MDTuple>(CU->getRawGlobalVariables())) in upgradeCUVariables()
597 CU->replaceImportedEntities(MDTuple::get(Context, NewImports)); in upgradeCULocals()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DDXILResource.h182 MDTuple *getAsMetadata(LLVMContext &Ctx) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUPALMetadata.cpp37 auto MDN = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readFromIR()
55 auto Tuple = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readFromIR()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDXILResource.cpp266 MDTuple *ResourceInfo::getAsMetadata(LLVMContext &Ctx) const { in getAsMetadata()

12