diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2017-08-15 09:38:18 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2017-08-15 09:38:18 +0000 |
commit | 7ac28eb0a5acdf20f912938e0c609426986bb866 (patch) | |
tree | 44473006ee2404c67873726f4b7462e33c478aef /lib/CodeGen/CGOpenCLRuntime.h | |
parent | 7890d5abb1ff405e1e7f98370964d8295cd0bc63 (diff) |
[OpenCL] Allow targets to select address space per type
Generalize getOpenCLImageAddrSpace into getOpenCLTypeAddrSpace, such
that targets can select the address space per type.
No functional changes intended.
Initial patch by Simon Perretta.
Differential Revision: https://reviews.llvm.org/D33989
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGOpenCLRuntime.h')
-rw-r--r-- | lib/CodeGen/CGOpenCLRuntime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGOpenCLRuntime.h b/lib/CodeGen/CGOpenCLRuntime.h index ee3cb3dda0..f28d414cd7 100644 --- a/lib/CodeGen/CGOpenCLRuntime.h +++ b/lib/CodeGen/CGOpenCLRuntime.h @@ -48,9 +48,9 @@ public: virtual llvm::Type *convertOpenCLSpecificType(const Type *T); - virtual llvm::Type *getPipeType(); + virtual llvm::Type *getPipeType(const PipeType *T); - llvm::PointerType *getSamplerType(); + llvm::PointerType *getSamplerType(const Type *T); // \brief Returnes a value which indicates the size in bytes of the pipe // element. |