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>