1. 04 Apr, 2016 1 commit
    • 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
        frame_alloc_area().
      - 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.
      b6787e36
  2. 01 Apr, 2016 1 commit
  3. 15 Mar, 2016 1 commit
  4. 10 Mar, 2016 1 commit
  5. 26 Feb, 2016 2 commits
  6. 15 Feb, 2016 2 commits
  7. 14 Feb, 2016 1 commit
  8. 08 Feb, 2016 1 commit
  9. 01 Feb, 2016 1 commit
  10. 31 Jan, 2016 2 commits
  11. 30 Jan, 2016 1 commit
  12. 26 Jan, 2016 1 commit
  13. 18 Jan, 2016 1 commit
  14. 10 Jan, 2016 1 commit
  15. 30 Dec, 2015 1 commit
  16. 16 Dec, 2015 1 commit
    • Matthias Braun's avatar
      ia32: Add keep edge to cached nodes · 92663003
      Matthias Braun authored
      If the cached nodes like NoReg_GP, ... had no keep edge and no users
      then irgwalks could miss them leading for the iredges code to miss
      initializing these nodes.
      
      This fixes bug 161.
      92663003
  17. 14 Dec, 2015 1 commit
  18. 03 Dec, 2015 1 commit
  19. 28 Sep, 2015 1 commit
  20. 20 Sep, 2015 6 commits
  21. 17 Sep, 2015 1 commit
  22. 15 Sep, 2015 1 commit
  23. 10 Sep, 2015 1 commit
  24. 30 Aug, 2015 3 commits
  25. 29 Aug, 2015 1 commit
  26. 14 Aug, 2015 1 commit
    • Andreas Fried's avatar
      Implement vararg handling in a more portable way (for now only for IA32). · f833aa25
      Andreas Fried authored
      This adds two builtin kinds, ir_bk_va_start and ir_bk_va_arg. va_arg Builtins
      are lowered in the lower_builtins pass with a function provided by the backend,
      whereby most architectures can use be_default_lower_va_args. va_start Builtins
      are lowered in the backend.
      
      Note: This commit breaks all backends except for IA32. SPARC and AMD64 are
      implemented in later commits. The ARM backend previously miscompiled variadic
      functions, and will now throw a proper error.
      f833aa25
  27. 09 Aug, 2015 1 commit
    • Christoph Mallon's avatar
      be: Reintroduce be_Start. · 36de1849
      Christoph Mallon authored
      All backends have similar empty Start nodes, which just provide registers.
      So having one generic backend Start node to share some infrastructure is sensible.
      36de1849
  28. 05 Aug, 2015 1 commit
  29. 04 Aug, 2015 1 commit
  30. 28 Jul, 2015 1 commit
    • Christoph Mallon's avatar
      be: Add and use be_new_Proj(). · 9a6b8525
      Christoph Mallon authored
      It is like new_r_Proj(), but the mode is determined automatically from the out requirement of the predecessor.
      This probably resolves some mode mismatches in untested code paths -- AMD64 backend and SPARC hard float, I'm looking at you!
      9a6b8525