| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 31 class MDNode; variable 126 MDNode *createAnonymousAliasScope(MDNode *Domain, 144 MDNode *createAliasScope(StringRef Name, MDNode *Domain); 148 MDNode *createTBAANode(StringRef Name, MDNode *Parent, 154 MDNode *Type; 165 MDNode * 171 MDNode *createTBAAScalarTypeNode(StringRef Name, MDNode *Parent, 176 MDNode *createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType, 181 MDNode *createTBAATypeNode(MDNode *Parent, uint64_t Size, Metadata *Id, 189 MDNode *createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType, [all …]
|
| H A D | Metadata.h | 645 explicit AAMDNodes(MDNode *T = nullptr, MDNode *S = nullptr, 658 MDNode *TBAA; 903 MDNode(const MDNode &) = delete; 1093 static MDNode *concatenate(MDNode *A, MDNode *B); 1094 static MDNode *intersect(MDNode *A, MDNode *B); 1095 static MDNode *getMostGenericTBAA(MDNode *A, MDNode *B); 1096 static MDNode *getMostGenericFPMath(MDNode *A, MDNode *B); 1097 static MDNode *getMostGenericRange(MDNode *A, MDNode *B); 1098 static MDNode *getMostGenericAliasScope(MDNode *A, MDNode *B); 1099 static MDNode *getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B); [all …]
|
| H A D | DebugLoc.h | 49 explicit DebugLoc(const MDNode *N); 80 static DebugLoc get(unsigned Line, unsigned Col, const MDNode *Scope, 81 const MDNode *InlinedAt = nullptr, 91 DenseMap<const MDNode *, MDNode *> &Cache, 96 MDNode *getScope() const; 102 MDNode *getInlinedAtScope() const; 114 MDNode *getAsMDNode() const { return Loc; } in getAsMDNode()
|
| 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 bool visitTBAAMetadata(Instruction &I, const MDNode *MD);
|
| H A D | GlobalObject.h | 27 class MDNode; variable 121 MDNode *getMetadata(unsigned KindID) const; 122 MDNode *getMetadata(StringRef Kind) const; 129 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const; 130 void getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const; 138 void setMetadata(unsigned KindID, MDNode *MD); 139 void setMetadata(StringRef Kind, MDNode *MD); 144 void addMetadata(unsigned KindID, MDNode &MD); 145 void addMetadata(StringRef Kind, MDNode &MD); 151 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const;
|
| H A D | IRBuilder.h | 54 class MDNode; variable 97 MDNode *DefaultFPMathTag; 253 MDNode *FPMathTag; 475 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 485 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 486 MDNode *NoAliasTag = nullptr); 496 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, 519 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 529 MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr, 530 MDNode *NoAliasTag = nullptr); [all …]
|
| H A D | AutoUpgrade.h | 24 class MDNode; variable 67 MDNode *UpgradeTBAANode(MDNode &TBAANode); 89 MDNode *upgradeInstructionLoopAttachment(MDNode &N);
|
| H A D | Metadata.def | 38 // Handler for specialized and uniquable leaf nodes under MDNode. Defers to 51 // Handler for leaf nodes under MDNode. 56 // Handler for leaf nodes under MDNode. 61 // Handler for non-leaf nodes under MDNode. 66 // Handler for specialized leaf nodes under MDNode. 71 // Handler for specialized non-leaf nodes under MDNode. 81 HANDLE_MDNODE_BRANCH(MDNode)
|
| H A D | Instruction.h | 36 class MDNode; variable 221 MDNode *getMetadata(unsigned KindID) const { 228 MDNode *getMetadata(StringRef Kind) const { 237 getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 245 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { 257 void setMetadata(unsigned KindID, MDNode *Node); 258 void setMetadata(StringRef Kind, MDNode *Node); 445 MDNode *getMetadataImpl(unsigned KindID) const; 446 MDNode *getMetadataImpl(StringRef Kind) const; 448 getAllMetadataImpl(SmallVectorImpl<std::pair<unsigned, MDNode *>> &) const; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 110 MDNode *MDBuilder::createAnonymousAARoot(StringRef Name, MDNode *Extra) { in createAnonymousAARoot() 119 MDNode *Root = MDNode::get(Context, Args); in createAnonymousAARoot() 138 MDNode *MDBuilder::createTBAANode(StringRef Name, MDNode *Parent, in createTBAANode() 152 MDNode *MDBuilder::createAliasScope(StringRef Name, MDNode *Domain) { in createAliasScope() 185 MDNode *MDBuilder::createTBAAScalarTypeNode(StringRef Name, MDNode *Parent, in createTBAAScalarTypeNode() 194 MDNode *MDBuilder::createTBAAStructTagNode(MDNode *BaseType, MDNode *AccessType, in createTBAAStructTagNode() 205 MDNode *MDBuilder::createTBAATypeNode(MDNode *Parent, uint64_t Size, in createTBAATypeNode() 221 MDNode *MDBuilder::createTBAAAccessTag(MDNode *BaseType, MDNode *AccessType, in createTBAAAccessTag() 235 MDNode *MDBuilder::createMutableTBAAAccessTag(MDNode *Tag) { in createMutableTBAAAccessTag() 236 MDNode *BaseType = cast<MDNode>(Tag->getOperand(0)); in createMutableTBAAAccessTag() [all …]
|
| H A D | Metadata.cpp | 494 MDNode *N = static_cast<MDNode *>(Mem); in operator delete() 666 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl() 681 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl() 782 MDNode *MDNode::uniquify() { in uniquify() 831 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary() 896 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate() 910 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect() 923 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope() 930 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath() 978 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange() [all …]
|
| H A D | DebugLoc.cpp | 20 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() 36 MDNode *DebugLoc::getScope() const { in getScope() 46 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope() 52 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc() 72 DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope, in get() 73 const MDNode *InlinedAt, bool ImplicitCode) { in get() 79 const_cast<MDNode *>(Scope), in get() 80 const_cast<MDNode *>(InlinedAt), ImplicitCode); in get() 85 DenseMap<const MDNode *, MDNode *> &Cache, in appendInlinedAt() argument
|
| H A D | DebugInfo.cpp | 282 static MDNode *stripDebugLocFromLoopID(MDNode *N) { in stripDebugLocFromLoopID() 309 MDNode *LoopID = MDNode::get(N->getContext(), Args); in stripDebugLocFromLoopID() 321 DenseMap<MDNode*, MDNode*> LoopIDsMap; in stripDebugInfo() 419 MDNode *mapNode(Metadata *N) { return dyn_cast_or_null<MDNode>(map(N)); } in mapNode() 506 MDNode *getReplacementMDNode(MDNode *N) { in getReplacementMDNode() 517 void remap(MDNode *N) { in remap() 521 auto doRemap = [&](MDNode *N) -> MDNode * { in remap() 551 void traverse(MDNode *); 562 auto prune = [](MDNode *Parent, MDNode *Child) { in traverse() 619 auto remap = [&](MDNode *Node) -> MDNode * { in stripNonLineTableDebugInfo() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | TypeBasedAliasAnalysis.cpp | 266 const MDNode *Node = nullptr; 323 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getField() 352 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(TheIdx)); in getField() 469 static bool matchAccessTags(const MDNode *A, const MDNode *B, 472 MDNode *MDNode::getMostGenericTBAA(MDNode *A, MDNode *B) { in getMostGenericTBAA() 473 const MDNode *GenericTag; in getMostGenericTBAA() 478 static const MDNode *getLeastCommonType(const MDNode *A, const MDNode *B) { in getLeastCommonType() 506 const MDNode *Ret = nullptr; in getLeastCommonType() 539 static const MDNode *createAccessTag(const MDNode *AccessType) { in createAccessTag() 654 static bool matchAccessTags(const MDNode *A, const MDNode *B, in matchAccessTags() [all …]
|
| H A D | ScopedNoAliasAA.cpp | 59 const MDNode *Node = nullptr; 66 const MDNode *getNode() const { return Node; } in getNode() 69 const MDNode *getDomain() const { in getDomain() 130 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 133 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 144 SmallPtrSet<const MDNode *, 16> Domains; in mayAliasInScopes() 146 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in mayAliasInScopes() 152 for (const MDNode *Domain : Domains) { in mayAliasInScopes() 153 SmallPtrSet<const MDNode *, 16> ScopeNodes; in mayAliasInScopes() 158 SmallPtrSet<const MDNode *, 16> NANodes; in mayAliasInScopes() [all …]
|
| H A D | LoopInfo.cpp | 216 MDNode *LoopID = nullptr; in getLoopID() 267 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in setLoopAlreadyUnrolled() 281 MDNode *DisableNode = MDNode::get(Context, DisableOperands); in setLoopAlreadyUnrolled() 284 MDNode *NewLoopID = MDNode::get(Context, MDs); in setLoopAlreadyUnrolled() 296 MDNode *ParallelAccesses = in isAnnotatedParallel() 298 SmallPtrSet<MDNode *, 4> in isAnnotatedParallel() 302 MDNode *AccGroup = cast<MDNode>(MD.get()); in isAnnotatedParallel() 327 MDNode *AccGroup = cast<MDNode>(AccessListItem.get()); in isAnnotatedParallel() 344 MDNode *LoopIdMD = in isAnnotatedParallel() 730 MDNode *llvm::findOptionMDForLoopID(MDNode *LoopID, StringRef Name) { in findOptionMDForLoopID() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CodeGenTBAA.h | 50 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo() 102 llvm::MDNode *BaseType; 106 llvm::MDNode *AccessType; 140 llvm::MDNode *Root; 141 llvm::MDNode *Char; 145 llvm::MDNode *getRoot(); 149 llvm::MDNode *getChar(); 160 llvm::MDNode *createScalarTypeNode(StringRef Name, llvm::MDNode *Parent, 178 llvm::MDNode *getTypeInfo(QualType QTy); 225 DenseMapInfo<MDNode *>::getEmptyKey(), [all …]
|
| H A D | CodeGenTBAA.cpp | 44 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 69 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 188 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo() 208 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo() 214 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() 280 llvm::MDNode * 284 if (llvm::MDNode *N = StructMetadataCache[Ty]) in getTBAAStructInfo() 324 llvm::MDNode *Parent = getChar(); in getBaseTypeInfoHelper() 345 if (llvm::MDNode *N = BaseTypeMetadataCache[Ty]) in getBaseTypeInfo() 351 llvm::MDNode *TypeNode = getBaseTypeInfoHelper(Ty); in getBaseTypeInfo() [all …]
|
| H A D | CGLoopInfo.cpp | 56 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 64 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 72 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 80 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 89 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 102 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 115 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 123 Args.push_back(MDNode::get(Ctx, Vals)); in createMetadata() 128 Args.push_back(MDNode::get( in createMetadata() 149 MDNode *LoopID = MDNode::get(Ctx, Args); in createMetadata() [all …]
|
| H A D | CGLoopInfo.h | 27 class MDNode; variable 85 llvm::MDNode *getLoopID() const { return LoopID; } in getLoopID() 94 llvm::MDNode *getAccessGroup() const { return AccGroup; } in getAccessGroup() 98 llvm::MDNode *LoopID; 104 llvm::MDNode *AccGroup = nullptr; 132 llvm::MDNode *getCurLoopID() const { return getInfo().getLoopID(); } in getCurLoopID()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 244 Metadata *map(const MDNode &N); 285 MDNode *mapDistinctNode(const MDNode &N); 313 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 534 const MDNode &N = *cast<MDNode>(Op); in tryToMapOperand() 550 MDNode *MDNodeMapper::mapDistinctNode(const MDNode &N) { in mapDistinctNode() 658 MDNode *MDNodeMapper::visitOperands(UniquedGraph &G, MDNode::op_iterator &I, in visitOperands() 669 MDNode &OpN = *cast<MDNode>(Op); in visitOperands() 682 for (MDNode *N : POT) { in propagateChanges() 899 MDNode *Old = MI.second; in remapInstruction() 900 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old)); in remapInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | R600OpenCLImageTypeLoweringPass.cpp | 93 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode() 108 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode() 126 MDNode *ArgAQNode = cast<MDNode>(KernelMDNode->getOperand(2)); in AccessQualFromMD() 131 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() 132 MDNode *ArgTypeNode = cast<MDNode>(KernelMDNode->getOperand(3)); in ArgTypeFromMD() 137 GetArgMD(MDNode *KernelMDNode, unsigned OpIdx) { in GetArgMD() 140 MDNode *Node = cast<MDNode>(KernelMDNode->getOperand(i + 1)); in GetArgMD() 269 std::tuple<Function *, MDNode *> 270 addImplicitArgs(Function *F, MDNode *KernelMDNode) { in addImplicitArgs() 327 MDNode *NewMDNode = MDNode::get(*Context, KernelMDArgs); in addImplicitArgs() [all …]
|
| H A D | AMDGPUAliasAnalysis.h | 28 class MDNode; variable 52 bool Aliases(const MDNode *A, const MDNode *B) const; 53 bool PathAliases(const MDNode *A, const MDNode *B) const;
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | LoopVersioningLICM.cpp | 117 static MDNode *createStringMetadata(Loop *TheLoop, StringRef Name, unsigned V) { in createStringMetadata() 122 return MDNode::get(Context, MDs); in createStringMetadata() 130 MDNode *LoopID = TheLoop->getLoopID(); in addStringMetadataToLoop() 133 MDNode *Node = cast<MDNode>(LoopID->getOperand(i)); in addStringMetadataToLoop() 141 MDNode *NewLoopID = MDNode::get(Context, MDs); in addStringMetadataToLoop() 564 MDNode *NewDomain = MDB.createAnonymousAliasScopeDomain("LVDomain"); in setNoAliasToLoop() 567 MDNode *NewScope = MDB.createAnonymousAliasScope(NewDomain, Name); in setNoAliasToLoop() 580 MDNode::concatenate(Inst.getMetadata(LLVMContext::MD_noalias), in setNoAliasToLoop() 581 MDNode::get(Inst.getContext(), NoAliases))); in setNoAliasToLoop() 585 MDNode::concatenate(Inst.getMetadata(LLVMContext::MD_alias_scope), in setNoAliasToLoop() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | TypeBasedAliasAnalysis.h | 28 class MDNode; variable 52 bool Aliases(const MDNode *A, const MDNode *B) const; 53 bool PathAliases(const MDNode *A, const MDNode *B) const;
|