I am probably missing something: Why is WASM required here? Can't these analysis done directly on LLVM IR?
The benefits of wasm over LLVM IR is that wasm has already done the work to define the sandboxed format and build the tooling to compile to it. Wasm is also almost as fast as running normally. (Wasm is also portable and lacks undefined behavior, although for this use case those might matter less.)
See the MinSFI section here which compares it directly to wasm for sandboxing:
https://kripken.github.io/blog/wasm/2020/07/27/wasmboxc.html
And the original MinSFI presentation is here:
https://docs.google.com/presentation/d/1RD3bxsBfTZOIfrlq7HzG...
What's great, though, is that they are achieving this with tools that are already available.