[llvm-commits] [llvm] r144387 - /llvm/trunk/lib/Target/PTX/PTXInstrInfo.td

Dan Bailey dan at dneg.com
Fri Nov 11 06:45:06 PST 2011


Author: drb
Date: Fri Nov 11 08:45:06 2011
New Revision: 144387

URL: http://llvm.org/viewvc/llvm-project?rev=144387&view=rev
Log:
add rules in tabgen for PTX COPY_ADDRESS of frameindex

Modified:
    llvm/trunk/lib/Target/PTX/PTXInstrInfo.td

Modified: llvm/trunk/lib/Target/PTX/PTXInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/PTXInstrInfo.td?rev=144387&r1=144386&r2=144387&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/PTXInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PTX/PTXInstrInfo.td Fri Nov 11 08:45:06 2011
@@ -680,6 +680,12 @@
   def MOVaddr64
     : InstPTX<(outs RegI64:$d), (ins i64imm:$a), "mov.u64\t$d, $a",
               [(set RegI64:$d, (PTXcopyaddress tglobaladdr:$a))]>;
+  def MOVframe32
+    : InstPTX<(outs RegI32:$d), (ins i32imm:$a), "cvta.local.u32\t$d, $a",
+              [(set RegI32:$d, (PTXcopyaddress frameindex:$a))]>;
+  def MOVframe64
+    : InstPTX<(outs RegI64:$d), (ins i64imm:$a), "cvta.local.u64\t$d, $a",
+              [(set RegI64:$d, (PTXcopyaddress frameindex:$a))]>;
 }
 
 // PTX cvt instructions





More information about the llvm-commits mailing list