Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11632>
void dump();
void dump_cfg();
+
+ /**
+ * Propagate bblock_t::end_ip_delta data through the CFG.
+ */
+ inline void adjust_block_ips();
+
#endif
const struct backend_shader *s;
void *mem_ctx;
__scan_inst = (__type *)__scan_inst->prev)
#ifdef __cplusplus
+inline void
+cfg_t::adjust_block_ips()
+{
+ int delta = 0;
+
+ foreach_block(block, this) {
+ block->start_ip += delta;
+ block->end_ip += delta;
+
+ delta += block->end_ip_delta;
+
+ block->end_ip_delta = 0;
+ }
+}
+
namespace brw {
/**
* Immediate dominator tree analysis of a shader.