From 642b1f0dcebd7764792cdac8b088a6f0faf7afd8 Mon Sep 17 00:00:00 2001 From: Natalie Vock Date: Mon, 17 Feb 2025 18:42:47 +0100 Subject: [PATCH] aco/ra: Add utility to clear PhysRegInterval Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index bbb8429032b..f044df6ee5e 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -356,6 +356,10 @@ public: fill(start, rc.size(), 0xFFFFFFFF); } + void block(PhysRegInterval interval) { fill(interval.lo(), interval.size, 0xFFFFFFFF); } + + void clear(PhysRegInterval interval) { fill(interval.lo(), interval.size, 0); } + bool is_blocked(PhysReg start) const { if (regs[start] == 0xFFFFFFFF)