llvm-6502/lib/Target/X86
Nate Begeman f63be7d395 First round of support for doing scalar FP using the SSE2 ISA extension and
XMM registers.  There are many known deficiencies and fixmes, which will be
addressed ASAP.  The major benefit of this work is that it will allow the
LLVM register allocator to allocate FP registers across basic blocks.

The x86 backend will still default to x87 style FP.  To enable this work,
you must pass -enable-sse-scalar-fp and either -sse2 or -sse3 to llc.

An example before and after would be for:
double foo(double *P) { double Sum = 0; int i; for (i = 0; i < 1000; ++i)
                        Sum += P[i]; return Sum; }

The inner loop looks like the following:
x87:
.LBB_foo_1:     # no_exit
        fldl (%esp)
        faddl (%eax,%ecx,8)
        fstpl (%esp)
        incl %ecx
        cmpl $1000, %ecx
        #FP_REG_KILL
        jne .LBB_foo_1  # no_exit

SSE2:
        addsd (%eax,%ecx,8), %xmm0
        incl %ecx
        cmpl $1000, %ecx
        #FP_REG_KILL
        jne .LBB_foo_1  # no_exit


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22340 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-06 18:59:04 +00:00
..
.cvsignore ignore generated files 2004-11-21 00:01:54 +00:00
Makefile Adjust to changes in asmwriter filenames 2004-12-16 17:33:24 +00:00
X86.h First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86.td First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86AsmPrinter.cpp The statistic needs to be in the correct namespace. 2005-07-01 23:56:38 +00:00
X86AsmPrinter.h Refactor X86AsmPrinter.cpp into multiple files. Patch contributed 2005-07-01 22:44:09 +00:00
X86ATTAsmPrinter.cpp Refactor X86AsmPrinter.cpp into multiple files. Patch contributed 2005-07-01 22:44:09 +00:00
X86ATTAsmPrinter.h Refactor X86AsmPrinter.cpp into multiple files. Patch contributed 2005-07-01 22:44:09 +00:00
X86CodeEmitter.cpp First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86ELFWriter.cpp Add support to the X86 backend for emitting ELF files. To use this, we 2005-06-27 06:30:12 +00:00
X86FloatingPoint.cpp * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86InstrBuilder.h * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86InstrInfo.cpp First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86InstrInfo.h First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86InstrInfo.td First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86IntelAsmPrinter.cpp Percolate the call up to the right superclass 2005-07-03 17:34:39 +00:00
X86IntelAsmPrinter.h Refactor X86AsmPrinter.cpp into multiple files. Patch contributed 2005-07-01 22:44:09 +00:00
X86ISelPattern.cpp First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86ISelSimple.cpp core changes for varargs 2005-06-18 18:34:52 +00:00
X86JITInfo.cpp Fix lli linking on Mac OS X 10.4.1 for Intel. 2005-06-08 01:02:38 +00:00
X86JITInfo.h * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86PeepholeOpt.cpp * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86RegisterInfo.cpp First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86RegisterInfo.h * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86RegisterInfo.td First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86Relocations.h * Remove trailing whitespace 2005-04-21 23:38:14 +00:00
X86TargetMachine.cpp First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
X86TargetMachine.h Refactor the addPassesToEmitAssembly interface into a addPassesToEmitFile 2005-06-25 02:48:37 +00:00