aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorLucas Ramirez <11032120+lucas-rami@users.noreply.github.com>2025-06-04 11:23:57 +0200
committerGitHub <noreply@github.com>2025-06-04 11:23:57 +0200
commit1f20cb9829240586ea215c4681f6f402ecccbb63 (patch)
tree6f78c0fdee5763b1f2732de73ed44316147c6743 /clang/lib/CodeGen/CodeGenModule.cpp
parent89e06f851c6cf0a65f7db51774233146156c9353 (diff)
downloadllvm-1f20cb9829240586ea215c4681f6f402ecccbb63.zip
llvm-1f20cb9829240586ea215c4681f6f402ecccbb63.tar.gz
llvm-1f20cb9829240586ea215c4681f6f402ecccbb63.tar.bz2
[AMDGPU] Simplify `GCNRegPressure::RegKind` (NFC) (#142682)
This NFC simplifies the `GCNRegPressure::RegKind` enum so that instead of containing a pair of values for each type of register (one for non-tuple registers and one for tuple registers of that type) it only contains one value representing all registers of that type. The `GCNRegPressure::Value` array is still sized as before, though all elements corresponding to tuple-kinds now start after all elements corresponding to non-tuple-kinds instead of the two being interleaved. This allows to simplify the `GCNRegPressure::inc` logic, eliminating the switch entirely.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions