diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-03-02 07:36:48 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-03-02 07:36:48 +0000 |
commit | f48817cbf98472c4007e38ff7dad57126531a6e0 (patch) | |
tree | 38fce9a67e8b3d03581fd6aa8cc9b7c64bb46499 /lib/Target/PTX/PTXSubtarget.cpp | |
parent | 38c4e535493363b96eac47af9e7c056530137bea (diff) | |
download | external_llvm-f48817cbf98472c4007e38ff7dad57126531a6e0.zip external_llvm-f48817cbf98472c4007e38ff7dad57126531a6e0.tar.gz external_llvm-f48817cbf98472c4007e38ff7dad57126531a6e0.tar.bz2 |
Add 64-bit addressing to PTX backend
- Add '64bit' sub-target option.
- Select 32-bit/64-bit loads/stores based on '64bit' option.
- Fix function parameter order.
Patch by Justin Holewinski
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX/PTXSubtarget.cpp')
-rw-r--r-- | lib/Target/PTX/PTXSubtarget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/PTX/PTXSubtarget.cpp b/lib/Target/PTX/PTXSubtarget.cpp index 18a9305..ef4060d 100644 --- a/lib/Target/PTX/PTXSubtarget.cpp +++ b/lib/Target/PTX/PTXSubtarget.cpp @@ -18,7 +18,9 @@ using namespace llvm; PTXSubtarget::PTXSubtarget(const std::string &TT, const std::string &FS) : PTXShaderModel(PTX_SM_1_0), - PTXVersion(PTX_VERSION_1_4) { + PTXVersion(PTX_VERSION_1_4), + SupportsDouble(false), + Use64BitAddresses(false) { std::string TARGET = "generic"; ParseSubtargetFeatures(FS, TARGET); } |