[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td X86RegisterInfo.td
Evan Cheng
evan.cheng at apple.com
Wed Dec 21 18:25:53 PST 2005
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.td updated: 1.182 -> 1.183
X86RegisterInfo.td updated: 1.26 -> 1.27
---
Log message:
Bye bye HACKTROCITY.
---
Diffs of the changes: (+4 -8)
X86InstrInfo.td | 5 +++--
X86RegisterInfo.td | 7 +------
2 files changed, 4 insertions(+), 8 deletions(-)
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.182 llvm/lib/Target/X86/X86InstrInfo.td:1.183
--- llvm/lib/Target/X86/X86InstrInfo.td:1.182 Wed Dec 21 17:05:39 2005
+++ llvm/lib/Target/X86/X86InstrInfo.td Wed Dec 21 20:25:42 2005
@@ -38,7 +38,7 @@
def SDTX86Fld : SDTypeProfile<1, 2, [SDTCisFP<0>,
SDTCisPtrTy<1>, SDTCisVT<2, OtherVT>]>;
-def SDTX86FpSet : SDTypeProfile<0, 1, [SDTCisFP<0>]>;
+def SDTX86FpSet : SDTypeProfile<1, 1, [SDTCisVT<0, FlagVT>, SDTCisFP<1>]>;
def X86cmp : SDNode<"X86ISD::CMP" , SDTX86CmpTest, []>;
def X86test : SDNode<"X86ISD::TEST", SDTX86CmpTest, []>;
@@ -2257,7 +2257,8 @@
def FpGETRESULT : FpI<(ops RFP:$dst), SpecialFP, // FPR = ST(0)
[]>;
def FpSETRESULT : FpI<(ops RFP:$src), SpecialFP,
- [(X86fpset RFP:$src)]>, Imp<[], [ST0]>; // ST(0) = FPR
+ [(set FLAG, (X86fpset RFP:$src))]>,
+ Imp<[], [ST0]>; // ST(0) = FPR
def FpMOV : FpI<(ops RFP:$dst, RFP:$src), SpecialFP,
[]>; // f1 = fmov f2
Index: llvm/lib/Target/X86/X86RegisterInfo.td
diff -u llvm/lib/Target/X86/X86RegisterInfo.td:1.26 llvm/lib/Target/X86/X86RegisterInfo.td:1.27
--- llvm/lib/Target/X86/X86RegisterInfo.td:1.26 Tue Dec 20 20:39:21 2005
+++ llvm/lib/Target/X86/X86RegisterInfo.td Wed Dec 21 20:25:42 2005
@@ -142,11 +142,6 @@
}];
}
-// FIXME:
-// HACKTROCITY: define a flags reg class for things that need to take a flag.
-// this should really be handled by tablgen.
-let Namespace = "X86" in
- def FLAG : Register<"FLAG">;
-def FLAGS_REGS : RegisterClass<"X86", [FlagVT], 32, [STATUS, FLAG]> {
+def FLAGS_REGS : RegisterClass<"X86", [FlagVT], 32, [STATUS]> {
let Size = 32;
}
More information about the llvm-commits
mailing list