[llvm-commits] [llvm] r147519 - in /llvm/trunk/lib/Target/Mips: Mips64InstrInfo.td MipsInstrInfo.td
Akira Hatanaka
ahatanaka at mips.com
Tue Jan 3 19:09:26 PST 2012
Author: ahatanak
Date: Tue Jan 3 21:09:26 2012
New Revision: 147519
URL: http://llvm.org/viewvc/llvm-project?rev=147519&view=rev
Log:
Rename immLUiOpnd.
Modified:
llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td
llvm/trunk/lib/Target/Mips/MipsInstrInfo.td
Modified: llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td?rev=147519&r1=147518&r2=147519&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td Tue Jan 3 21:09:26 2012
@@ -214,7 +214,7 @@
(DADDiu ZERO_64, imm:$in)>;
def : Pat<(i64 immZExt16:$in),
(ORi64 ZERO_64, imm:$in)>;
-def : Pat<(i64 immLUiOpnd:$in),
+def : Pat<(i64 immLow16Zero:$in),
(LUi64 (HI16 imm:$in))>;
// 32-bit immediates
Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsInstrInfo.td?rev=147519&r1=147518&r2=147519&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/MipsInstrInfo.td Tue Jan 3 21:09:26 2012
@@ -220,7 +220,7 @@
}], LO16>;
// Immediate can be loaded with LUi (32-bit int with lower 16-bit cleared).
-def immLUiOpnd : PatLeaf<(imm), [{
+def immLow16Zero : PatLeaf<(imm), [{
int64_t Val = N->getSExtValue();
return isInt<32>(Val) && !(Val & 0xffff);
}]>;
@@ -940,7 +940,7 @@
(ADDiu ZERO, imm:$in)>;
def : Pat<(i32 immZExt16:$in),
(ORi ZERO, imm:$in)>;
-def : Pat<(i32 immLUiOpnd:$in),
+def : Pat<(i32 immLow16Zero:$in),
(LUi (HI16 imm:$in))>;
// Arbitrary immediates
More information about the llvm-commits
mailing list