openfimg: Change prefix of IR related functions to of_ir_

The code already diverged a lot from original Freedreno code and it is
going to diverge much more in near future, so there is no more reason to
confuse indexing tools anymore. Just change the prefix from ir2_ to
of_ir_.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
[WiP] gallium: Work in progress on OpenFIMG driver

Changes:
 - heavy clean-up in openfimg_program and openfimg_compiler,
 - moved hashing functions to openfimg_util,
 - replaced all identical cso bind functions with OF_CSO_BIND() macro,
 - improved temporary register allocation,
 - reworked shader override to hash TGSI directly,
 - introduced of_hash_oneshot() to hash contiguous block of data.
openfimg: Move compiler-related files to a subdirectory

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Compiler clean-up

Several clean-up related changes:
 - use rules-ng-ng to generate shader-specific definitions,
 - replace uses of bitfields with autogenerated helpers,
 - remove more dead code,
 - stylistic fixes.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Compiler refactoring

Complete redesign of IR structures and APIs to prepare grounds for
SSA'ization and optimization/validation passes.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Further work on shader compiler

- cleaned up code generator a bit more,
- extended IR with further functionality,
- implemented most of code generation,
- fixed few typos in various definitions.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: House keeping

- removed emulation of unused TGSI opcodes,
- added stubs for remaining required TGSI opcodes,
- optimized emulation of DP2,
- added predicate and address registers to supported destinations,
- added separate definitions for stencil test mode.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Various fixes

Fixes of issues found while experimenting with shaders.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Implement finding of dominator trees

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Fix various compiler warnings

Extra checks have been triggered by -pedantic flag.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Minor clean-ups of code generator

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Implement few more TGSI opcodes

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>