[LLVMdev] Pass Schedule Error

dag at cray.com dag at cray.com
Thu Jun 20 09:21:47 PDT 2013


Andrew Trick <atrick at apple.com> writes:

> On Jun 14, 2013, at 1:12 PM, dag at cray.com wrote:
>
>     I've been puzzling over this for a day:
>     
>     Unable to schedule 'Unnamed pass: implement Pass::getPassName()'
>     required by '<some pass>'
>     Unable to schedule pass
>     UNREACHABLE executed at llvm/lib/VMCore/PassManager.cpp:1213!
>     
>     First, why can't getPassName find the name? I have provided one in
>     the
>     usual way. Second, why is it unable to schedule the pass?
>     
>
> The INITIALIZE_PASS macro is the usual way. Is that what you mean?
>
> You would need to initialize each subclass of MyPassBase separately
> and each needs its own ID.

I figured out the problem.  I was passing the ID *value* to the
superclass instead of a reference.

Confusing error message.  :)

                              -David



More information about the llvm-dev mailing list