From: Chris Lattner Date: Sat, 7 Oct 2006 06:33:36 +0000 (+0000) Subject: move class defns close to uses to make it easier to read X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=736c020fc85a5cfc3d8efb212f565241d5653e45;p=oota-llvm.git move class defns close to uses to make it easier to read git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30795 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 67f9ba6df5f..ad26e8e85c5 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -255,23 +255,6 @@ class PD_Intrm o, string OpcodeStr, Intrinsic IntId> !strconcat(OpcodeStr, " {$src2, $dst|$dst, $src2}"), [(set VR128:$dst, (IntId VR128:$src1, (load addr:$src2)))]>; -class S3D_Intrr o, string OpcodeStr, Intrinsic IntId> - : S3DI; -class S3D_Intrm o, string OpcodeStr, Intrinsic IntId> - : S3DI; -class S3_Intrr o, string OpcodeStr, Intrinsic IntId> - : S3I; -class S3_Intrm o, string OpcodeStr, Intrinsic IntId> - : S3I; - // Some 'special' instructions def IMPLICIT_DEF_FR32 : I<0, Pseudo, (ops FR32:$dst), "#IMPLICIT_DEF $dst", @@ -1236,6 +1219,24 @@ def UNPCKLPDrm : PDI<0x14, MRMSrcMem, } // Horizontal ops + +class S3D_Intrr o, string OpcodeStr, Intrinsic IntId> + : S3DI; +class S3D_Intrm o, string OpcodeStr, Intrinsic IntId> + : S3DI; +class S3_Intrr o, string OpcodeStr, Intrinsic IntId> + : S3I; +class S3_Intrm o, string OpcodeStr, Intrinsic IntId> + : S3I; + let isTwoAddress = 1 in { def HADDPSrr : S3D_Intrr<0x7C, "haddps", int_x86_sse3_hadd_ps>; def HADDPSrm : S3D_Intrm<0x7C, "haddps", int_x86_sse3_hadd_ps>;