Skip to content
Snippets Groups Projects
  1. Sep 17, 2019
  2. Sep 16, 2019
    • Xavier Leroy's avatar
      Updates in preparation for release 3.6 · 1b2e0534
      Xavier Leroy authored
      1b2e0534
    • Xavier Leroy's avatar
      -dclight output: use nicer names for temporary variables · 8ac255f2
      Xavier Leroy authored
      The temporary variables introduced by SimplLocals reuse the same
      integer identifiers as the local variables they come from.  This commit
      ensures that these variables are printed as "$var", where "var"
      is the original variable name, instead of "$NNN" as before.
      
      The "$NNN" form is retained for temporary variables that do not
      correspond to a source-level local variable, such as the temporary
      variables introduced by SimplExpr.
      
      This commit should make no difference for "ccomp -dclight", because
      the Clight that is printed is the Clight version 1 produced by
      SimplExpr, where every temporary is fresh and does not correspond
      to a source-level local variable.
      
      This commit does change the output of "clightgen -dclight", because
      the Clight that is printed is the Clight version 2 produced by
      SimplLocals.  The printed Clight is much more legible thanks to
      the more meaningful temporary variable names.
      8ac255f2
    • Xavier Leroy's avatar
      clightgen -dclight: print function parameters correctly · 3d25d06e
      Xavier Leroy authored
      The Clight output of clightgen is Clight version 2, after SimplLocals
      conversion, where function parameters are temporary variables, not
      variables.
      
      This commit makes sure the function parameters are printed as
      temporary variables and not as variables.  In passing, it
      generalizes the Clight pretty-printer so that it can print
      both Clight version 1 and Clight version 2.
      
      Closes: #314
      3d25d06e
  3. Sep 12, 2019
    • Bernhard Schommer's avatar
      Reworked json export. · a7c8e4f4
      Bernhard Schommer authored
      The json export prints formatted json, which takes a lot of
      additional time, however the result is only consumed by other tools
      and not meant for human reading.
      
      This commit implements several small changes in order to speedup
      the json export:
      
      * Removal of usage of the Format Module
      * Replacing `fprintf` calls by calls to function that print
        directly, such as `output_string`, etc.
      * Replacing list of all instruction names by a set of all
        instructions
      a7c8e4f4
  4. Sep 11, 2019
  5. Sep 05, 2019
  6. Sep 02, 2019
  7. Aug 31, 2019
  8. Aug 23, 2019
  9. Aug 17, 2019
  10. Aug 13, 2019
  11. Aug 12, 2019
    • Bernhard Schommer's avatar
      bswap builtins: give semantics to them, support bswap64 on all targets · 040d9c67
      Bernhard Schommer authored
      * Added semantic for byte swap builtins
      
      The `__builtin_bswap`, `__builtin_bswap16`,  `__builtin_bswap32`, `__builtin_bswap64` builtin function are now standard builtin functions with a defined semantics.
      
      The semantics  is given in terms of the decode/encode functions used for the memory model.
      
      * Added bswap64 expansion to PowerPC 32 bits.
      
      * Added bswap64 expansion for ARM.
      040d9c67
  12. Aug 08, 2019
  13. Aug 07, 2019
  14. Aug 06, 2019
    • Xavier Leroy's avatar
      x86: wrong expansion of __builtin_fmadd et al · 2ce5e496
      Xavier Leroy authored
      There was a misunderstanding on the asm syntax for 3-operand instructions
      such as vfmadd132: when the Intel manual reads
           vfmadd132 res, arg2, arg3
      the corresponding GNU asm syntax is
           vfmadd132 arg3, arg2, res
      but not
           vfmadd132 arg2, arg3, res
      
      Closes: #188
      2ce5e496
  15. Aug 05, 2019
Loading