[llvm-dev] How to create and insert a call MachineInstr?

Will Lester via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 13 01:50:43 PDT 2018


Hi all,
I am working on a project which needs to create and insert a MachineInstr
which calls a function. But I don't know how to build it. The function has
been declared in IR.
I have used BuildMI to build a MachineInstr. But it seems that a call
MachineInstr only has one parameter which is a
register(%physreg44<imp-use>?). Therefore how can I set the callee function
and the arguments of the function?
Thanks a lot,
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180413/e088cb06/attachment.html>


More information about the llvm-dev mailing list