[llvm-dev] Conflicts with custom passes

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 28 02:39:58 PDT 2019


Hi Kihong,

On Fri, 28 Jun 2019 at 05:58, Kihong Heo via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> - Is there any guide line to write a custom pass to avoid such a conflict?

The most likely cause for the error is that the IR you're generating
is somehow invalid, and causing issues later.

It also looks like you might have an LLVM built without assertions, so
if that's the case you should fix that (e.g. CMake a debug build with
-DCMAKE_BUILD_TYPE=Debug). That might cause an error immediately when
you create the IR, or at should at least give more information about
why SCCP is failing.

> - Is there any existing framework to print out dynamic path in LLVM-IR format?

Not as far as I know.

Cheers.

Tim.


More information about the llvm-dev mailing list