[llvm-dev] Prevent LLVM optimizations from erasing unused basic blocks

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 9 12:00:31 PDT 2018


Hi Gleb,

On Tue, 9 Oct 2018 at 19:32, Gleb Popov via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I should probably stop trying to fool LLVM and "do it right", but don't have any idea how.

Have you considered prefix data
(https://llvm.org/docs/LangRef.html#prefix-data)? It lets you embed
arbitrary data just before the entry-point for a function.

Cheers.

Tim.


More information about the llvm-dev mailing list