Marking Unsafe Rust Blocks for LLVM-IR

I'm working on a project that requires isolating unsafe blocks. I'm wondering whether there's an easy way I can annotate unsafe blocks, or instructions in unsafe blocks and pass that information to llvm-ir, either through debug-info or as metadata. I have looked at Help: annotate unsafe code in LLVM IR - help - The Rust Programming Language Forum, which provides some insight but it's still not capturing all unsafe blocks. Wondering whether anyone has done this before.

1 Like