nv50/ir: add lowering helper
authorKarol Herbst <kherbst@redhat.com>
Wed, 3 Jan 2018 14:31:15 +0000 (15:31 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sun, 17 Mar 2019 09:33:28 +0000 (10:33 +0100)
commita211c92c4bf0582e5988a38d85cd6ef273e926da
treeaa801f5d040225077aaf986aa64430e046836684
parenta0393010c4e654e13c62cb2f6f9eea066db19bc5
nv50/ir: add lowering helper

if we start supporting multiple input IRs we might want to move lowering code
into a common place and keep the initial translation simplier.

This will also allows us to react on ISA changes more easily.

v5: also handle SAT
v6: rename type variables
    fixed lowering of NEG
    add lowering of NOT
v8: don't require C++11 features

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/Makefile.sources
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_helper.cpp [new file with mode: 0644]
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_helper.h [new file with mode: 0644]
src/gallium/drivers/nouveau/meson.build