Home
last modified time | relevance | path

Searched refs:MDNode (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DMDBuilder.h32 class MDNode; variable
84 MDNode *
114 MDNode *mergeCallbackEncodings(MDNode *ExistingCallbacks, MDNode *NewCB);
159 MDNode *createAnonymousAliasScope(MDNode *Domain,
177 MDNode *createAliasScope(StringRef Name, MDNode *Domain);
181 MDNode *createTBAANode(StringRef Name, MDNode *Parent,
187 MDNode *Type;
198 MDNode *
209 MDNode *createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType,
222 MDNode *createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType,
[all …]
H A DMetadata.h762 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes()
1202 MDNode(const MDNode &) = delete;
1402 static MDNode *mergeDirectCallProfMetadata(MDNode *A, MDNode *B,
1444 static MDNode *concatenate(MDNode *A, MDNode *B);
1445 static MDNode *intersect(MDNode *A, MDNode *B);
1446 static MDNode *getMostGenericTBAA(MDNode *A, MDNode *B);
1447 static MDNode *getMostGenericFPMath(MDNode *A, MDNode *B);
1448 static MDNode *getMostGenericRange(MDNode *A, MDNode *B);
1449 static MDNode *getMostGenericAliasScope(MDNode *A, MDNode *B);
1450 static MDNode *getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B);
[all …]
H A DDebugLoc.h48 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 DVerifier.h33 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 DProfDataUtils.h28 bool isBranchWeightMD(const MDNode *ProfileData);
49 MDNode *getBranchWeightMDNode(const Instruction &I);
56 MDNode *getValidBranchWeightMDNode(const Instruction &I);
64 bool extractBranchWeights(const MDNode *ProfileData,
69 void extractFromBranchWeightMD(const MDNode *ProfileData,
97 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalWeights);
H A DIRBuilder.h125 MDNode *DefaultFPMathTag;
394 MDNode *FPMathTag;
591 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr,
667 MDNode *TBAATag = nullptr, MDNode *TBAAStructTag = nullptr,
668 MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr);
684 MDNode *TBAATag = nullptr, MDNode *TBAAStructTag = nullptr,
685 MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr) {
702 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr,
737 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr,
1074 InstTy *addBranchMetadata(InstTy *I, MDNode *Weights, MDNode *Unpredictable) { in addBranchMetadata()
[all …]
H A DAutoUpgrade.h26 class MDNode; variable
75 MDNode *UpgradeTBAANode(MDNode &TBAANode);
97 MDNode *upgradeInstructionLoopAttachment(MDNode &N);
H A DMetadata.def37 // Handler for specialized and uniquable leaf nodes under MDNode. Defers to
50 // Handler for leaf nodes under MDNode.
55 // Handler for leaf nodes under MDNode.
60 // Handler for non-leaf nodes under MDNode.
65 // Handler for specialized leaf nodes under MDNode.
70 // Handler for specialized non-leaf nodes under MDNode.
81 HANDLE_MDNODE_BRANCH(MDNode)
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp124 MDNode *MDBuilder::mergeCallbackEncodings(MDNode *ExistingCallbacks, in mergeCallbackEncodings()
188 MDNode *Root = MDNode::getDistinct(Context, Args); in createAnonymousAARoot()
206 MDNode *MDBuilder::createTBAANode(StringRef Name, MDNode *Parent, in createTBAANode()
220 MDNode *MDBuilder::createAliasScope(StringRef Name, MDNode *Domain) { in createAliasScope()
262 MDNode *MDBuilder::createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType, in createTBAAStructTagNode()
273 MDNode *MDBuilder::createTBAATypeNode(MDNode *Parent, uint64_t Size, in createTBAATypeNode()
289 MDNode *MDBuilder::createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType, in createTBAAAccessTag()
303 MDNode *MDBuilder::createMutableTBAAAccessTag(MDNode *Tag) { in createMutableTBAAAccessTag()
304 MDNode *BaseType = cast<MDNode>(Tag->getOperand(0)); in createMutableTBAAAccessTag()
305 MDNode *AccessType = cast<MDNode>(Tag->getOperand(1)); in createMutableTBAAAccessTag()
[all …]
H A DMetadata.cpp868 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
984 MDNode *MDNode::uniquify() { in uniquify()
1034 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
1099 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
1113 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
1126 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
1158 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
1172 MDNode *MDNode::mergeDirectCallProfMetadata(MDNode *A, MDNode *B, in mergeDirectCallProfMetadata()
1208 MDNode *MDNode::getMergedProfMetadata(MDNode *A, MDNode *B, in getMergedProfMetadata()
1270 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
[all …]
H A DDebugLoc.cpp18 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 DProfDataUtils.cpp51 bool isTargetMD(const MDNode *ProfData, const char *Name, unsigned MinOps) { in isTargetMD()
76 bool isBranchWeightMD(const MDNode *ProfileData) { in isBranchWeightMD()
89 MDNode *getBranchWeightMDNode(const Instruction &I) { in getBranchWeightMDNode()
96 MDNode *getValidBranchWeightMDNode(const Instruction &I) { in getValidBranchWeightMDNode()
103 void extractFromBranchWeightMD(const MDNode *ProfileData, in extractFromBranchWeightMD()
121 bool extractBranchWeights(const MDNode *ProfileData, in extractBranchWeights()
155 bool extractProfTotalWeight(const MDNode *ProfileData, uint64_t &TotalVal) { in extractProfTotalWeight()
189 MDNode *BranchWeights = MDB.createBranchWeights(Weights); in setBranchWeights()
H A DAbstractCallSite.cpp40 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-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp326 MDNode *P = dyn_cast_or_null<MDNode>(Operands[1]); in getField()
356 MDNode *P = dyn_cast_or_null<MDNode>(Operands[TheIdx]); in getField()
473 static bool matchAccessTags(const MDNode *A, const MDNode *B,
476 MDNode *MDNode::getMostGenericTBAA(MDNode *A, MDNode *B) { in getMostGenericTBAA()
482 static const MDNode *getLeastCommonType(const MDNode *A, const MDNode *B) { in getLeastCommonType()
538 static const MDNode *createAccessTag(const MDNode *AccessType) { in createAccessTag()
653 static bool matchAccessTags(const MDNode *A, const MDNode *B, in matchAccessTags()
702 bool TypeBasedAAResult::Aliases(const MDNode *A, const MDNode *B) const { in Aliases()
738 MDNode *AAMDNodes::shiftTBAA(MDNode *MD, size_t Offset) { in shiftTBAA()
757 MDNode *AAMDNodes::shiftTBAAStruct(MDNode *MD, size_t Offset) { in shiftTBAAStruct()
[all …]
H A DScopedNoAliasAA.cpp62 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; 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()
117 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, in mayAliasInScopes()
123 SmallPtrSet<const MDNode *, 16> Domains; in mayAliasInScopes()
125 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in mayAliasInScopes()
126 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in mayAliasInScopes()
131 for (const MDNode *Domain : Domains) { in mayAliasInScopes()
132 SmallPtrSet<const MDNode *, 16> ScopeNodes; in mayAliasInScopes()
[all …]
H A DMemoryProfileInfo.cpp73 return MDNode::get(Ctx, StackVals); in buildCallstackMetadata()
76 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode()
79 return cast<MDNode>(MIB->getOperand(0)); in getMIBStackNode()
160 void CallStackTrie::addCallStack(MDNode *MIB) { in addCallStack()
161 MDNode *StackMD = getMIBStackNode(MIB); in addCallStack()
173 static MDNode *createMIBNode(LLVMContext &Ctx, in createMIBNode()
180 return MDNode::get(Ctx, MIBPayload); in createMIBNode()
256 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::CallStackIterator( in CallStackIterator()
257 const MDNode *N, bool End) in CallStackIterator()
266 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::operator*() { in operator *()
[all …]
H A DLoopInfo.cpp502 MDNode *LoopID = nullptr; in getLoopID()
556 MDNode *MustProgressMD = in setLoopMustProgress()
559 MDNode *NewLoopID = in setLoopMustProgress()
572 SmallPtrSet<MDNode *, 4> in isAnnotatedParallel()
576 MDNode *AccGroup = cast<MDNode>(MD.get()); in isAnnotatedParallel()
601 MDNode *AccGroup = cast<MDNode>(AccessListItem.get()); in isAnnotatedParallel()
618 MDNode *LoopIdMD = in isAnnotatedParallel()
1018 MDNode *llvm::findOptionMDForLoopID(MDNode *LoopID, StringRef Name) { in findOptionMDForLoopID()
1029 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in findOptionMDForLoopID()
1143 if (MDNode *MD = dyn_cast<MDNode>(Op)) { in makePostTransformationMetadata()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.h48 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo()
100 llvm::MDNode *BaseType;
104 llvm::MDNode *AccessType;
138 llvm::MDNode *Root;
139 llvm::MDNode *Char;
143 llvm::MDNode *getRoot();
147 llvm::MDNode *getChar();
158 llvm::MDNode *createScalarTypeNode(StringRef Name, llvm::MDNode *Parent,
176 llvm::MDNode *getTypeInfo(QualType QTy);
223 DenseMapInfo<MDNode *>::getEmptyKey(),
[all …]
H A DCGLoopInfo.cpp24 MDNode *
74 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata()
80 MDNode *
136 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPartialUnrollMetadata()
142 MDNode *
204 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createUnrollAndJamMetadata()
210 MDNode *
322 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopVectorizeMetadata()
328 MDNode *
373 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopDistributeMetadata()
[all …]
H A DCGLoopInfo.h26 class MDNode; variable
107 llvm::MDNode *getAccessGroup() const { return AccGroup; } in getAccessGroup()
121 llvm::MDNode *AccGroup = nullptr;
131 llvm::MDNode *UnrollAndJamInnerFollowup = nullptr;
134 llvm::MDNode *
154 llvm::MDNode *
158 llvm::MDNode *
162 llvm::MDNode *
166 llvm::MDNode *
170 llvm::MDNode *
[all …]
H A DCodeGenTBAA.cpp43 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot()
68 llvm::MDNode *CodeGenTBAA::getChar() { in getChar()
228 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo()
248 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo()
254 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo()
322 llvm::MDNode *
326 if (llvm::MDNode *N = StructMetadataCache[Ty]) in getTBAAStructInfo()
356 llvm::MDNode *TypeNode = isValidBaseType(BaseQTy) in getBaseTypeInfoHelper()
403 llvm::MDNode *Parent = getChar(); in getBaseTypeInfoHelper()
432 llvm::MDNode *TypeNode = getBaseTypeInfoHelper(Ty); in getBaseTypeInfo()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600OpenCLImageTypeLoweringPass.cpp77 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode()
92 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode()
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()
253 std::tuple<Function *, MDNode *>
254 addImplicitArgs(Function *F, MDNode *KernelMDNode) { in addImplicitArgs()
312 MDNode *NewMDNode = MDNode::get(*Context, KernelMDArgs); in addImplicitArgs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryProfileInfo.h32 MDNode *buildCallstackMetadata(ArrayRef<uint64_t> CallStack, LLVMContext &Ctx);
35 MDNode *getMIBStackNode(const MDNode *MIB);
38 AllocationType getMIBAllocType(const MDNode *MIB);
97 void addCallStack(MDNode *MIB);
184 CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::CallStackIterator(
185 const MDNode *N, bool End);
187 uint64_t CallStack<MDNode, MDNode::op_iterator>::CallStackIterator::operator*();
188 template <> uint64_t CallStack<MDNode, MDNode::op_iterator>::back() const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp243 Metadata *map(const MDNode &N);
285 MDNode *mapDistinctNode(const MDNode &N);
313 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I,
624 const MDNode &N = *cast<MDNode>(Op); in tryToMapOperand()
630 MDNode *MDNodeMapper::mapDistinctNode(const MDNode &N) { in mapDistinctNode()
749 MDNode *MDNodeMapper::visitOperands(UniquedGraph &G, MDNode::op_iterator &I, in visitOperands()
760 MDNode &OpN = *cast<MDNode>(Op); in visitOperands()
773 for (MDNode *N : POT) { in propagateChanges()
989 MDNode *Old = MI.second; in remapInstruction()
990 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old)); in remapInstruction()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCloning.h311 ArrayRef<BasicBlock *> BBs, SmallVectorImpl<MDNode *> &NoAliasDeclScopes);
318 SmallVectorImpl<MDNode *> &NoAliasDeclScopes);
326 ArrayRef<MDNode *> NoAliasDeclScopes,
327 DenseMap<MDNode *, MDNode *> &ClonedScopes,
334 llvm::Instruction *I, const DenseMap<MDNode *, MDNode *> &ClonedScopes,
340 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes,
347 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes,

12345678910>>...13