/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | MDBuilder.h | 31 class MDNode; variable 54 MDNode *createFPMath(float Accuracy); 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights); 67 MDNode *createUnpredictable(); 73 MDNode *createFunctionEntryCount(uint64_t Count, bool Synthetic, 77 MDNode *createFunctionSectionPrefix(StringRef Prefix); 80 MDNode *createMisExpect(uint64_t Index, uint64_t LikelyWeight, 88 MDNode *createRange(const APInt &Lo, const APInt &Hi); 91 MDNode *createRange(Constant *Lo, Constant *Hi); [all …]
|
D | Metadata.h | 646 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 661 MDNode *TBAA = nullptr; 664 MDNode *TBAAStruct = nullptr; 667 MDNode *Scope = nullptr; 670 MDNode *NoAlias = nullptr; 691 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 696 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 701 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^ 702 DenseMapInfo<MDNode *>::getHashValue(Val.TBAAStruct) ^ 703 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^ [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | MDBuilder.h | 31 class MDNode; variable 54 MDNode *createFPMath(float Accuracy); 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights); 67 MDNode *createUnpredictable(); 73 MDNode *createFunctionEntryCount(uint64_t Count, bool Synthetic, 77 MDNode *createFunctionSectionPrefix(StringRef Prefix); 84 MDNode *createRange(const APInt &Lo, const APInt &Hi); 87 MDNode *createRange(Constant *Lo, Constant *Hi); 95 MDNode *createCallees(ArrayRef<Function *> Callees); [all …]
|
D | Metadata.h | 644 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 659 MDNode *TBAA = nullptr; 662 MDNode *TBAAStruct = nullptr; 665 MDNode *Scope = nullptr; 668 MDNode *NoAlias = nullptr; 689 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 694 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 699 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^ 700 DenseMapInfo<MDNode *>::getHashValue(Val.TBAAStruct) ^ 701 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^ [all …]
|
/external/llvm/include/llvm/IR/ |
D | MDBuilder.h | 29 class MDNode; variable 51 MDNode *createFPMath(float Accuracy); 58 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 61 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights); 64 MDNode *createUnpredictable(); 67 MDNode *createFunctionEntryCount(uint64_t Count); 74 MDNode *createRange(const APInt &Lo, const APInt &Hi); 77 MDNode *createRange(Constant *Lo, Constant *Hi); 87 MDNode *createAnonymousAARoot(StringRef Name = StringRef(), 88 MDNode *Extra = nullptr); [all …]
|
D | Metadata.h | 608 explicit AAMDNodes(MDNode *T = nullptr, MDNode *S = nullptr, 609 MDNode *N = nullptr) 621 MDNode *TBAA; 624 MDNode *Scope; 627 MDNode *NoAlias; 634 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 638 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 642 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^ 643 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^ 644 DenseMapInfo<MDNode *>::getHashValue(Val.NoAlias); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
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, None); 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 …]
|
D | Metadata.cpp | 87 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 90 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 96 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 304 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses() 314 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate() 320 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists() 326 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 480 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new() 494 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void MDNode::operator delete(void *Mem) { in operator delete() 495 MDNode *N = static_cast<MDNode *>(Mem); in operator delete() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
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, None); 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 …]
|
D | Metadata.cpp | 88 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 91 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 97 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 305 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses() 315 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate() 321 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists() 327 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 481 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new() 495 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void MDNode::operator delete(void *Mem) { in operator delete() 496 MDNode *N = static_cast<MDNode *>(Mem); in operator delete() [all …]
|
/external/llvm/lib/IR/ |
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, None); in createUnpredictable() 59 MDNode *MDBuilder::createFunctionEntryCount(uint64_t Count) { in createFunctionEntryCount() 61 return MDNode::get(Context, in createFunctionEntryCount() 66 MDNode *MDBuilder::createRange(const APInt &Lo, const APInt &Hi) { in createRange() [all …]
|
D | Metadata.cpp | 55 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 58 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 64 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 272 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses() 282 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate() 288 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists() 294 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 444 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new() 456 void MDNode::operator delete(void *Mem) { in operator delete() 457 MDNode *N = static_cast<MDNode *>(Mem); in operator delete() [all …]
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 142 const MDNode *Node; 146 explicit TBAANode(const MDNode *N) : Node(N) {} in TBAANode() 149 const MDNode *getNode() const { return Node; } in getNode() 155 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent() 180 const MDNode *Node; 183 explicit TBAAStructTagNode(const MDNode *N) : Node(N) {} in TBAAStructTagNode() 186 const MDNode *getNode() const { return Node; } in getNode() 188 const MDNode *getBaseType() const { in getBaseType() 189 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 191 const MDNode *getAccessType() const { in getAccessType() [all …]
|
D | ScopedNoAliasAA.cpp | 57 const MDNode *Node; 61 explicit AliasScopeNode(const MDNode *N) : Node(N) {} in AliasScopeNode() 64 const MDNode *getNode() const { return Node; } in getNode() 67 const MDNode *getDomain() const { in getDomain() 70 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getDomain() 81 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias() 83 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias() 131 const MDNode *List, const MDNode *Domain, in collectMDInDomain() 132 SmallPtrSetImpl<const MDNode *> &Nodes) const { in collectMDInDomain() 134 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTBAA.h | 36 TBAAPathTag(const Type *B, const llvm::MDNode *A, uint64_t O) in TBAAPathTag() 39 const llvm::MDNode *AccessN; 56 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; 58 llvm::DenseMap<const Type *, llvm::MDNode *> StructTypeMetadataCache; 60 llvm::DenseMap<TBAAPathTag, llvm::MDNode *> StructTagMetadataCache; 62 llvm::DenseMap<const llvm::MDNode *, llvm::MDNode *> ScalarTagMetadataCache; 66 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache; 68 llvm::MDNode *Root; 69 llvm::MDNode *Char; 73 llvm::MDNode *getRoot(); [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
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 …]
|
D | ScopedNoAliasAA.cpp | 60 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias() 62 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias() 108 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 109 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 111 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 116 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, in mayAliasInScopes() 117 const MDNode *NoAlias) const { in mayAliasInScopes() 122 SmallPtrSet<const MDNode *, 16> Domains; in mayAliasInScopes() 124 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in mayAliasInScopes() 125 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in mayAliasInScopes() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
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 …]
|
D | ScopedNoAliasAA.cpp | 59 const MDNode *Node = nullptr; 63 explicit AliasScopeNode(const MDNode *N) : Node(N) {} in AliasScopeNode() 66 const MDNode *getNode() const { return Node; } in getNode() 69 const MDNode *getDomain() const { in getDomain() 72 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getDomain() 85 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias() 87 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias() 133 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 134 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 136 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenTBAA.h | 43 TBAAAccessInfo(TBAAAccessKind Kind, llvm::MDNode *BaseType, in TBAAAccessInfo() 44 llvm::MDNode *AccessType, uint64_t Offset, uint64_t Size) in TBAAAccessInfo() 49 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo() 55 explicit TBAAAccessInfo(llvm::MDNode *AccessType, uint64_t Size) in TBAAAccessInfo() 101 llvm::MDNode *BaseType; 105 llvm::MDNode *AccessType; 129 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; 131 llvm::DenseMap<const Type *, llvm::MDNode *> BaseTypeMetadataCache; 133 llvm::DenseMap<TBAAAccessInfo, llvm::MDNode *> AccessTagMetadataCache; 137 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache; [all …]
|
D | CGLoopInfo.cpp | 23 MDNode * 30 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata() 35 MDNode *LoopInfo::createPipeliningMetadata(const LoopAttributes &Attrs, in createPipeliningMetadata() 51 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata() 68 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata() 73 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata() 79 MDNode * 107 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata() 110 MDNode *Followup = createPipeliningMetadata(Attrs, FollowupLoopProperties, in createPartialUnrollMetadata() 122 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata() [all …]
|
/external/llvm-project/llvm/unittests/IR/ |
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() 61 MDNode *R0 = MDHelper.createAnonymousTBAARoot(); in TEST_F() 62 MDNode *R1 = MDHelper.createAnonymousTBAARoot(); in TEST_F() [all …]
|
/external/llvm/unittests/IR/ |
D | MDBuilderTest.cpp | 34 MDNode *MD0 = MDHelper.createFPMath(0.0); in TEST_F() 35 MDNode *MD1 = MDHelper.createFPMath(1.0); in TEST_F() 36 EXPECT_EQ(MD0, (MDNode *)nullptr); in TEST_F() 37 EXPECT_NE(MD1, (MDNode *)nullptr); in TEST_F() 48 MDNode *R0 = MDHelper.createRange(A, A); in TEST_F() 49 MDNode *R1 = MDHelper.createRange(A, B); in TEST_F() 50 EXPECT_EQ(R0, (MDNode *)nullptr); in TEST_F() 51 EXPECT_NE(R1, (MDNode *)nullptr); in TEST_F() 62 MDNode *R0 = MDHelper.createAnonymousTBAARoot(); in TEST_F() 63 MDNode *R1 = MDHelper.createAnonymousTBAARoot(); in TEST_F() [all …]
|
/external/llvm-project/polly/lib/CodeGen/ |
D | IRBuilder.cpp | 32 static MDNode *getID(LLVMContext &Ctx, Metadata *arg0 = nullptr, in getID() 34 MDNode *ID; in getID() 44 ID = MDNode::getDistinct(Ctx, Args); in getID() 82 MDNode *AliasScopeList = MDNode::get(Ctx, {}); in buildAliasScopes() 89 MDNode::concatenate(AliasScopeList, MDNode::get(Ctx, Args)); in buildAliasScopes() 103 MDNode *Id = getID(Header->getContext()); in pushLoop() 106 MDNode *Ids = ParallelLoops.empty() in pushLoop() 108 : MDNode::concatenate(ParallelLoops.back(), Id); in pushLoop() 123 MDNode *MData = nullptr; in annotateLoopLatch() 131 MData = MDNode::concatenate(MData, getID(Ctx, MDNode::get(Ctx, Args))); in annotateLoopLatch() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Metadata.h | 626 explicit AAMDNodes(MDNode *T = nullptr, MDNode *S = nullptr, 627 MDNode *N = nullptr) 639 MDNode *TBAA; 642 MDNode *Scope; 645 MDNode *NoAlias; 652 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 657 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 662 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^ 663 DenseMapInfo<MDNode *>::getHashValue(Val.Scope) ^ 664 DenseMapInfo<MDNode *>::getHashValue(Val.NoAlias); [all …]
|