simon-camp wrote: We can add a switch op, but it shouldn't be a terminator in my opinion. So we would be able to lower `scf.index_switch` to it, but we couldn't use it for `cf.switch` (as of now). https://github.com/llvm/llvm-project/pull/101478