[LLVMdev] Need guidance regarding MachineFunctionPass implementation

David Peixotto dpeixott at codeaurora.org
Wed Sep 17 14:21:13 PDT 2014


Hi Sachin,

 

You could check the code in lib/Target/ARM/ARMOptimizeBarriersPass.cpp for an example of a MachineFunctionPass that runs very late. Look in lib/Target/ARM/ARMTargetMachine.cpp to see where it is added to the pass pipeline.

 

-David

 

-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

 

 

From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of sachin arora
Sent: Wednesday, September 17, 2014 1:45 PM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Need guidance regarding MachineFunctionPass implementation

 

Hello all,

 

I need to modify llvm bytecode / native code just before it is emitted i.e. after all the regular operations and optimizations are done. I was told that this can be achieved by implementing a MachineFunctionPass. 

I searched the internet for some tutorials or some example MachineFunctionPass but found nothing. Kindly point some links, or anything that may help. Thank you.

 

Regards,

Sachin

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


More information about the llvm-dev mailing list