summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2014-04-09 15:39:15 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2014-04-09 15:39:15 +0000
commit30d56a7b860b9eed3447ae3d96cacd600b58856f (patch)
tree99f622881bfde6efe95205cf7c12b65070781d60 /llvm/lib/Target/NVPTX/NVPTXSubtarget.h
parent9d852a8e0822f1d762c9e37f77aef88e2d8ae486 (diff)
downloadbcm5719-llvm-30d56a7b860b9eed3447ae3d96cacd600b58856f.tar.gz
bcm5719-llvm-30d56a7b860b9eed3447ae3d96cacd600b58856f.zip
[NVPTX] Add preliminary intrinsics and codegen support for textures/surfaces
This commit adds intrinsics and codegen support for the surface read/write and texture read instructions that take an explicit sampler parameter. Codegen operates on image handles at the PTX level, but falls back to direct replacement of handles with kernel arguments if image handles are not enabled. Note that image handles are explicitly disabled for all target architectures in this change (to be enabled later). llvm-svn: 205907
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXSubtarget.h')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
index f99bebd6ce1..efd6e40d722 100644
--- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+++ b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
@@ -65,6 +65,10 @@ public:
inline bool hasROT32() const { return hasHWROT32() || hasSWROT32(); }
inline bool hasROT64() const { return SmVersion >= 20; }
+ bool hasImageHandles() const {
+ // Currently disabled
+ return false;
+ }
bool is64Bit() const { return Is64Bit; }
unsigned int getSmVersion() const { return SmVersion; }
OpenPOWER on IntegriCloud