Should this pass be added to C bindings? It looks like simply adding it to the bindings would not be too hard, not sure what else should be taken into consideration. I’d be happy to do the work.
We could add a C binding for it, but those C bindings are for the legacy pass manager which is in the process of being removed (at least for the optimization pipeline, which loop unswitching is part of). Consider using the new pass manager C bindings (llvm/include/llvm-c/Transforms/PassBuilder.h).