diff options
author | Jason Ekstrand <[email protected]> | 2017-02-23 13:56:15 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-01 17:00:20 -0800 |
commit | 074f5ba0b56b12ddaca81eac3d9ed19da7054297 (patch) | |
tree | a6f1236ecaa38a0d58d04908e4ef92f6098ce535 /src/compiler/Makefile.sources | |
parent | 86e749b1ad21fa8d8abea57b9b0ffa679166c472 (diff) |
nir: Add a simple int64 lowering pass
The algorithms used by this pass, especially for division, are heavily
based on the work Ian Romanick did for the similar int64 lowering pass
in the GLSL compiler.
v2: Properly handle vectors
v3: Get rid of log2_denom stuff. Since we're using bcsel, we do all the
calculations anyway and this is just extra instructions.
v4:
- Add back in the log2_denom stuff since it's needed for ensuring that
the shifts don't overflow.
- Rework the looping part of the pass to be easier to expand.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/Makefile.sources')
-rw-r--r-- | src/compiler/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index 643a0181d8c..2455d4eb5ae 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -221,6 +221,7 @@ NIR_FILES = \ nir/nir_lower_locals_to_regs.c \ nir/nir_lower_idiv.c \ nir/nir_lower_indirect_derefs.c \ + nir/nir_lower_int64.c \ nir/nir_lower_io.c \ nir/nir_lower_io_to_temporaries.c \ nir/nir_lower_io_to_scalar.c \ |