Skip to content

Instantly share code, notes, and snippets.

@karolherbst
Created February 20, 2024 14:39
Show Gist options
  • Save karolherbst/b11be6e89f6d6c753a4ca5ec57cbcdc6 to your computer and use it in GitHub Desktop.
Save karolherbst/b11be6e89f6d6c753a4ca5ec57cbcdc6 to your computer and use it in GitHub Desktop.
decl_var INTERP_MODE_NONE none struct.GFX12_3DSTATE_VERTEX_BUFFERS v
64 %5 = deref_var &v (function_temp struct.GFX12_3DSTATE_VERTEX_BUFFERS)
32 %185 = ...
64 %26 = deref_struct &%5->field0 (function_temp uint) // &v.field0
64 %27 = deref_cast (uint *)%26 (function_temp uint) (ptr_stride=0, align_mul=4, align_offset=0)
@store_deref (%27, %185) (wrmask=x, access=none)
32 %48 = @load_deref (%27) (access=none)
64 %49 = u2u64 %48
nir_opt_copy_prop_vars:
32 %185 = ...
64 %49 = u2u64 %185
decl_var INTERP_MODE_NONE none struct.GFX12_3DSTATE_VERTEX_BUFFERS v
64 %5 = deref_var &v (function_temp struct.GFX12_3DSTATE_VERTEX_BUFFERS)
32 %185 = ...
64 %26 = deref_struct &%5->field0 (function_temp uint) // &v.field0
64 %27 = deref_cast (uint *)%26 (function_temp uint) (ptr_stride=0, align_mul=4, align_offset=0)
@store_deref (%27, %185) (wrmask=x, access=none)
64 %37 = deref_cast (uint *)%5 (function_temp uint) (ptr_stride=0, align_mul=0, align_offset=0)
32 %48 = @load_deref (%37) (access=none)
64 %49 = u2u64 %48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment