nir/builder: Generate the alu helpers directly in python
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Apr 2016 19:26:07 +0000 (12:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 May 2016 20:34:38 +0000 (13:34 -0700)
commitfc58cb543fe2430576216680c4f6a55ec22b937e
tree876f8c72702f66010f44b44f64fdfa343edc68ed
parenta0e6e5f21ffea8acb9500ef699b204c557214b75
nir/builder: Generate the alu helpers directly in python

There's no reason for having a macro *and* a python generator.  We can
easily just do the whole thing in python.  This has the advantage that we
are no longer definining ALU# macros which conflict with the ones in
brw_fs_builder.h.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_builder_opcodes_h.py