I need to debug the generation from SIL to LLVM-IR (specifically,
IRGenSIL.cpp), however, debugging
swiftc doesn't work (I'm assuming because the executable that generates the IR is launched as a subprocess).
I tried emiting SIL and debugging
sil-llvm-gen. This works, but it looks like it does some extra transformations on SIL before emitting the LLVM-IR, which makes the overall LLVM-IR different from what I get from running just
Also, I'm on Linux, and
--waitfor isn't implemented on LLDB yet.
Any help would be appreciated!