[LLVMdev] Machine Function Pass

John Criswell criswell at illinois.edu
Thu May 12 09:58:04 PDT 2011


On 5/12/11 11:46 AM, Arushi Aggarwal wrote:
> I tried
> llc -load /localhome/aggarwa4/llvm27/llvm-obj/projects/poolalloc/Debug/lib/libCodegen.so
> --help
>
> But this does not show my pass. It says it is an unknown command line argument.

I'm assuming you've looked at other MachineFunctionPass'es and have 
registered yours in the same way that they do.  I don't think they're 
registered like regular LLVM passes, but I don't recall.

-- John T.

> Arushi
>
> On Thu, May 12, 2011 at 11:21 AM, John Criswell<criswell at illinois.edu>  wrote:
>> On 5/12/11 11:17 AM, Arushi Aggarwal wrote:
>>> What is the correct way to register/run a machine function pass, so
>>> that it can be dynamically loaded?
>> Machine function passes are loaded into llc to be used for code generation,
>> from the looks of it.
>>
>> Does this answer your question?
>>
>> -- John T.
>>
>>> Thanks,
>>> Arushi
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>




More information about the llvm-dev mailing list