[llvm-commits] [llvm] r146007 - /llvm/trunk/lib/Target/ARM/ARMInstrFormats.td

Jim Grosbach grosbach at apple.com
Tue Dec 6 17:17:58 PST 2011


Author: grosbach
Date: Tue Dec  6 19:17:58 2011
New Revision: 146007

URL: http://llvm.org/viewvc/llvm-project?rev=146007&view=rev
Log:
ARM Implement ARM ARM Table A7-3 via TokenAlias.

Data type suffix aliasing. Previously handled via lots of instruction
aliases. Cleanup of those forthcoming.

rdar://10435076

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrFormats.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrFormats.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrFormats.td?rev=146007&r1=146006&r2=146007&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrFormats.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrFormats.td Tue Dec  6 19:17:58 2011
@@ -2143,3 +2143,23 @@
   defm _ : NEONDT32AsmPseudoInst<opc, asm, iops>;
   defm _ : NEONDT64NoF64AsmPseudoInst<opc, asm, iops>;
 }
+
+// Data type suffix token aliases. Implements Table A7-3 in the ARM ARM.
+def : TokenAlias<".s8", ".i8">;
+def : TokenAlias<".u8", ".i8">;
+def : TokenAlias<".s16", ".i16">;
+def : TokenAlias<".u16", ".i16">;
+def : TokenAlias<".s32", ".i32">;
+def : TokenAlias<".u32", ".i32">;
+
+def : TokenAlias<".i8", ".8">;
+def : TokenAlias<".i16", ".16">;
+def : TokenAlias<".i32", ".32">;
+
+def : TokenAlias<".p8", ".8">;
+def : TokenAlias<".p16", ".16">;
+
+def : TokenAlias<".f32", ".32">;
+def : TokenAlias<".f64", ".64">;
+def : TokenAlias<".f", ".f32">;
+def : TokenAlias<".d", ".f64">;





More information about the llvm-commits mailing list