[llvm-dev] Reg: Adding Intrinsic at start of every function

Sai Venkata Krishnan V via llvm-dev llvm-dev at lists.llvm.org
Mon May 3 04:22:38 PDT 2021


Hello Everyone
   I have create a new intrinsic in RISCV and I am trying to insert it at
the start of every function based on Command-Line argument which determines
the list of functions to omit. I expect this intrinsic to be inserted at
the start of function as first instruction. Is this possible with a normal
Module pass using opt command? Or, should I look into MachineFunction pass?
Please guide me in this.

Thanking you
Sai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210503/00c0869f/attachment.html>


More information about the llvm-dev mailing list