[LLVMdev] Passes dependencies?
rengolin at systemcall.org
Mon Nov 16 13:43:18 CST 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.
Reclaim your digital rights, eliminate DRM, learn more at
More information about the LLVMdev