What is the correct way to register/run a machine function pass, so
that it can be dynamically loaded?
Thanks,
Arushi
What is the correct way to register/run a machine function pass, so
that it can be dynamically loaded?
Thanks,
Arushi
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.
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.
Arushi
I tried
llc -load /localhome/aggarwa4/llvm27/llvm-obj/projects/poolalloc/Debug/lib/libCodegen.so
--helpBut 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.
This is with llvm 2.7.
I looked at CodeGen/IfConverter, and it seemed to be registered the same way.
Thanks,
Arushi