llvm-project
2ee12f19 - AMDGPU: Use RegClassByHwMode to manage GWS operand special case (#169373)

Commit
66 days ago
AMDGPU: Use RegClassByHwMode to manage GWS operand special case (#169373) On targets that require even aligned 64-bit VGPRs, GWS operands require even alignment of a 32-bit operand. Previously we had a hacky post-processing which added an implicit operand to try to manage the constraint. This would require special casing in other passes to avoid breaking the operand constraint. This moves the handling into the instruction definition, so other passes no longer need to consider this edge case. MC still does need to special case this, to print/parse as a 32-bit register. This also still ends up net less work than introducing even aligned 32-bit register classes. This also should be applied to the image special case.
Author
Parents
Loading