Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the unregisterised build; fixes #5901 | Ian Lynagh | 2012-02-27 | 4 | -11/+15 |
| | |||||
* | Whitespace only in nativeGen/AsmCodeGen.lhs | Ian Lynagh | 2012-02-27 | 1 | -301/+294 |
| | |||||
* | minor tweak | Gabor Greif | 2012-02-27 | 1 | -1/+1 |
| | |||||
* | Add x86 implementations of the quotRem, Mul2 and Add2 primops | Ian Lynagh | 2012-02-24 | 1 | -2/+59 |
| | |||||
* | Implement 2-word-multiply for x86_64 | Ian Lynagh | 2012-02-24 | 3 | -0/+19 |
| | |||||
* | Add a 2-word-multiply operator | Ian Lynagh | 2012-02-24 | 3 | -0/+3 |
| | | | | Currently no NCGs support it | ||||
* | Add x86_64 support for the add-with-carry op | Ian Lynagh | 2012-02-23 | 1 | -0/+13 |
| | |||||
* | Add a Word add-with-carry primop | Ian Lynagh | 2012-02-23 | 3 | -33/+29 |
| | | | | No special-casing in any NCGs yet | ||||
* | Call expandCallishMachOp in the x86_64 codegen too | Ian Lynagh | 2012-02-23 | 1 | -0/+4 |
| | | | | | Currently it does nothing, as x86_64 supports all the callishMachOps that expandCallishMachOp expands, but it might be needed in the future. | ||||
* | Add a primop for unsigned quotRem; part of #5598 | Ian Lynagh | 2012-02-17 | 3 | -15/+25 |
| | | | | Only amd64 has an efficient implementation currently. | ||||
* | Small refactor | Ian Lynagh | 2012-02-17 | 1 | -87/+92 |
| | | | | Moved the default case of genCCall64 out into a separate function | ||||
* | Define a quotRem CallishMachOp; fixes #5598 | Ian Lynagh | 2012-02-14 | 4 | -440/+447 |
| | | | | | This means we no longer do a division twice when we are using quotRem (on platforms on which the op is supported; currently only amd64). | ||||
* | de-tabbed the hs-boot files | Ian Lynagh | 2012-01-26 | 1 | -9/+2 |
| | |||||
* | Track STG live register information for use in LLVM | David Terei | 2012-01-09 | 4 | -5/+5 |
| | | | | | | | | | We now carry around with CmmJump statements a list of the STG registers that are live at that jump site. This is used by the LLVM backend so it can avoid unnesecarily passing around dead registers, improving perfromance. This gives us the framework to finally fix trac #4308. | ||||
* | Remove unused arg field of CmmReturn | David Terei | 2012-01-05 | 3 | -3/+3 |
| | |||||
* | Remove unused argument field on CmmJump | David Terei | 2012-01-05 | 4 | -5/+5 |
| | |||||
* | small refactoring | Simon Marlow | 2012-01-05 | 1 | -2/+3 |
| | |||||
* | We must emit DELTA pseudo-instructions when moving %esp (#5747) | Simon Marlow | 2012-01-05 | 1 | -1/+3 |
| | |||||
* | fix warning | Simon Marlow | 2012-01-04 | 1 | -6/+1 |
| | |||||
* | Make getDynFlags* functions use HasDynFlags/getDynFlags too | Ian Lynagh | 2011-12-19 | 8 | -42/+40 |
| | |||||
* | some small optimisations | Simon Marlow | 2011-12-13 | 2 | -34/+34 |
| | |||||
* | add some SCCs | Simon Marlow | 2011-12-13 | 1 | -4/+4 |
| | |||||
* | Detect cases where as(1) doesn't recognise .ident directive (#5408) | PHO | 2011-12-08 | 1 | -4/+7 |
| | | | | .ident directives are usually ignored by as(1), and in some cases (like Darwin/PPC) they even raise an error. | ||||
* | Get rid of the "safety" field of CmmCall (OldCmm) | Simon Marlow | 2011-11-29 | 4 | -6/+6 |
| | | | | | This field was doing nothing. I think it originally appeared in a very old incarnation of the new code generator. | ||||
* | Fixes for NetBSD | Ian Lynagh | 2011-11-25 | 1 | -0/+1 |
| | | | | | Based on a patch from Arnaud Degroote <degroote@NetBSD.org> in trac #5480. | ||||
* | Tabs -> Spaces | David Terei | 2011-11-22 | 1 | -184/+178 |
| | |||||
* | Explicitly handle unsupported Cmm prim ops. | David Terei | 2011-11-22 | 3 | -7/+13 |
| | |||||
* | Remove registerised code for dead architectures: mips, ia64, alpha, | David Terei | 2011-11-22 | 5 | -39/+0 |
| | | | | hppa1, m68k | ||||
* | Remove some old comments about the mangler | David Terei | 2011-11-22 | 1 | -5/+0 |
| | |||||
* | Better documentation for stack alignment design | David Terei | 2011-11-17 | 1 | -25/+22 |
| | |||||
* | Fix #4211: No need to fixup stack using mangler on OSX | David Terei | 2011-11-17 | 1 | -3/+3 |
| | | | | | | | We now manage the stack correctly on both x86 and i386, keeping the stack align at (16n bytes - word size) on function entry and at (16n bytes) on function calls. This gives us compatability with LLVM and GCC. | ||||
* | Fix validate by moving OPTIONS -fno-warn-tabs Validate fixed for Mac OS X ↵ | Thorkil Naur | 2011-11-07 | 2 | -6/+6 |
| | | | | 10.5 and Linux. For both: compiler/nativeGen/PPC/Instr.hs compiler/nativeGen/SPARC/Instr.hs failed to (stage1) build. For Mac OS X, but mysteriously not for Linux: compiler/basicTypes/Id.lhs compiler/basicTypes/Name.lhs failed during haddock'ing. | ||||
* | Allow the use of R9 and R10 in primops; fixes trac #5423 | Ian Lynagh | 2011-11-06 | 3 | -0/+18 |
| | |||||
* | Finish de-CPPing CmmOpt.hs | Ian Lynagh | 2011-11-05 | 1 | -7/+9 |
| | |||||
* | Fix bitrotted NCG_DEBUG code, and switch to using a Haskell conditional | Ian Lynagh | 2011-11-05 | 1 | -1/+2 |
| | |||||
* | Use -fwarn-tabs when validating | Ian Lynagh | 2011-11-04 | 50 | -0/+351 |
| | | | | | We only use it for "compiler" sources, i.e. not for libraries. Many modules have a -fno-warn-tabs kludge for now. | ||||
* | Ignore stdcall c-call in native codegen on x86_64 | David M Peixotto | 2011-11-01 | 1 | -2/+3 |
| | | | | | | | | | | | | | | The stdcall calling convention is not supported on x86_64. When an ffi import requests stdcall, a warning is issued as desired by #3336. However, the native codegen was still generating code that expected the callee to cleanup the stack arguments when calling a c function that requests stdcall. This patch changes the codegen to actually use the ccall calling convention as intended. Signed-off-by: David Terei <davidterei@gmail.com> | ||||
* | Change stack alignment to 16+8 bytes in STG code | David M Peixotto | 2011-11-01 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | | | This patch changes the STG code so that %rsp to be aligned to a 16-byte boundary + 8. This is the alignment required by the x86_64 ABI on entry to a function. Previously we kept %rsp aligned to a 16-byte boundary, but this was causing problems for the LLVM backend (see #4211). We now don't need to invoke llvm stack mangler on x86_64 targets. Since the stack is now 16+8 byte algined in STG land on x86_64, we don't need to mangle the stack manipulations with the llvm mangler. This patch only modifies the alignement for x86_64 backends. Signed-off-by: David Terei <davidterei@gmail.com> | ||||
* | Eliminate all uses of IF_ARCH_i386, and remove the definition | Ian Lynagh | 2011-10-23 | 5 | -31/+38 |
| | |||||
* | Remove unused CPP definitions of COMMA | Ian Lynagh | 2011-10-23 | 1 | -2/+0 |
| | |||||
* | Remove unused IF_OS_* CPP definitions | Ian Lynagh | 2011-10-23 | 2 | -18/+4 |
| | |||||
* | Eliminate a couple of IF_ARCH_i386's | Ian Lynagh | 2011-10-23 | 1 | -2/+2 |
| | |||||
* | More CPP removal | Ian Lynagh | 2011-10-23 | 3 | -48/+46 |
| | |||||
* | Correct a comment | Ian Lynagh | 2011-10-23 | 1 | -1/+1 |
| | |||||
* | Finish removing CPP from nativeGen/PPC/Ppr.hs | Ian Lynagh | 2011-10-23 | 1 | -51/+31 |
| | |||||
* | Remove half the CPP from nativeGen/PPC/Ppr.hs | Ian Lynagh | 2011-10-23 | 1 | -126/+120 |
| | |||||
* | A little more CPP removal | Ian Lynagh | 2011-10-19 | 6 | -22/+55 |
| | |||||
* | Convert the HAVE_GNU_NONEXEC_STACK conditional into Haskell | Ian Lynagh | 2011-10-19 | 1 | -4/+5 |
| | |||||
* | Remove all Haskell conditionals on HAVE_SUBSECTIONS_VIA_SYMBOLS | Ian Lynagh | 2011-10-19 | 4 | -59/+59 |
| | | | | We now use the value from the targetPlatform instead. | ||||
* | Add "have subsections via symbols" to the Platform type | Ian Lynagh | 2011-10-19 | 1 | -7/+7 |
| |