[LLVMdev] Passes dependencies?

Renato Golin rengolin at systemcall.org
Mon Nov 16 11:43:18 PST 2009


2009/11/16 Devang Patel <devang.patel at gmail.com>:
>    A pass can request these requirements explicitly and pass manager
> will sequence appropriate passes to meet the requirement.

So if two different passes request a third one independently, that
third is going to run twice?


>    In such cases, these passes should be added in pass queue by the
> driver (clang, or opt, or llvm-gcc) before your pass. However, your
> pass should be able to gracefully handle (and skip code) if the
> incoming IR is not in suitable form.

This way, it's the caller responsibility to assure consistency, right?
It could be possible that some required passes are not run if the
caller doesn't do it properly.

cheers,
--renato

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm




More information about the llvm-dev mailing list