| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 33 class MDNode; variable 56 LLVM_ABI MDNode *createFPMath(float Accuracy); 66 LLVM_ABI MDNode *createBranchWeights(uint32_t TrueWeight, 72 LLVM_ABI MDNode *createLikelyBranchWeights(); 76 LLVM_ABI MDNode *createUnlikelyBranchWeights(); 81 LLVM_ABI MDNode *createBranchWeights(ArrayRef<uint32_t> Weights, 85 LLVM_ABI MDNode *createUnpredictable(); 91 LLVM_ABI MDNode * 96 LLVM_ABI MDNode *createGlobalObjectSectionPrefix(StringRef Prefix); 99 LLVM_ABI MDNode *createPseudoProbeDesc(uint64_t GUID, uint64_t Hash, [all …]
|
| H A D | Metadata.h | 762 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 777 MDNode *TBAA = nullptr; 780 MDNode *TBAAStruct = nullptr; 783 MDNode *Scope = nullptr; 786 MDNode *NoAlias = nullptr; 789 LLVM_ABI static MDNode *shiftTBAA(MDNode *M, size_t off); 792 LLVM_ABI static MDNode *shiftTBAAStruct(MDNode *M, size_t off); 796 LLVM_ABI static MDNode *extendToTBAA(MDNode *TBAA, ssize_t len); 863 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 868 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), [all …]
|
| H A D | ProfDataUtils.h | 37 LLVM_ABI bool isBranchWeightMD(const MDNode *ProfileData); 40 LLVM_ABI bool isValueProfileMD(const MDNode *ProfileData); 61 LLVM_ABI MDNode *getBranchWeightMDNode(const Instruction &I); 68 LLVM_ABI MDNode *getValidBranchWeightMDNode(const Instruction &I); 76 LLVM_ABI bool hasBranchWeightOrigin(const MDNode *ProfileData); 79 LLVM_ABI unsigned getBranchWeightOffset(const MDNode *ProfileData); 81 LLVM_ABI unsigned getNumBranchWeights(const MDNode &ProfileData); 89 LLVM_ABI bool extractBranchWeights(const MDNode *ProfileData, 94 LLVM_ABI void extractFromBranchWeightMD32(const MDNode *ProfileData, 99 LLVM_ABI void extractFromBranchWeightMD64(const MDNode *ProfileData, [all …]
|
| H A D | DebugLoc.h | 88 DILocAndCoverageTracking(const MDNode *Loc) in DILocAndCoverageTracking() 89 : TrackingMDNodeRef(const_cast<MDNode *>(Loc)), DbgLocOrigin(!Loc), in DILocAndCoverageTracking() 98 using SimpleType = MDNode *; 100 static MDNode *getSimplifiedValue(DILocAndCoverageTracking &MD) { 105 using SimpleType = MDNode *; 107 static MDNode *getSimplifiedValue(const DILocAndCoverageTracking &MD) { 140 LLVM_ABI explicit DebugLoc(const MDNode *N); 252 DenseMap<const MDNode *, MDNode *> &Cache); 266 LLVM_ABI MDNode *getScope() const; 272 LLVM_ABI MDNode *getInlinedAtScope() const; [all …]
|
| H A D | Verifier.h | 34 class MDNode; variable 55 DenseMap<const MDNode *, TBAABaseNodeSummary> TBAABaseNodes; 59 DenseMap<const MDNode *, bool> TBAAScalarNodes; 63 MDNode *getFieldNodeFromTBAABaseNode(Instruction &I, const MDNode *BaseNode, 66 const MDNode *BaseNode, 69 const MDNode *BaseNode, 72 bool isValidScalarTBAANode(const MDNode *MD); 80 LLVM_ABI bool visitTBAAMetadata(Instruction &I, const MDNode *MD);
|
| H A D | DebugProgramInstruction.h | 64 class MDNode; variable 93 explicit DbgRecordParamRef(const MDNode *Param); 111 MDNode *getAsMDNode() const { return Ref; } in getAsMDNode() 243 DbgLabelRecord(MDNode *Label, MDNode *DL); 252 LLVM_ABI static DbgLabelRecord *createUnresolvedDbgLabelRecord(MDNode *Label, 253 MDNode *DL); 264 MDNode *getRawLabel() const { return Label.getAsMDNode(); }; in getRawLabel() 323 DbgVariableRecord(LocationType Type, Metadata *Val, MDNode *Variable, 324 MDNode *Expression, MDNode *AssignID, Metadata *Address, 325 MDNode *AddressExpression, MDNode *DI); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 29 MDNode *MDBuilder::createFPMath(float Accuracy) { in createFPMath() 35 return MDNode::get(Context, Op); in createFPMath() 38 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() 43 MDNode *MDBuilder::createLikelyBranchWeights() { in createLikelyBranchWeights() 48 MDNode *MDBuilder::createUnlikelyBranchWeights() { in createUnlikelyBranchWeights() 53 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights, in createBranchWeights() 67 return MDNode::get(Context, Vals); in createBranchWeights() 70 MDNode *MDBuilder::createUnpredictable() { return MDNode::get(Context, {}); } in createUnpredictable() 72 MDNode *MDBuilder::createFunctionEntryCount( in createFunctionEntryCount() 88 return MDNode::get(Context, Ops); in createFunctionEntryCount() [all …]
|
| H A D | Metadata.cpp | 85 return MDNode::get(Context, {}); in canonicalizeMetadataForValue() 88 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 94 return MDNode::get(Context, {}); in canonicalizeMetadataForValue() 358 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in SalvageDebugInfo() 445 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in resolveAllUses() 458 if (auto *N = dyn_cast<MDNode>(&MD)) { in getOrCreate() 469 if (auto *N = dyn_cast<MDNode>(&MD)) { in getIfExists() 480 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 634 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new() 644 void MDNode::operator delete(void *N) { in operator delete() [all …]
|
| H A D | ProfDataUtils.cpp | 49 bool isTargetMD(const MDNode *ProfData, const char *Name, unsigned MinOps) { in isTargetMD() 68 static void extractFromBranchWeightMD(const MDNode *ProfileData, in extractFromBranchWeightMD() 103 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() 107 bool isValueProfileMD(const MDNode *ProfileData) { in isValueProfileMD() 135 bool hasBranchWeightOrigin(const MDNode *ProfileData) { in hasBranchWeightOrigin() 147 unsigned getBranchWeightOffset(const MDNode *ProfileData) { in getBranchWeightOffset() 151 unsigned getNumBranchWeights(const MDNode &ProfileData) { in getNumBranchWeights() 155 MDNode *getBranchWeightMDNode(const Instruction &I) { in getBranchWeightMDNode() 162 MDNode *getValidBranchWeightMDNode(const Instruction &I) { in getValidBranchWeightMDNode() 169 void extractFromBranchWeightMD32(const MDNode *ProfileData, in extractFromBranchWeightMD32() [all …]
|
| H A D | DebugLoc.cpp | 48 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() 64 MDNode *DebugLoc::getScope() const { in getScope() 74 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope() 80 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc() 102 DenseMap<const MDNode *, MDNode *> &Cache) { in replaceInlinedAtSubprogram() argument 142 DenseMap<const MDNode *, MDNode *> &Cache) { in appendInlinedAt() argument
|
| H A D | AbstractCallSite.cpp | 40 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in getCallbackUses() 45 MDNode *OpMD = cast<MDNode>(Op.get()); in getCallbackUses() 93 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in AbstractCallSite() 101 MDNode *CallbackEncMD = nullptr; in AbstractCallSite() 103 MDNode *OpMD = cast<MDNode>(Op.get()); in AbstractCallSite()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TypeBasedAliasAnalysis.cpp | 137 static bool isNewFormatTypeNode(const MDNode *N) { in isNewFormatTypeNode() 141 if (!isa<MDNode>(N->getOperand(0))) in isNewFormatTypeNode() 194 using TBAANode = TBAANodeImpl<const MDNode>; 195 using MutableTBAANode = TBAANodeImpl<MDNode>; 224 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 228 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 258 using TBAAStructTagNode = TBAAStructTagNodeImpl<const MDNode>; 259 using MutableTBAAStructTagNode = TBAAStructTagNodeImpl<MDNode>; 267 const MDNode *Node = nullptr; 271 explicit TBAAStructTypeNode(const MDNode *N) : Node(N) {} in TBAAStructTypeNode() [all …]
|
| H A D | ScopedNoAliasAA.cpp | 62 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias() 64 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias() 109 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 110 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 112 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 119 const MDNode *NoAlias, SmallPtrSetImpl<const MDNode *> &Domains) const { in collectScopedDomains() 124 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in collectScopedDomains() 125 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in collectScopedDomains() 129 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, in mayAliasInScopes() 130 const MDNode *NoAlias) const { in mayAliasInScopes() [all …]
|
| H A D | MemoryProfileInfo.cpp | 68 MDNode *llvm::memprof::buildCallstackMetadata(ArrayRef<uint64_t> CallStack, in buildCallstackMetadata() 77 return MDNode::get(Ctx, StackVals); in buildCallstackMetadata() 80 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode() 83 return cast<MDNode>(MIB->getOperand(0)); in getMIBStackNode() 86 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType() 159 void CallStackTrie::addCallStack(MDNode *MIB) { in addCallStack() 160 MDNode *StackMD = getMIBStackNode(MIB); in addCallStack() 173 MDNode *ContextSizePair = dyn_cast<MDNode>(MIB->getOperand(I)); in addCallStack() 187 static MDNode *createMIBNode(LLVMContext &Ctx, ArrayRef<uint64_t> MIBCallStack, in createMIBNode() 202 return MDNode::get(Ctx, MIBPayload); in createMIBNode() [all …]
|
| H A D | LoopInfo.cpp | 502 MDNode *Loop::getLoopID() const { in getLoopID() 503 MDNode *LoopID = nullptr; in getLoopID() 510 MDNode *MD = TI->getMetadata(LLVMContext::MD_loop); in getLoopID() 526 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID() 541 MDNode *DisableUnrollMD = in setLoopAlreadyUnrolled() 542 MDNode::get(Context, MDString::get(Context, "llvm.loop.unroll.disable")); in setLoopAlreadyUnrolled() 543 MDNode *LoopID = getLoopID(); in setLoopAlreadyUnrolled() 544 MDNode *NewLoopID = makePostTransformationMetadata( in setLoopAlreadyUnrolled() 552 MDNode *MustProgress = findOptionMDForLoop(this, "llvm.loop.mustprogress"); in setLoopMustProgress() 557 MDNode *MustProgressMD = in setLoopMustProgress() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenTBAA.h | 43 TBAAAccessInfo(TBAAAccessKind Kind, llvm::MDNode *BaseType, in TBAAAccessInfo() 44 llvm::MDNode *AccessType, uint64_t Offset, uint64_t Size) in TBAAAccessInfo() 49 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo() 55 explicit TBAAAccessInfo(llvm::MDNode *AccessType, uint64_t Size) in TBAAAccessInfo() 101 llvm::MDNode *BaseType; 105 llvm::MDNode *AccessType; 130 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; 132 llvm::DenseMap<const Type *, llvm::MDNode *> BaseTypeMetadataCache; 134 llvm::DenseMap<TBAAAccessInfo, llvm::MDNode *> AccessTagMetadataCache; 138 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache; [all …]
|
| H A D | CodeGenTBAA.cpp | 47 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 62 llvm::MDNode *CodeGenTBAA::createScalarTypeNode(StringRef Name, in createScalarTypeNode() 63 llvm::MDNode *Parent, in createScalarTypeNode() 72 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 83 llvm::MDNode *CodeGenTBAA::getAnyPtr(unsigned PtrDepth) { in getAnyPtr() 160 llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) { in getTypeInfoHelper() 289 llvm::MDNode *ScalarMD = getTypeInfoHelper(Ty); in getTypeInfoHelper() 366 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo() 389 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo() 395 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() [all …]
|
| H A D | CGLoopInfo.cpp | 24 MDNode * 32 return MDNode::get(Ctx, Args); in createFollowupMetadata() 53 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata() 65 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata() 102 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata() 116 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata() 122 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata() 150 NewLoopProperties.push_back(MDNode::get( in createUnrollAndJamMetadata() 161 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable"))); in createUnrollAndJamMetadata() 176 Args.push_back(MDNode::get(Ctx, Vals)); in createUnrollAndJamMetadata() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/ |
| H A D | RootSignatureMetadata.cpp | 49 MDNode *MetadataBuilder::BuildRootSignature() { in BuildRootSignature() 51 [this](const dxbc::RootFlags &Flags) -> MDNode * { in BuildRootSignature() 54 [this](const RootConstants &Constants) -> MDNode * { in BuildRootSignature() 57 [this](const RootDescriptor &Descriptor) -> MDNode * { in BuildRootSignature() 60 [this](const DescriptorTableClause &Clause) -> MDNode * { in BuildRootSignature() 63 [this](const DescriptorTable &Table) -> MDNode * { in BuildRootSignature() 66 [this](const StaticSampler &Sampler) -> MDNode * { in BuildRootSignature() 72 MDNode *ElementMD = std::visit(Visitor, Element); in BuildRootSignature() 78 return MDNode::get(Ctx, GeneratedMetadata); in BuildRootSignature() 81 MDNode *MetadataBuilder::BuildRootFlags(const dxbc::RootFlags &Flags) { in BuildRootFlags() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/HLSL/ |
| H A D | RootSignatureMetadata.h | 21 class MDNode; variable 36 LLVM_ABI MDNode *BuildRootSignature(); 40 MDNode *BuildRootFlags(const dxbc::RootFlags &Flags); 41 MDNode *BuildRootConstants(const RootConstants &Constants); 42 MDNode *BuildRootDescriptor(const RootDescriptor &Descriptor); 43 MDNode *BuildDescriptorTable(const DescriptorTable &Table); 44 MDNode *BuildDescriptorTableClause(const DescriptorTableClause &Clause); 45 MDNode *BuildStaticSampler(const StaticSampler &Sampler);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | R600OpenCLImageTypeLoweringPass.cpp | 78 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode() 93 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode() 110 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() 111 MDNode *ArgAQNode = cast<MDNode>(KernelMDNode->getOperand(2)); in AccessQualFromMD() 116 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() 117 MDNode *ArgTypeNode = cast<MDNode>(KernelMDNode->getOperand(3)); in ArgTypeFromMD() 122 GetArgMD(MDNode *KernelMDNode, unsigned OpIdx) { in GetArgMD() 125 MDNode *Node = cast<MDNode>(KernelMDNode->getOperand(i + 1)); in GetArgMD() 214 bool replaceImageAndSamplerUses(Function *F, MDNode *KernelMDNode) { in replaceImageAndSamplerUses() 253 std::tuple<Function *, MDNode *> [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | MemoryProfileInfo.h | 41 LLVM_ABI MDNode *buildCallstackMetadata(ArrayRef<uint64_t> CallStack, 46 LLVM_ABI MDNode * 51 LLVM_ABI MDNode *getMIBStackNode(const MDNode *MIB); 54 LLVM_ABI AllocationType getMIBAllocType(const MDNode *MIB); 149 LLVM_ABI void addCallStack(MDNode *MIB); 243 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::CallStackIterator( 244 const MDNode *N, bool End); 247 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::operator*(); 249 LLVM_ABI uint64_t CallStack<MDNode, MDNode::op_iterator>::back() const;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 205 SmallVector<MDNode *, 16> POT; // Post-order traversal. 214 Metadata &getFwdReference(MDNode &Op); 218 SmallVector<MDNode *, 16> DistinctWorklist; 222 SmallVector<MDNode *, 16> POTStorage; 245 Metadata *map(const MDNode &N); 267 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 287 MDNode *mapDistinctNode(const MDNode &N); 306 bool createPOT(UniquedGraph &G, const MDNode &FirstN); 315 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 316 MDNode::op_iterator E, bool &HasChanged); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILTranslateMetadata.cpp | 95 Metadata *SRVMD = SRVs.empty() ? nullptr : MDNode::get(Context, SRVs); in emitResourceMetadata() 96 Metadata *UAVMD = UAVs.empty() ? nullptr : MDNode::get(Context, UAVs); in emitResourceMetadata() 97 Metadata *CBufMD = CBufs.empty() ? nullptr : MDNode::get(Context, CBufs); in emitResourceMetadata() 98 Metadata *SmpMD = Smps.empty() ? nullptr : MDNode::get(Context, Smps); in emitResourceMetadata() 105 MDNode::get(M.getContext(), {SRVMD, UAVMD, CBufMD, SmpMD})); in emitResourceMetadata() 197 MDVals.emplace_back(MDNode::get(Ctx, NumThreadVals)); in getEntryPropAsMetadata() 202 return MDNode::get(Ctx, MDVals); in getEntryPropAsMetadata() 206 MDNode *Resources, MDTuple *Properties, in constructEntryMetadata() 221 return MDNode::get(Ctx, MDVals); in constructEntryMetadata() 225 MDNode *MDResources, in emitEntryMD() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineInstrBuilder.h | 40 class MDNode; variable 238 const MachineInstrBuilder &addMetadata(const MDNode *MD) const { in addMetadata() 320 const MachineInstrBuilder &setPCSections(MDNode *MD) const { in setPCSections() 326 const MachineInstrBuilder &setMMRAMetadata(MDNode *MMRA) const { in setMMRAMetadata() 351 MIMetadata(DebugLoc DL, MDNode *PCSections = nullptr, MDNode *MMRA = nullptr) 353 MIMetadata(const DILocation *DI, MDNode *PCSections = nullptr, 354 MDNode *MMRA = nullptr) 363 MDNode *getPCSections() const { return PCSections; } in getPCSections() 364 MDNode *getMMRAMetadata() const { return MMRA; } in getMMRAMetadata() 368 MDNode *PCSections = nullptr; [all …]
|