[amdgpu][lds] Use a consistent order of fields in generated structs
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 9 Nov 2022 15:57:38 +0000 (15:57 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 9 Nov 2022 15:57:41 +0000 (15:57 +0000)
commite9a2aa6355968863e95667f73ba95a785ea9d8a8
tree4047e491ceba912627394a8a8dd4199361e36b47
parenta7a0b825bd9630ad9edb073a9fc853059cf7f1c7
[amdgpu][lds] Use a consistent order of fields in generated structs

Avoids spurious and confusing test failures on changing implementation.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D136598
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
llvm/test/CodeGen/AMDGPU/lower-module-lds-constantexpr.ll