/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | MDBuilder.h | 32 class MDNode; variable 55 MDNode *createFPMath(float Accuracy); 65 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight, 70 MDNode *createLikelyBranchWeights(); 74 MDNode *createUnlikelyBranchWeights(); 79 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights, 83 MDNode *createUnpredictable(); 89 MDNode *createFunctionEntryCount(uint64_t Count, bool Synthetic, 93 MDNode *createFunctionSectionPrefix(StringRef Prefix); 96 MDNode *createPseudoProbeDesc(uint64_t GUID, uint64_t Hash, StringRef FName); [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 static MDNode *shiftTBAA(MDNode *M, size_t off); 792 static MDNode *shiftTBAAStruct(MDNode *M, size_t off); 796 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 | 28 bool isBranchWeightMD(const MDNode *ProfileData); 49 MDNode *getBranchWeightMDNode(const Instruction &I); 56 MDNode *getValidBranchWeightMDNode(const Instruction &I); 64 bool hasBranchWeightOrigin(const MDNode *ProfileData); 67 unsigned getBranchWeightOffset(const MDNode *ProfileData); 69 unsigned getNumBranchWeights(const MDNode &ProfileData); 77 bool extractBranchWeights(const MDNode *ProfileData, 82 void extractFromBranchWeightMD32(const MDNode *ProfileData, 87 void extractFromBranchWeightMD64(const MDNode *ProfileData, 115 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalWeights);
|
H A D | DebugLoc.h | 48 explicit DebugLoc(const MDNode *N); 77 DenseMap<const MDNode *, MDNode *> &Cache); 81 MDNode *getScope() const; 87 MDNode *getInlinedAtScope() const; 94 DenseMap<const MDNode *, MDNode *> &Cache); 106 MDNode *getAsMDNode() const { return Loc; } in getAsMDNode()
|
H A D | Verifier.h | 33 class MDNode; variable 54 DenseMap<const MDNode *, TBAABaseNodeSummary> TBAABaseNodes; 58 DenseMap<const MDNode *, bool> TBAAScalarNodes; 62 MDNode *getFieldNodeFromTBAABaseNode(Instruction &I, const MDNode *BaseNode, 65 const MDNode *BaseNode, 68 const MDNode *BaseNode, 71 bool isValidScalarTBAANode(const MDNode *MD); 79 bool visitTBAAMetadata(Instruction &I, const MDNode *MD);
|
H A D | DebugProgramInstruction.h | 63 class MDNode; variable 92 explicit DbgRecordParamRef(const MDNode *Param); 110 MDNode *getAsMDNode() const { return Ref; } in getAsMDNode() 229 DbgLabelRecord(MDNode *Label, MDNode *DL); 238 static DbgLabelRecord *createUnresolvedDbgLabelRecord(MDNode *Label, 239 MDNode *DL); 249 MDNode *getRawLabel() const { return Label.getAsMDNode(); }; in getRawLabel() 308 DbgVariableRecord(LocationType Type, Metadata *Val, MDNode *Variable, 309 MDNode *Expression, MDNode *AssignID, Metadata *Address, 310 MDNode *AddressExpression, MDNode *DI); [all …]
|
H A D | IRBuilder.h | 94 SmallVector<std::pair<unsigned, MDNode *>, 2> MetadataToCopy; 98 void AddOrRemoveMetadataToCopy(unsigned Kind, MDNode *MD) { in AddOrRemoveMetadataToCopy() 100 erase_if(MetadataToCopy, [Kind](const std::pair<unsigned, MDNode *> &KV) { in AddOrRemoveMetadataToCopy() 122 MDNode *DefaultFPMathTag; 133 const IRBuilderDefaultInserter &Inserter, MDNode *FPMathTag, in IRBuilderBase() 224 llvm::MDNode::get(getContext(), std::nullopt)); in SetNoSanitizeMetadata() 294 MDNode *getDefaultFPMathTag() const { return DefaultFPMathTag; } in getDefaultFPMathTag() 305 void setDefaultFPMathTag(MDNode *FPMathTag) { DefaultFPMathTag = FPMathTag; } in setDefaultFPMathTag() 397 MDNode *FPMathTag; 594 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 28 MDNode *MDBuilder::createFPMath(float Accuracy) { in createFPMath() 34 return MDNode::get(Context, Op); in createFPMath() 37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() 42 MDNode *MDBuilder::createLikelyBranchWeights() { in createLikelyBranchWeights() 47 MDNode *MDBuilder::createUnlikelyBranchWeights() { in createUnlikelyBranchWeights() 52 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights, in createBranchWeights() 66 return MDNode::get(Context, Vals); in createBranchWeights() 69 MDNode *MDBuilder::createUnpredictable() { in createUnpredictable() 70 return MDNode::get(Context, std::nullopt); in createUnpredictable() 73 MDNode *MDBuilder::createFunctionEntryCount( in createFunctionEntryCount() [all …]
|
H A D | Metadata.cpp | 85 return MDNode::get(Context, std::nullopt); in canonicalizeMetadataForValue() 88 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 94 return MDNode::get(Context, std::nullopt); in canonicalizeMetadataForValue() 351 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in SalvageDebugInfo() 438 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in resolveAllUses() 451 if (auto *N = dyn_cast<MDNode>(&MD)) { in getOrCreate() 462 if (auto *N = dyn_cast<MDNode>(&MD)) { in getIfExists() 473 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 627 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new() 637 void MDNode::operator delete(void *N) { in operator delete() [all …]
|
H A D | ProfDataUtils.cpp | 52 bool isTargetMD(const MDNode *ProfData, const char *Name, unsigned MinOps) { in isTargetMD() 71 static void extractFromBranchWeightMD(const MDNode *ProfileData, in extractFromBranchWeightMD() 98 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() 102 bool isValueProfileMD(const MDNode *ProfileData) { in isValueProfileMD() 130 bool hasBranchWeightOrigin(const MDNode *ProfileData) { in hasBranchWeightOrigin() 141 unsigned getBranchWeightOffset(const MDNode *ProfileData) { in getBranchWeightOffset() 145 unsigned getNumBranchWeights(const MDNode &ProfileData) { in getNumBranchWeights() 149 MDNode *getBranchWeightMDNode(const Instruction &I) { in getBranchWeightMDNode() 156 MDNode *getValidBranchWeightMDNode(const Instruction &I) { in getValidBranchWeightMDNode() 163 void extractFromBranchWeightMD32(const MDNode *ProfileData, in extractFromBranchWeightMD32() [all …]
|
H A D | DebugLoc.cpp | 18 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() 34 MDNode *DebugLoc::getScope() const { in getScope() 44 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope() 50 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc() 72 DenseMap<const MDNode *, MDNode *> &Cache) { in replaceInlinedAtSubprogram() argument 112 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, 110 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 112 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 117 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, 118 const MDNode *NoAlias) const { in mayAliasInScopes() 123 SmallPtrSet<const MDNode *, 1 in mayAliasInScopes() [all...] |
H A D | MemoryProfileInfo.cpp | 69 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() 101 uint64_t llvm::memprof::getMIBTotalSize(const MDNode *MIB) { in getMIBTotalSize() 173 void CallStackTrie::addCallStack(MDNode *MIB) { in addCallStack() 174 MDNode *StackMD = getMIBStackNode(MIB); in addCallStack() 186 static MDNode *createMIBNode(LLVMContext &Ctx, in createMIBNode() 196 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 | 42 TBAAAccessInfo(TBAAAccessKind Kind, llvm::MDNode *BaseType, in TBAAAccessInfo() 43 llvm::MDNode *AccessType, uint64_t Offset, uint64_t Size) in TBAAAccessInfo() 48 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo() 54 explicit TBAAAccessInfo(llvm::MDNode *AccessType, uint64_t Size) in TBAAAccessInfo() 100 llvm::MDNode *BaseType; 104 llvm::MDNode *AccessType; 128 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; 130 llvm::DenseMap<const Type *, llvm::MDNode *> BaseTypeMetadataCache; 132 llvm::DenseMap<TBAAAccessInfo, llvm::MDNode *> AccessTagMetadataCache; 136 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache; [all …]
|
H A D | CGLoopInfo.cpp | 24 MDNode * 31 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata() 36 MDNode *LoopInfo::createPipeliningMetadata(const LoopAttributes &Attrs, in createPipeliningMetadata() 52 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata() 69 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata() 74 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata() 80 MDNode * 108 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata() 111 MDNode *Followup = createPipeliningMetadata(Attrs, FollowupLoopProperties, in createPartialUnrollMetadata() 123 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata() [all …]
|
H A D | CGLoopInfo.h | 26 class MDNode; variable 98 llvm::MDNode *getLoopID() const { return TempLoopID.get(); } in getLoopID() 107 llvm::MDNode *getAccessGroup() const { return AccGroup; } in getAccessGroup() 125 llvm::MDNode *AccGroup = nullptr; 135 llvm::MDNode *UnrollAndJamInnerFollowup = nullptr; 138 llvm::MDNode * 158 llvm::MDNode * 162 llvm::MDNode * 166 llvm::MDNode * 170 llvm::MDNode * [all …]
|
H A D | CodeGenTBAA.cpp | 48 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 63 llvm::MDNode *CodeGenTBAA::createScalarTypeNode(StringRef Name, in createScalarTypeNode() 64 llvm::MDNode *Parent, in createScalarTypeNode() 73 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 118 llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) { in getTypeInfoHelper() 214 llvm::MDNode *AnyPtr = createScalarTypeNode("any pointer", getChar(), Size); in getTypeInfoHelper() 227 llvm::MDNode *ScalarMD = getTypeInfoHelper(Ty); in getTypeInfoHelper() 278 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo() 299 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo() 305 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryProfileInfo.h | 32 MDNode *buildCallstackMetadata(ArrayRef<uint64_t> CallStack, LLVMContext &Ctx); 35 MDNode *getMIBStackNode(const MDNode *MIB); 38 AllocationType getMIBAllocType(const MDNode *MIB); 42 uint64_t getMIBTotalSize(const MDNode *MIB); 103 void addCallStack(MDNode *MIB); 190 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::CallStackIterator( 191 const MDNode *N, bool End); 193 uint64_t CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::operator*(); 194 template <> uint64_t CallStack<MDNode, MDNode::op_iterator>::back() const;
|
/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/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 203 SmallVector<MDNode *, 16> POT; // Post-order traversal. 212 Metadata &getFwdReference(MDNode &Op); 216 SmallVector<MDNode *, 16> DistinctWorklist; 220 SmallVector<MDNode *, 16> POTStorage; 243 Metadata *map(const MDNode &N); 265 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 285 MDNode *mapDistinctNode(const MDNode &N); 304 bool createPOT(UniquedGraph &G, const MDNode &FirstN); 313 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 314 MDNode::op_iterator E, bool &HasChanged); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | Cloning.h | 312 ArrayRef<BasicBlock *> BBs, SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 319 SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 327 ArrayRef<MDNode *> NoAliasDeclScopes, 328 DenseMap<MDNode *, MDNode *> &ClonedScopes, 335 llvm::Instruction *I, const DenseMap<MDNode *, MDNode *> &ClonedScopes, 341 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes, 348 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineInstrBuilder.h | 39 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 …]
|