How to create a call to a MachineFunction

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.

Hi Andrei,

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

Cheers,
-Quentin