diff options
author | Jason Ekstrand <[email protected]> | 2018-11-12 15:58:18 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-11-15 19:59:27 -0600 |
commit | b77d68b78e2bf623bf9ba3f28945cf2080185a9d (patch) | |
tree | 129ec21f92efd1dda3a795bfa5892318fff2c702 /src/compiler/nir/nir_builtin_builder.c | |
parent | 1f29f4db1e867357a119c0c7c34fb54dc27fb682 (diff) |
nir/builder: Add iadd_imm and imul_imm helpers
The pattern of adding or multiplying an integer by an immediate is
fairly common especially in deref chain handling. This adds a helper
for it and uses it a few places. The advantage to the helper is that
it automatically handles bit sizes for you.
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_builtin_builder.c')
0 files changed, 0 insertions, 0 deletions