[LLVMdev] Machine Function pass

Dan Gohman gohman at apple.com
Tue Mar 9 17:33:11 PST 2010


On Mar 9, 2010, at 1:17 PM, Angelos Manousaridis wrote:

> 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.

The documentation to make MachineFunctionPass is now more explicit about
its special needs.

Thanks,

Dan





More information about the llvm-dev mailing list