[LLVMdev] Register Machine Pass

Ryan Taylor ryta1203 at gmail.com
Mon Jul 14 08:31:13 PDT 2014


Where is the documentation about registering a machine pass? I'm unable to
find it.

I have built a machine function pass similar to the one found in
HexagonHardwareLoops.cpp. So I have generated a machine pass.cpp file,
modified 'Target'.h and 'Target'TargetMachine.cpp (to add pass via
addPass() in the addPreRegAlloc()). All this builds/compiles fine.

When running llc the pass does not get executed.

I seem to be missing some steps? Potentially registration of the machine
pass?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140714/ef1fed5f/attachment.html>


More information about the llvm-dev mailing list