[LLVMdev] Machine Function pass
Angelos Manousaridis
amanous at softlab.ece.ntua.gr
Tue Mar 9 13:17:04 PST 2010
On Tue, Mar 09, 2010 at 12:11:04PM -0800, Dan Gohman wrote:
>
> On Mar 8, 2010, at 11:45 AM, Manousaridis Aggelos wrote:
> >
> > Is it even possible to have a MachineFunctionPass externally, or not?
>
> Probably not. MachineFunctionPasses aren't regular Passes which
> opt can meaningfully run, in its current form.
>
> > The documentation implies that is should be possible.
>
> Which documentation?
In "Writing an LLVM Pass" it does mention MachineFunctionPass, and how it has
the same behaviour as FunctionPass (no adding of blocks or functions, only new
instructions etc). Since this page refers to "writing your own pass", it
could be implied that it is possible.
Anyway, thanks for the response.
--
amanous
More information about the llvm-dev
mailing list