[llvm-dev] How to create a call to a MachineFunction

Quentin Colombet via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 1 09:58:01 PST 2017


Hi Andrei,

Please have a look to the MachineOutliner. It creates machine function calls extensively.

Cheers,
-Quentin

> On Dec 1, 2017, at 3:54 AM, Grischenko, Andrei L via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hello.
> 
> Having two MachineFunctions (say MachineFunction A and MachineFunction "Const Name") in code-gen I'm looking for possibility to generate a call of "Const Name" machine function from machine function A being inside machine function A.
> Note that "Const Name" means that I know the exact name of called machine function.
> Looking through code-gens sources I was not able to find an example. So I assume that there is not such functionality, but may be I'm wrong.
> So if you know how to do that, please let me know.
> 
> Thanks in advance,
> Andrei.
> 
> --------------------------------------------------------------------
> 
> Intel Technology Poland sp. z o.o.
> ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
> 
> Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
> przegladanie lub rozpowszechnianie jest zabronione.
> This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
> others is strictly prohibited.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list