[llvm-commits] Patch for review - subtarget ptx23
陳韋任
chenwj at iis.sinica.edu.tw
Sat May 7 06:22:58 PDT 2011
Hi, Justin
I add subtarget ptx23 in PTXInstrInfo.td and a helper function
in PTXSubtarget.h.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
-------------- next part --------------
Index: lib/Target/PTX/PTXSubtarget.h
===================================================================
--- lib/Target/PTX/PTXSubtarget.h (revision 131048)
+++ lib/Target/PTX/PTXSubtarget.h (working copy)
@@ -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
Index: lib/Target/PTX/PTXInstrInfo.td
===================================================================
--- lib/Target/PTX/PTXInstrInfo.td (revision 131048)
+++ lib/Target/PTX/PTXInstrInfo.td (working copy)
@@ -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
More information about the llvm-commits
mailing list