1. 25 Apr, 2016 1 commit
    • Matthias Braun's avatar
      bespillslots: Change spillslot collection API to take size+align · 61c58871
      Matthias Braun authored
      Taking explicit size+po2align makes things easier compared to the
      previously used ir_type: ir_type* is a middleend concept not everything
      in the backend is represented as a type/mode anymore (x86_insn_size_t).
      Furthermore we only respected size+alignment of that type anyway,
      additional semantics would be unexpectedly ignored. It also simplifies
      the code in some places.
      This should also naturally fix a problem in 188.amp where we wrongly
      passed the type for mode_Ls instead of the type for mode_D before.
  2. 24 Apr, 2016 5 commits
  3. 20 Apr, 2016 1 commit
  4. 18 Apr, 2016 1 commit
  5. 17 Apr, 2016 1 commit
  6. 05 Apr, 2016 3 commits
  7. 04 Apr, 2016 5 commits
    • yb9976's avatar
      Rename be_enqueue_preds to be_enqueue_operands. · a5362ad5
      yb9976 authored
    • Matthias Braun's avatar
      ia32, amd64: Share address mode emit code. · 3d2bbc65
      Matthias Braun authored
      This meant initializing the address mode variant all over the ia32
      backend, on the other hand this will be useful if we ever switch the
      ia32 backend to a style without NoReg nodes (like amd64).
    • Matthias Braun's avatar
    • Matthias Braun's avatar
      ia32, amd64: Introduce common x86_addr_t struct. · d13cb0a6
      Matthias Braun authored
      We only use the immediate and scale yet on ia32.
    • Matthias Braun's avatar
      be: Rewrite stack frame handling · b6787e36
      Matthias Braun authored
      This is a bigger rewrite of stack frame handling in the backend:
      - Do the stack frame type layout late, after all the spill slots have
        been created. This way we can avoid (and remove) the brittle
      - Standardize the meaning of stack entity offsets. After stack frame type
        layout they are relative to the stack pointer position at the beginning
        of the function.  It is all in one type now, no splitting into "arg",
        "between" and "stack_frame" type anymore.
      - Generalize the stack pointer simulation code to work with a single
        callback. Represent stack state as current offset and align_padding
        number. Now that callbacks can access and modify them both we do not
        need custom code in the sparc backend anymore.
      - Remove alignment specification on IncSP, only keep a ignore_align flag
        used for the last IncSP that has to remove all existing sp adjustments
        and may end up on a misaligned SP on ia32/amd64.
      - Align stack by default on ia32+amd64 backends.
  8. 01 Apr, 2016 1 commit
  9. 15 Mar, 2016 1 commit
  10. 14 Mar, 2016 1 commit
  11. 11 Mar, 2016 1 commit
  12. 28 Feb, 2016 5 commits
  13. 26 Feb, 2016 1 commit
    • Christoph Mallon's avatar
      amd64: Fix and improve matching immediates. · bb112628
      Christoph Mallon authored
      Simply directly check the magnitude of the tarval instead of converting it to a long.
      * On 64 bit hosts 32 bit operations could not match immediates with bit 31 set.
        E.g. v32 & 0xFFFFFFF0.
      * On 32 bit hosts 64 bit operations with 32 bit non-negative constants were erroneously matched and caused silent miscompilation.
        E.g. v64 & 0xFFFFFFF0.
      * On 32 bit hosts 64 bit operations with constants, which would fit into 32 bits, but have higher bits set, were not matched, because get_tarval_long() failed.
        E.g. v64 & 0xFFFFFFFFFFFFFFF0.
  14. 17 Feb, 2016 1 commit
  15. 16 Feb, 2016 1 commit
  16. 15 Feb, 2016 3 commits
  17. 14 Feb, 2016 1 commit
  18. 08 Feb, 2016 3 commits
  19. 07 Feb, 2016 4 commits