[LLVMdev] [PATCH ]Add Subtarget ptx23
陳韋任
chenwj at iis.sinica.edu.tw
Mon May 9 21:14:25 PDT 2011
Hi, Justin
I have sent another patch for subtarget ptx23 to llvm-commits.
But I don't see it has been committed. Can you help me take look
on it?
I also attach that patch here.
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-dev
mailing list