nir: add a pass to lower some double operations
authorConnor Abbott <connor.w.abbott@intel.com>
Fri, 31 Jul 2015 18:57:48 +0000 (11:57 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 28 Apr 2016 09:58:13 +0000 (11:58 +0200)
commit2ea3649c63f39f07b9cebda1ef0569b7347ada93
tree7f920fa1a6e9967d4d556ca3ffabfe50f95f0845
parent2cf3b28884047f1cdef76542355bd2a4dd653fde
nir: add a pass to lower some double operations

v2: Move to compiler/nir (Iago)
v3: Use nir_imm_int() to load the constants (Sam)
v4 (Sam):
  - Undo line-wrap (Jason).
  - Fix comment (Jason).
  - Improve generated code for get_signed_inf() function (Connor).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_double_ops.c [new file with mode: 0644]