summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2018-05-09 23:46:19 +0000
committerArtem Belevich <tra@google.com>2018-05-09 23:46:19 +0000
commit2f348ea1c75646d98b9079fae527c6e600a2beb1 (patch)
tree4ca42d9190e9bd34f6d1dcfd69353168ffe5066d /llvm/lib/Target/NVPTX/NVPTXSubtarget.h
parentc779388c7bfbdd38b31923aea1ccb4cd35ca23b6 (diff)
downloadbcm5719-llvm-2f348ea1c75646d98b9079fae527c6e600a2beb1.tar.gz
bcm5719-llvm-2f348ea1c75646d98b9079fae527c6e600a2beb1.zip
[NVPTX] Added a feature to use short pointers for const/local/shared AS.
Const/local/shared address spaces are all < 4GB and we can always use 32-bit pointers to access them. This has substantial performance impact on kernels that uses shared memory for intermediary results. The feature is disabled by default. Differential Revision: https://reviews.llvm.org/D46147 llvm-svn: 331941
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXSubtarget.h')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXSubtarget.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
index fa35673bbbb..7030fe52432 100644
--- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+++ b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
@@ -79,7 +79,6 @@ public:
bool hasImageHandles() const;
bool hasFP16Math() const { return SmVersion >= 53; }
bool allowFP16Math() const;
-
unsigned int getSmVersion() const { return SmVersion; }
std::string getTargetName() const { return TargetName; }
OpenPOWER on IntegriCloud