PTX: add PTX 2.3 setting in PTX sub-target.
authorJustin Holewinski <justin.holewinski@gmail.com>
Tue, 10 May 2011 12:32:11 +0000 (12:32 +0000)
committerJustin Holewinski <justin.holewinski@gmail.com>
Tue, 10 May 2011 12:32:11 +0000 (12:32 +0000)
Patch by Wei-Ren Chen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131123 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PTX/PTXInstrInfo.td
lib/Target/PTX/PTXSubtarget.h

index 1ac9d3f3dc817ee50f3163a131ba11f7d88f6a0a..e90d4fffb0d6f48135e56cb3e216ba9ef4702de0 100644 (file)
@@ -36,6 +36,8 @@ def SupportsPTX21       : Predicate<"getSubtarget().supportsPTX21()">;
 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
index 3418d84128cdbcf394f3ba37622f93e048317798..eebb284f375e29cd80018beef4cd816b1c03fe3a 100644 (file)
@@ -72,6 +72,8 @@ namespace llvm {
 
       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