Sai Venkata Krishnan V via llvm-dev
2021-May-04 01:00 UTC
[llvm-dev] Reg: Adding Custom Intrinsic at start of function
Hello Everyone I have created 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, i.e. even before the function prologue. Is this possible with a normal Module/Function 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/20210504/382ed82f/attachment-0001.html>