https://github.com/arsenm commented: Lots of unrelated commits, but yes the existing API is clumsy: https://github.com/llvm/llvm-project/blob/0b0874755d4f339ae3ef6a43421405ebe9d645f3/llvm/lib/Target/AMDGPU/SIISelLowering.cpp#L16146 https://github.com/llvm/llvm-project/pull/109484