[llvm-commits] [llvm] r131123 - in /llvm/trunk/lib/Target/PTX: PTXInstrInfo.td PTXSubtarget.h
Justin Holewinski
justin.holewinski at gmail.com
Tue May 10 05:32:11 PDT 2011
Author: jholewinski
Date: Tue May 10 07:32:11 2011
New Revision: 131123
URL: http://llvm.org/viewvc/llvm-project?rev=131123&view=rev
Log:
PTX: add PTX 2.3 setting in PTX sub-target.
Patch by Wei-Ren Chen
Modified:
llvm/trunk/lib/Target/PTX/PTXInstrInfo.td
llvm/trunk/lib/Target/PTX/PTXSubtarget.h
Modified: llvm/trunk/lib/Target/PTX/PTXInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/PTXInstrInfo.td?rev=131123&r1=131122&r2=131123&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/PTXInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PTX/PTXInstrInfo.td Tue May 10 07:32:11 2011
@@ -36,6 +36,8 @@
def DoesNotSupportPTX21 : Predicate<"!getSubtarget().supportsPTX21()">;
def SupportsPTX22 : Predicate<"getSubtarget().supportsPTX22()">;
def DoesNotSupportPTX22 : Predicate<"!getSubtarget().supportsPTX22()">;
+def SupportsPTX23 : Predicate<"getSubtarget().supportsPTX23()">;
+def DoesNotSupportPTX23 : Predicate<"!getSubtarget().supportsPTX23()">;
//===----------------------------------------------------------------------===//
// Instruction Pattern Stuff
Modified: llvm/trunk/lib/Target/PTX/PTXSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/PTXSubtarget.h?rev=131123&r1=131122&r2=131123&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/PTXSubtarget.h (original)
+++ llvm/trunk/lib/Target/PTX/PTXSubtarget.h Tue May 10 07:32:11 2011
@@ -72,6 +72,8 @@
bool supportsPTX22() const { return PTXVersion >= PTX_VERSION_2_2; }
+ bool supportsPTX23() const { return PTXVersion >= PTX_VERSION_2_3; }
+
std::string ParseSubtargetFeatures(const std::string &FS,
const std::string &CPU);
}; // class PTXSubtarget
More information about the llvm-commits
mailing list