AMDGPU: Use static constexpr instead of static const
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 Mar 2023 22:50:34 +0000 (18:50 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Fri, 3 Mar 2023 22:50:34 +0000 (18:50 -0400)
commitce3d93e4be0aa7d30360ad863456b031a1e72916
tree2edab9aa50afa8477504f3c06bbddf63204606e9
parent18fa83ed366930bc91a8b0f4f96e87536667c848
AMDGPU: Use static constexpr instead of static const

Not sure why this was broken, but I was seeing this linker error:

ld64.lld: error: undefined symbol: (anonymous namespace)::AMDGPUInsertDelayAlu::DelayInfo::SALU_CYCLES_MAX
>>> referenced by AMDGPUInsertDelayAlu.cpp:129 (/Users/matt/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp:129)
llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp