Home
last modified time | relevance | path

Searched refs:AddressSpace (Results 1 – 25 of 215) sorted by relevance

123456789

/external/llvm/lib/IR/
DGlobals.cpp222 ThreadLocalMode TLMode, unsigned AddressSpace, in GlobalVariable() argument
226 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
240 ThreadLocalMode TLMode, unsigned AddressSpace, in GlobalVariable() argument
244 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
313 unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, in GlobalIndirectSymbol() argument
315 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) { in GlobalIndirectSymbol()
324 GlobalAlias::GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalAlias() argument
327 : GlobalIndirectSymbol(Ty, Value::GlobalAliasVal, AddressSpace, Link, Name, in GlobalAlias()
333 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create() argument
336 return new GlobalAlias(Ty, AddressSpace, Link, Name, Aliasee, ParentModule); in create()
[all …]
DDataLayout.cpp129 PointerAlignElem::get(uint32_t AddressSpace, unsigned ABIAlign, in get() argument
133 retval.AddressSpace = AddressSpace; in get()
143 && AddressSpace == rhs.AddressSpace in operator ==()
430 DataLayout::findPointerLowerBound(uint32_t AddressSpace) { in findPointerLowerBound() argument
431 return std::lower_bound(Pointers.begin(), Pointers.end(), AddressSpace, in findPointerLowerBound()
432 [](const PointerAlignElem &A, uint32_t AddressSpace) { in findPointerLowerBound() argument
433 return A.AddressSpace < AddressSpace; in findPointerLowerBound()
445 if (I == Pointers.end() || I->AddressSpace != AddrSpace) { in setPointerAlignment()
582 if (I == Pointers.end() || I->AddressSpace != AS) { in getPointerABIAlignment()
584 assert(I->AddressSpace == 0); in getPointerABIAlignment()
[all …]
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DSymbolEnv.h20 enum class AddressSpace enum
27 char const *toString(AddressSpace space);
180 void markAsPointer(VarField x, AddressSpace space);
182 const AddressSpace *isPointer(VarField x) const;
184 void markAsReference(VarField x, AddressSpace space);
186 const AddressSpace *isReference(VarField x) const;
197 void markSpace(VarField x, AddressSpace space, std::unordered_map<VarField, AddressSpace> &map);
198 void removeSpace(VarField x, std::unordered_map<VarField, AddressSpace> &map);
199 const AddressSpace *isSpace(VarField x,
200 const std::unordered_map<VarField, AddressSpace> &map) const;
[all …]
DSymbolEnv.cpp19 constexpr AddressSpace kAddressSpaces[] = {
20 AddressSpace::Constant,
21 AddressSpace::Device,
22 AddressSpace::Thread,
25 char const *sh::toString(AddressSpace space) in toString()
29 case AddressSpace::Constant: in toString()
31 case AddressSpace::Device: in toString()
33 case AddressSpace::Thread: in toString()
394 markAsPointer(*texture, AddressSpace::Thread); in getTextureEnv()
399 markAsPointer(*sampler, AddressSpace::Thread); in getTextureEnv()
[all …]
/external/llvm-project/llvm/lib/IR/
DGlobals.cpp335 ThreadLocalMode TLMode, unsigned AddressSpace, in GlobalVariable() argument
339 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
356 Optional<unsigned> AddressSpace, in GlobalVariable() argument
361 AddressSpace in GlobalVariable()
362 ? *AddressSpace in GlobalVariable()
428 unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, in GlobalIndirectSymbol() argument
430 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) { in GlobalIndirectSymbol()
476 GlobalAlias::GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalAlias() argument
479 : GlobalIndirectSymbol(Ty, Value::GlobalAliasVal, AddressSpace, Link, Name, in GlobalAlias()
485 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create() argument
[all …]
DDataLayout.cpp126 PointerAlignElem PointerAlignElem::get(uint32_t AddressSpace, Align ABIAlign, in get() argument
131 retval.AddressSpace = AddressSpace; in get()
142 && AddressSpace == rhs.AddressSpace in operator ==()
586 DataLayout::getPointerAlignElem(uint32_t AddressSpace) const { in getPointerAlignElem()
587 if (AddressSpace != 0) { in getPointerAlignElem()
588 auto I = lower_bound(Pointers, AddressSpace, in getPointerAlignElem()
589 [](const PointerAlignElem &A, uint32_t AddressSpace) { in getPointerAlignElem() argument
590 return A.AddressSpace < AddressSpace; in getPointerAlignElem()
592 if (I != Pointers.end() && I->AddressSpace == AddressSpace) in getPointerAlignElem()
596 assert(Pointers[0].AddressSpace == 0); in getPointerAlignElem()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DGlobals.cpp338 ThreadLocalMode TLMode, unsigned AddressSpace, in GlobalVariable() argument
342 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
358 ThreadLocalMode TLMode, unsigned AddressSpace, in GlobalVariable() argument
362 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
428 unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, in GlobalIndirectSymbol() argument
430 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) { in GlobalIndirectSymbol()
476 GlobalAlias::GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalAlias() argument
479 : GlobalIndirectSymbol(Ty, Value::GlobalAliasVal, AddressSpace, Link, Name, in GlobalAlias()
485 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create() argument
488 return new GlobalAlias(Ty, AddressSpace, Link, Name, Aliasee, ParentModule); in create()
[all …]
DDataLayout.cpp125 PointerAlignElem PointerAlignElem::get(uint32_t AddressSpace, Align ABIAlign, in get() argument
130 retval.AddressSpace = AddressSpace; in get()
141 && AddressSpace == rhs.AddressSpace in operator ==()
512 DataLayout::findPointerLowerBound(uint32_t AddressSpace) { in findPointerLowerBound() argument
513 return std::lower_bound(Pointers.begin(), Pointers.end(), AddressSpace, in findPointerLowerBound()
514 [](const PointerAlignElem &A, uint32_t AddressSpace) { in findPointerLowerBound() argument
515 return A.AddressSpace < AddressSpace; in findPointerLowerBound()
527 if (I == Pointers.end() || I->AddressSpace != AddrSpace) { in setPointerAlignment()
638 if (I == Pointers.end() || I->AddressSpace != AS) { in getPointerABIAlignment()
640 assert(I->AddressSpace == 0); in getPointerABIAlignment()
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DGlobalAlias.h31 GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
40 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
45 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
50 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DGlobalAlias.h31 GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
40 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
45 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
50 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
DDataLayout.h94 uint32_t AddressSpace; member
98 static PointerAlignElem get(uint32_t AddressSpace, Align ABIAlign,
163 findPointerLowerBound(uint32_t AddressSpace) const { in findPointerLowerBound() argument
164 return const_cast<DataLayout *>(this)->findPointerLowerBound(AddressSpace); in findPointerLowerBound()
167 PointersTy::iterator findPointerLowerBound(uint32_t AddressSpace);
525 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
DGlobalIFunc.h36 GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
45 static GlobalIFunc *create(Type *Ty, unsigned AddressSpace,
/external/llvm/include/llvm/IR/
DGlobalAlias.h35 GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
41 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
46 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
51 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
DDataLayout.h87 uint32_t AddressSpace; member
90 static PointerAlignElem get(uint32_t AddressSpace, unsigned ABIAlign,
130 findPointerLowerBound(uint32_t AddressSpace) const { in findPointerLowerBound() argument
131 return const_cast<DataLayout *>(this)->findPointerLowerBound(AddressSpace); in findPointerLowerBound()
134 PointersTy::iterator findPointerLowerBound(uint32_t AddressSpace);
418 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DLowLevelTypeImpl.h49 static LLT pointer(unsigned AddressSpace, unsigned SizeInBits) { in pointer() argument
52 SizeInBits, AddressSpace}; in pointer()
82 unsigned SizeInBits, unsigned AddressSpace) { in LLT() argument
83 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace); in LLT()
249 unsigned SizeInBits, unsigned AddressSpace) {
257 maskAndShift(AddressSpace, PointerAddressSpaceFieldInfo);
267 maskAndShift(AddressSpace, PointerVectorAddressSpaceFieldInfo);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.h137 unsigned AddressSpace, const Instruction *I = nullptr);
139 unsigned AddressSpace);
162 unsigned Alignment, unsigned AddressSpace,
167 unsigned Alignment, unsigned AddressSpace,
172 unsigned Alignment, unsigned AddressSpace,
208 unsigned Alignment, unsigned AddressSpace);
210 unsigned Alignment, unsigned AddressSpace);
/external/llvm-project/llvm/include/llvm/Support/
DLowLevelTypeImpl.h50 static LLT pointer(unsigned AddressSpace, unsigned SizeInBits) { in pointer() argument
53 SizeInBits, AddressSpace}; in pointer()
83 unsigned SizeInBits, unsigned AddressSpace) { in LLT() argument
84 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace); in LLT()
277 unsigned SizeInBits, unsigned AddressSpace) {
285 maskAndShift(AddressSpace, PointerAddressSpaceFieldInfo);
295 maskAndShift(AddressSpace, PointerVectorAddressSpaceFieldInfo);
/external/llvm-project/clang/lib/Basic/Targets/
DNVPTX.h147 getDWARFAddressSpace(unsigned AddressSpace) const override { in getDWARFAddressSpace() argument
148 if (AddressSpace >= llvm::array_lengthof(NVPTXDWARFAddrSpaceMap) || in getDWARFAddressSpace()
149 NVPTXDWARFAddrSpaceMap[AddressSpace] < 0) in getDWARFAddressSpace()
151 return NVPTXDWARFAddrSpaceMap[AddressSpace]; in getDWARFAddressSpace()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp156 unsigned AddressSpace, in getMemoryOpCost() argument
160 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); in getMemoryOpCost()
198 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); in getMemoryOpCost()
202 Type *Src, unsigned Alignment, unsigned AddressSpace) { in getMaskedMemoryOpCost() argument
203 return BaseT::getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace); in getMaskedMemoryOpCost()
219 unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond, in getInterleavedMemoryOpCost() argument
223 Alignment, AddressSpace, in getInterleavedMemoryOpCost()
225 return getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), AddressSpace, in getInterleavedMemoryOpCost()
/external/llvm/lib/Target/NVPTX/
DNVPTXInferAddressSpaces.cpp204 AddressSpace::ADDRESS_SPACE_GENERIC) { in appendsGenericAddressExpressionToPostorderStack()
387 AddressSpace::ADDRESS_SPACE_GENERIC); in cloneValueWithNewAddressSpace()
408 if (AS1 == AddressSpace::ADDRESS_SPACE_GENERIC || in joinAddressSpaces()
409 AS2 == AddressSpace::ADDRESS_SPACE_GENERIC) in joinAddressSpaces()
410 return AddressSpace::ADDRESS_SPACE_GENERIC; in joinAddressSpaces()
418 return AS1 == AS2 ? AS1 : (unsigned)AddressSpace::ADDRESS_SPACE_GENERIC; in joinAddressSpaces()
475 if (Pos->second == AddressSpace::ADDRESS_SPACE_GENERIC) in inferAddressSpaces()
498 if (NewAS == AddressSpace::ADDRESS_SPACE_GENERIC) in updateAddressSpace()
503 assert(OldAS != AddressSpace::ADDRESS_SPACE_GENERIC); in updateAddressSpace()
/external/llvm-project/llvm/lib/Target/X86/
DX86TargetTransformInfo.h143 unsigned AddressSpace,
147 unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
187 Align Alignment, unsigned AddressSpace,
192 ArrayRef<unsigned> Indices, Align Alignment, unsigned AddressSpace,
197 ArrayRef<unsigned> Indices, Align Alignment, unsigned AddressSpace,
244 Align Alignment, unsigned AddressSpace);
246 Align Alignment, unsigned AddressSpace);
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp144 unsigned AddressSpace, in getMemoryOpCost() argument
153 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
192 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
198 unsigned AddressSpace, in getMaskedMemoryOpCost() argument
200 return BaseT::getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMaskedMemoryOpCost()
218 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, in getInterleavedMemoryOpCost() argument
222 Alignment, AddressSpace, in getInterleavedMemoryOpCost()
225 return getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), AddressSpace, in getInterleavedMemoryOpCost()
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h392 bool allowsMisalignedMemoryAccesses(unsigned BitWidth, unsigned AddressSpace = 0,
522 unsigned AddressSpace) const;
526 unsigned AddressSpace) const;
548 unsigned AddressSpace) const;
672 unsigned AddressSpace,
709 unsigned AddressSpace) = 0;
712 unsigned AddressSpace) = 0;
720 unsigned AddressSpace) = 0;
844 bool allowsMisalignedMemoryAccesses(unsigned BitWidth, unsigned AddressSpace, in allowsMisalignedMemoryAccesses() argument
846 return Impl.allowsMisalignedMemoryAccesses(BitWidth, AddressSpace, in allowsMisalignedMemoryAccesses()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.h76 unsigned AddressSpace);
78 unsigned AddressSpace);
105 unsigned Alignment, unsigned AddressSpace);
107 unsigned Alignment, unsigned AddressSpace);
/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp190 unsigned AddressSpace, in allowsMisalignedMemoryAccesses() argument
193 return TTIImpl->allowsMisalignedMemoryAccesses(BitWidth, AddressSpace, in allowsMisalignedMemoryAccesses()
326 unsigned AddressSpace) const { in getMemoryOpCost()
327 int Cost = TTIImpl->getMemoryOpCost(Opcode, Src, Alignment, AddressSpace); in getMemoryOpCost()
334 unsigned AddressSpace) const { in getMaskedMemoryOpCost()
336 TTIImpl->getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace); in getMaskedMemoryOpCost()
352 unsigned Alignment, unsigned AddressSpace) const { in getInterleavedMemoryOpCost()
354 Alignment, AddressSpace); in getInterleavedMemoryOpCost()

123456789