| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 31 class MDNode; variable 109 MDNode *mergeCallbackEncodings(MDNode *ExistingCallbacks, MDNode *NewCB); 144 MDNode *createAnonymousAliasScope(MDNode *Domain, 162 MDNode *createAliasScope(StringRef Name, MDNode *Domain); 166 MDNode *createTBAANode(StringRef Name, MDNode *Parent, 172 MDNode *Type; 183 MDNode * 189 MDNode *createTBAAScalarTypeNode(StringRef Name, MDNode *Parent, 194 MDNode *createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType, 207 MDNode *createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType, [all …]
|
| H A D | Metadata.h | 654 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 681 static MDNode *shiftTBAA(MDNode *M, size_t off); 684 static MDNode *shiftTBAAStruct(MDNode *M, size_t off); 1087 MDNode(const MDNode &) = delete; 1316 static MDNode *concatenate(MDNode *A, MDNode *B); 1317 static MDNode *intersect(MDNode *A, MDNode *B); 1318 static MDNode *getMostGenericTBAA(MDNode *A, MDNode *B); 1319 static MDNode *getMostGenericFPMath(MDNode *A, MDNode *B); 1320 static MDNode *getMostGenericRange(MDNode *A, MDNode *B); 1321 static MDNode *getMostGenericAliasScope(MDNode *A, MDNode *B); [all …]
|
| 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 | DebugLoc.h | 48 explicit DebugLoc(const MDNode *N); 77 DenseMap<const MDNode *, MDNode *> &Cache); 81 MDNode *getScope() const; 87 MDNode *getInlinedAtScope() const; 99 MDNode *getAsMDNode() const { return Loc; } in getAsMDNode()
|
| H A D | IRBuilder.h | 124 MDNode *DefaultFPMathTag; 375 MDNode *FPMathTag; 570 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, 630 MDNode *TBAATag = nullptr, MDNode *TBAAStructTag = nullptr, 631 MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr); 647 MDNode *TBAATag = nullptr, MDNode *TBAAStructTag = nullptr, 648 MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr); 661 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 691 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 950 InstTy *addBranchMetadata(InstTy *I, MDNode *Weights, MDNode *Unpredictable) { in addBranchMetadata() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 124 MDNode *MDBuilder::mergeCallbackEncodings(MDNode *ExistingCallbacks, in mergeCallbackEncodings() 161 MDNode *MDBuilder::createAnonymousAARoot(StringRef Name, MDNode *Extra) { in createAnonymousAARoot() 167 MDNode *Root = MDNode::getDistinct(Context, Args); in createAnonymousAARoot() 185 MDNode *MDBuilder::createTBAANode(StringRef Name, MDNode *Parent, in createTBAANode() 199 MDNode *MDBuilder::createAliasScope(StringRef Name, MDNode *Domain) { in createAliasScope() 241 MDNode *MDBuilder::createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType, in createTBAAStructTagNode() 252 MDNode *MDBuilder::createTBAATypeNode(MDNode *Parent, uint64_t Size, in createTBAATypeNode() 268 MDNode *MDBuilder::createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType, in createTBAAAccessTag() 282 MDNode *MDBuilder::createMutableTBAAAccessTag(MDNode *Tag) { in createMutableTBAAAccessTag() 283 MDNode *BaseType = cast<MDNode>(Tag->getOperand(0)); in createMutableTBAAAccessTag() [all …]
|
| H A D | Metadata.cpp | 756 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl() 774 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl() 789 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl() 890 MDNode *MDNode::uniquify() { in uniquify() 940 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary() 1005 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate() 1019 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect() 1032 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope() 1064 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath() 1112 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange() [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 appendInlinedAt() argument
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TypeBasedAliasAnalysis.cpp | 326 MDNode *P = dyn_cast_or_null<MDNode>(Operands[1]); in getField() 356 MDNode *P = dyn_cast_or_null<MDNode>(Operands[TheIdx]); in getField() 477 static bool matchAccessTags(const MDNode *A, const MDNode *B, 480 MDNode *MDNode::getMostGenericTBAA(MDNode *A, MDNode *B) { in getMostGenericTBAA() 486 static const MDNode *getLeastCommonType(const MDNode *A, const MDNode *B) { in getLeastCommonType() 544 static const MDNode *createAccessTag(const MDNode *AccessType) { in createAccessTag() 659 static bool matchAccessTags(const MDNode *A, const MDNode *B, in matchAccessTags() 708 bool TypeBasedAAResult::Aliases(const MDNode *A, const MDNode *B) const { in Aliases() 744 MDNode *AAMDNodes::shiftTBAA(MDNode *MD, size_t Offset) { in shiftTBAA() 763 MDNode *AAMDNodes::shiftTBAAStruct(MDNode *MD, size_t Offset) { in shiftTBAAStruct() [all …]
|
| H A D | ScopedNoAliasAA.cpp | 61 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 D | LoopInfo.cpp | 498 MDNode *LoopID = nullptr; in getLoopID() 552 MDNode *MustProgressMD = in setLoopMustProgress() 555 MDNode *NewLoopID = in setLoopMustProgress() 568 SmallPtrSet<MDNode *, 4> in isAnnotatedParallel() 572 MDNode *AccGroup = cast<MDNode>(MD.get()); in isAnnotatedParallel() 597 MDNode *AccGroup = cast<MDNode>(AccessListItem.get()); in isAnnotatedParallel() 614 MDNode *LoopIdMD = in isAnnotatedParallel() 1013 MDNode *llvm::findOptionMDForLoopID(MDNode *LoopID, StringRef Name) { in findOptionMDForLoopID() 1024 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in findOptionMDForLoopID() 1138 if (MDNode *MD = dyn_cast<MDNode>(Op)) { in makePostTransformationMetadata() [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()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenTBAA.h | 48 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 D | CGLoopInfo.cpp | 23 MDNode * 73 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata() 79 MDNode * 135 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPartialUnrollMetadata() 141 MDNode * 203 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createUnrollAndJamMetadata() 209 MDNode * 321 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopVectorizeMetadata() 327 MDNode * 372 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopDistributeMetadata() [all …]
|
| H A D | CGLoopInfo.h | 26 class MDNode; variable 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 * 167 llvm::MDNode * [all …]
|
| H A D | CodeGenTBAA.cpp | 43 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 68 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 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() 319 llvm::MDNode * 323 if (llvm::MDNode *N = StructMetadataCache[Ty]) in getTBAAStructInfo() 400 llvm::MDNode *Parent = getChar(); in getBaseTypeInfoHelper() 421 if (llvm::MDNode *N = BaseTypeMetadataCache[Ty]) in getBaseTypeInfo() 427 llvm::MDNode *TypeNode = getBaseTypeInfoHelper(Ty); in getBaseTypeInfo() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | MDBuilderTest.cpp | 33 MDNode *MD0 = MDHelper.createFPMath(0.0); in TEST_F() 34 MDNode *MD1 = MDHelper.createFPMath(1.0); in TEST_F() 35 EXPECT_EQ(MD0, (MDNode *)nullptr); in TEST_F() 36 EXPECT_NE(MD1, (MDNode *)nullptr); in TEST_F() 47 MDNode *R0 = MDHelper.createRange(A, A); in TEST_F() 48 MDNode *R1 = MDHelper.createRange(A, B); in TEST_F() 49 EXPECT_EQ(R0, (MDNode *)nullptr); in TEST_F() 50 EXPECT_NE(R1, (MDNode *)nullptr); in TEST_F() 73 MDNode *R0 = MDHelper.createTBAARoot("Root"); in TEST_F() 74 MDNode *R1 = MDHelper.createTBAARoot("Root"); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/MIR/ |
| H A D | MachineMetadata.cpp | 118 MDNode *Node = MDNode::get(Context, MDS); in TEST_F() 150 MDNode *MachineNode = MDNode::get(Context, MachineMDS); in TEST_F() 161 MDNode *Node = MDNode::get(Context, MDS); in TEST_F() 244 MDNode *Set0 = MDNode::get(Context, {Scope0}); in TEST_F() 245 MDNode *Set1 = MDNode::get(Context, {Scope1}); in TEST_F() 269 std::vector<const MDNode *> Collected; in TEST_F() 394 MDNode *Set0 = MDNode::get(Context, {Scope0}); in TEST_F() 395 MDNode *Set1 = MDNode::get(Context, {Scope1}); in TEST_F() 419 std::vector<const MDNode *> Collected; in TEST_F() 492 MDNode *Set0 = MDNode::get(Context, {Scope0}); in TEST_F() [all …]
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IRBuilder.cpp | 34 MDNode *ID; in getID() 44 ID = MDNode::getDistinct(Ctx, Args); in getID() 90 MDNode *AliasScopeList = MDNode::get(Ctx, {}); in buildAliasScopes() 97 MDNode::concatenate(AliasScopeList, MDNode::get(Ctx, Args)); in buildAliasScopes() 109 MDNode *AccessGroup = MDNode::getDistinct(Ctx, {}); in pushLoop() 142 MDNode *MData = nullptr; in annotateLoopLatch() 158 MDNode *AccGroup = ParallelLoops.back(); in annotateLoopLatch() 159 Args.push_back(MDNode::get(Ctx, {PropName, AccGroup})); in annotateLoopLatch() 170 MData = MDNode::getDistinct(Ctx, Args); in annotateLoopLatch() 222 cast<MDNode>(ParallelLoops.front())); in annotate() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | MemoryProfileInfoTest.cpp | 82 MDNode *CallStack = buildCallstackMetadata({1, 2, 3}, C); in TEST_F() 167 MDNode *MemProfMD = Call->getMetadata(LLVMContext::MD_memprof); in TEST_F() 170 MDNode *MIB = dyn_cast<MDNode>(MIBOp); in TEST_F() 171 MDNode *StackMD = getMIBStackNode(MIB); in TEST_F() 226 MDNode *MIB = dyn_cast<MDNode>(MIBOp); in TEST_F() 227 MDNode *StackMD = getMIBStackNode(MIB); in TEST_F() 275 MDNode *MIB1 = dyn_cast<MDNode>(MemProfMD1->getOperand(0)); in TEST_F() 287 MDNode *MIB2 = dyn_cast<MDNode>(MemProfMD2->getOperand(0)); in TEST_F() 330 MDNode *MIB = dyn_cast<MDNode>(MIBOp); in TEST_F() 346 MDNode *MIB = dyn_cast<MDNode>(MIBOp); in TEST_F() [all …]
|
| /llvm-project-15.0.7/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() 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 …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 243 Metadata *map(const MDNode &N); 284 MDNode *mapDistinctNode(const MDNode &N); 312 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 578 const MDNode &N = *cast<MDNode>(Op); in tryToMapOperand() 584 MDNode *MDNodeMapper::mapDistinctNode(const MDNode &N) { in mapDistinctNode() 703 MDNode *MDNodeMapper::visitOperands(UniquedGraph &G, MDNode::op_iterator &I, in visitOperands() 714 MDNode &OpN = *cast<MDNode>(Op); in visitOperands() 727 for (MDNode *N : POT) { in propagateChanges() 943 MDNode *Old = MI.second; in remapInstruction() 944 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old)); in remapInstruction() [all …]
|
| /llvm-project-15.0.7/polly/lib/Transform/ |
| H A D | ManualOptimizer.cpp | 39 static TransformationMode hasUnrollTransformation(MDNode *LoopID) { in hasUnrollTransformation() 61 static DebugLoc findFirstDebugLoc(MDNode *MD) { in findFirstDebugLoc() 77 MDNode *MD = findOptionMDForLoopID(LoopMD, Name); in findTransformationDebugLoc() 86 static isl::schedule applyLoopUnroll(MDNode *LoopMD, in applyLoopUnroll() 115 static isl::schedule applyLoopFission(MDNode *LoopMD, in applyLoopFission() 125 static auto getLoopMDProps(MDNode *LoopMD) { in getLoopMDProps() 129 [](const MDOperand &MDOp) { return isa<MDNode>(MDOp.get()); }), in getLoopMDProps() 130 [](const MDOperand &MDOp) { return cast<MDNode>(MDOp.get()); }); in getLoopMDProps() 193 MDNode *NewLoopMD = in checkDependencyViolation() 241 MDNode *LoopMD = Attr->Metadata; in visitBand() [all …]
|
| /llvm-project-15.0.7/llvm/bindings/go/llvm/ |
| H A D | IRBindings.cpp | 35 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2() 45 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2() 49 MDNode *N = MD ? unwrap<MDNode>(MD) : nullptr; in LLVMSetMetadata2() 60 unwrap<MDNode>(Scope)->getContext(), Line, Col, unwrap<MDNode>(Scope), in LLVMGoSetCurrentDebugLocation() 61 InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); in LLVMGoSetCurrentDebugLocation()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceMetadata.cpp | 40 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 42 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule() 49 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 52 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule() 59 SmallVector<std::pair<unsigned, MDNode *>> MDs; in extractMetadataFromModule() 61 for (std::pair<unsigned, MDNode *> &MD : MDs) in extractMetadataFromModule()
|