/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ProfileSummary.cpp | 31 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 D | MemoryModelRelaxationAnnotations.cpp | 30 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 D | Metadata.cpp | 897 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 D | DIBuilder.cpp | 60 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 D | Verifier.cpp | 532 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 D | DebugInfo.cpp | 718 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 D | LLVMContextImpl.h | 302 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 D | DXILMetadata.cpp | 149 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 D | MemoryModelRelaxationAnnotations.h | 30 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 D | Metadata.h | 1216 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 D | DebugInfoMetadata.h | 74 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 D | Metadata.def | 82 HANDLE_MDNODE_LEAF_UNIQUABLE(MDTuple)
|
H A D | DIBuilder.h | 722 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0, 730 MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0);
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | BasicBlockSections.cpp | 283 MDTuple *Tuple = cast<MDTuple>(Existing); in hasInstrProfHashMismatch()
|
H A D | SanitizerBinaryMetadata.cpp | 57 auto &AuxMDs = *cast<MDTuple>(MD->getOperand(1)); in runOnMachineFunction()
|
H A D | JMCInstrumenter.cpp | 223 MDTuple *N = MDNode::get(Ctx, Ops); in runImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | AnnotationRemarks.cpp | 63 : cast<MDString>(cast<MDTuple>(Op.get())->getOperand(0).get()) in runImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ThinLTOBitcodeWriter.cpp | 421 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 D | StripSymbols.cpp | 248 DIC->replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); in stripDeadDebugInfoImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | CGProfile.cpp | 44 MDTuple::getDistinct(Context, Nodes)); in addModuleFlags()
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 1368 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 D | MetadataLoader.cpp | 204 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 D | DXILResource.h | 182 MDTuple *getAsMetadata(LLVMContext &Ctx) const;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUPALMetadata.cpp | 37 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 D | DXILResource.cpp | 266 MDTuple *ResourceInfo::getAsMetadata(LLVMContext &Ctx) const { in getAsMetadata()
|