[LLVMdev] Docs question: legality of inspecting other functions in a function pass

Stephen Lin swlin at post.harvard.edu
Fri Jul 5 08:14:52 PDT 2013


> both dragonegg and clang (AFAIK) run some function passes on each function
> in turn as they are turned into LLVM IR.  If such a function pass tried to
> inspect other functions then they won't be able to see all function bodies
> because they haven't all been output yet.  And which functions do have
> bodies
> available to be inspected depends on the order in which clang decides to
> output functions, so the results of running the pass would depend on that
> order.
>
> Ciao, Duncan.

OK, so to be clear, the docs are incomplete and need to be updated?
Just trying to get explicit confirmation before I patch this...

Stephen



More information about the llvm-dev mailing list