| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 32 class MDNode; variable 55 MDNode *createFPMath(float Accuracy); 62 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 65 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights); 68 MDNode *createUnpredictable(); 74 MDNode *createFunctionEntryCount(uint64_t Count, bool Synthetic, 78 MDNode *createFunctionSectionPrefix(StringRef Prefix); 81 MDNode *createPseudoProbeDesc(uint64_t GUID, uint64_t Hash, Function *F); 84 MDNode * 92 MDNode *createRange(const APInt &Lo, const APInt &Hi); [all …]
|
| H A D | Metadata.h | 653 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 668 MDNode *TBAA = nullptr; 671 MDNode *TBAAStruct = nullptr; 674 MDNode *Scope = nullptr; 677 MDNode *NoAlias = nullptr; 680 static MDNode *shiftTBAA(MDNode *M, size_t off); 683 static MDNode *shiftTBAAStruct(MDNode *M, size_t off); 687 static MDNode *extendToTBAA(MDNode *TBAA, ssize_t len); 744 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 749 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), [all …]
|
| 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 | IRBuilder.h | 97 SmallVector<std::pair<unsigned, MDNode *>, 2> MetadataToCopy; 101 void AddOrRemoveMetadataToCopy(unsigned Kind, MDNode *MD) { in AddOrRemoveMetadataToCopy() 103 erase_if(MetadataToCopy, [Kind](const std::pair<unsigned, MDNode *> &KV) { in AddOrRemoveMetadataToCopy() 125 MDNode *DefaultFPMathTag; 136 const IRBuilderDefaultInserter &Inserter, MDNode *FPMathTag, in IRBuilderBase() 283 MDNode *getDefaultFPMathTag() const { return DefaultFPMathTag; } in getDefaultFPMathTag() 294 void setDefaultFPMathTag(MDNode *FPMathTag) { DefaultFPMathTag = FPMathTag; } in setDefaultFPMathTag() 386 MDNode *FPMathTag; 582 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, 583 MDNode *NoAliasTag = nullptr) { [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 extractBranchWeights(const MDNode *ProfileData, 92 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalWeights);
|
| /openbsd-src/gnu/llvm/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::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() 52 return MDNode::get(Context, Vals); in createBranchWeights() 55 MDNode *MDBuilder::createUnpredictable() { in createUnpredictable() 56 return MDNode::get(Context, std::nullopt); in createUnpredictable() 59 MDNode *MDBuilder::createFunctionEntryCount( in createFunctionEntryCount() 75 return MDNode::get(Context, Ops); in createFunctionEntryCount() 78 MDNode *MDBuilder::createFunctionSectionPrefix(StringRef Prefix) { in createFunctionSectionPrefix() [all …]
|
| H A D | Metadata.cpp | 84 return MDNode::get(Context, std::nullopt); in canonicalizeMetadataForValue() 87 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 93 return MDNode::get(Context, std::nullopt); in canonicalizeMetadataForValue() 268 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in SalvageDebugInfo() 348 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses() 358 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate() 364 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists() 370 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 524 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new() 534 void MDNode::operator delete(void *N) { in operator delete() [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()
|
| H A D | ProfDataUtils.cpp | 48 bool extractWeights(const MDNode *ProfileData, in extractWeights() 70 bool isTargetMD(const MDNode *ProfData, const char *Name, unsigned MinOps) { in isTargetMD() 95 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD() 108 MDNode *getBranchWeightMDNode(const Instruction &I) { in getBranchWeightMDNode() 115 MDNode *getValidBranchWeightMDNode(const Instruction &I) { in getValidBranchWeightMDNode() 122 bool extractBranchWeights(const MDNode *ProfileData, in extractBranchWeights() 155 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalVal) { in extractProfTotalWeight()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | TypeBasedAliasAnalysis.cpp | 136 static bool isNewFormatTypeNode(const MDNode *N) { in isNewFormatTypeNode() 140 if (!isa<MDNode>(N->getOperand(0))) in isNewFormatTypeNode() 193 using TBAANode = TBAANodeImpl<const MDNode>; 194 using MutableTBAANode = TBAANodeImpl<MDNode>; 223 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 227 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 257 using TBAAStructTagNode = TBAAStructTagNodeImpl<const MDNode>; 258 using MutableTBAAStructTagNode = TBAAStructTagNodeImpl<MDNode>; 266 const MDNode *Node = nullptr; 270 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() 110 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 111 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 113 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 118 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, in mayAliasInScopes() 119 const MDNode *NoAlias) const { in mayAliasInScopes() 124 SmallPtrSet<const MDNode *, 16> Domains; in mayAliasInScopes() 126 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in mayAliasInScopes() 127 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in mayAliasInScopes() [all …]
|
| H A D | MemoryProfileInfo.cpp | 44 MDNode *llvm::memprof::buildCallstackMetadata(ArrayRef<uint64_t> CallStack, in buildCallstackMetadata() 52 return MDNode::get(Ctx, StackVals); in buildCallstackMetadata() 55 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode() 58 return cast<MDNode>(MIB->getOperand(0)); in getMIBStackNode() 61 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType() 133 void CallStackTrie::addCallStack(MDNode *MIB) { in addCallStack() 134 MDNode *StackMD = getMIBStackNode(MIB); in addCallStack() 146 static MDNode *createMIBNode(LLVMContext &Ctx, in createMIBNode() 153 return MDNode::get(Ctx, MIBPayload); in createMIBNode() 224 CI->setMetadata(LLVMContext::MD_memprof, MDNode::get(Ctx, MIBNodes)); in buildAndAttachMIBMetadata() [all …]
|
| H A D | LoopInfo.cpp | 501 MDNode *Loop::getLoopID() const { in getLoopID() 502 MDNode *LoopID = nullptr; in getLoopID() 509 MDNode *MD = TI->getMetadata(LLVMContext::MD_loop); in getLoopID() 525 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID() 540 MDNode *DisableUnrollMD = in setLoopAlreadyUnrolled() 541 MDNode::get(Context, MDString::get(Context, "llvm.loop.unroll.disable")); in setLoopAlreadyUnrolled() 542 MDNode *LoopID = getLoopID(); in setLoopAlreadyUnrolled() 543 MDNode *NewLoopID = makePostTransformationMetadata( in setLoopAlreadyUnrolled() 551 MDNode *MustProgress = findOptionMDForLoop(this, "llvm.loop.mustprogress"); in setLoopMustProgress() 556 MDNode *MustProgressMD = in setLoopMustProgress() [all …]
|
| /openbsd-src/gnu/llvm/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 95 llvm::MDNode *getLoopID() const { return TempLoopID.get(); } in getLoopID() 104 llvm::MDNode *getAccessGroup() const { return AccGroup; } in getAccessGroup() 118 llvm::MDNode *AccGroup = nullptr; 128 llvm::MDNode *UnrollAndJamInnerFollowup = nullptr; 131 llvm::MDNode * 151 llvm::MDNode * 155 llvm::MDNode * 159 llvm::MDNode * 163 llvm::MDNode * [all …]
|
| H A D | CodeGenTBAA.cpp | 43 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 58 llvm::MDNode *CodeGenTBAA::createScalarTypeNode(StringRef Name, in createScalarTypeNode() 59 llvm::MDNode *Parent, in createScalarTypeNode() 68 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 115 llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) { in getTypeInfoHelper() 225 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo() 245 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo() 251 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() 313 llvm::MDNode *TBAAType = MayAlias ? getChar() : getTypeInfo(QTy); in CollectFields() 314 llvm::MDNode *TBAATag = getAccessTagInfo(TBAAAccessInfo(TBAAType, Size)); in CollectFields() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | R600OpenCLImageTypeLoweringPass.cpp | 77 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode() 92 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode() 109 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() 110 MDNode *ArgAQNode = cast<MDNode>(KernelMDNode->getOperand(2)); in AccessQualFromMD() 115 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() 116 MDNode *ArgTypeNode = cast<MDNode>(KernelMDNode->getOperand(3)); in ArgTypeFromMD() 121 GetArgMD(MDNode *KernelMDNode, unsigned OpIdx) { in GetArgMD() 124 MDNode *Node = cast<MDNode>(KernelMDNode->getOperand(i + 1)); in GetArgMD() 213 bool replaceImageAndSamplerUses(Function *F, MDNode *KernelMDNode) { in replaceImageAndSamplerUses() 253 std::tuple<Function *, MDNode *> [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 201 SmallVector<MDNode *, 16> POT; // Post-order traversal. 210 Metadata &getFwdReference(MDNode &Op); 214 SmallVector<MDNode *, 16> DistinctWorklist; 218 SmallVector<MDNode *, 16> POTStorage; 241 Metadata *map(const MDNode &N); 263 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 283 MDNode *mapDistinctNode(const MDNode &N); 302 bool createPOT(UniquedGraph &G, const MDNode &FirstN); 311 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 312 MDNode::op_iterator E, bool &HasChanged); [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceMetadata.cpp | 24 static bool shouldKeepDebugIntrinsicMetadata(Instruction &I, MDNode &MD) { in shouldKeepDebugIntrinsicMetadata() 54 SmallVector<MDNode *, 16> KeptOperands; in reduceNamedMetadataOperands() 64 for (MDNode *KeptOperand : KeptOperands) in reduceNamedMetadataOperands() 89 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 91 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule() 98 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 101 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule() 108 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 110 for (std::pair<unsigned, MDNode *> &MD : MDs) { in extractMetadataFromModule()
|
| H A D | ReduceDIMetadata.cpp | 29 using MDNodeList = SmallVector<MDNode *>; 32 SetVector<std::tuple<MDNode *, size_t, MDNode *>> Tuples; in identifyUninterestingMDNodes() 33 std::vector<MDNode *> ToLook; in identifyUninterestingMDNodes() 34 SetVector<MDNode *> Visited; in identifyUninterestingMDNodes() 42 MDNode *MD = ToLook.back(); in identifyUninterestingMDNodes() 59 if (MDNode *OMD = dyn_cast_or_null<MDNode>(Op)) in identifyUninterestingMDNodes()
|
| /openbsd-src/gnu/llvm/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); 91 void addCallStack(MDNode *MIB); 169 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::CallStackIterator( 170 const MDNode *N, bool End); 172 uint64_t CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::operator*();
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
| H A D | Cloning.h | 315 ArrayRef<BasicBlock *> BBs, SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 322 SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 330 ArrayRef<MDNode *> NoAliasDeclScopes, 331 DenseMap<MDNode *, MDNode *> &ClonedScopes, 338 llvm::Instruction *I, const DenseMap<MDNode *, MDNode *> &ClonedScopes, 344 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes, 351 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes,
|