章明 via llvm-dev
2017-Aug-11  08:41 UTC
[llvm-dev] Entry and Shared Machine Basic Blocks of a Machine Function
Hi, LLVM developers!
I have heard that at the native assembly level, a function may have more than
one entry points, and different function may share common basic blocks. What is
the case for LLVM MachineFunction's? In particular, I would like to ask the
following questions:
1) If the code of a MachineFunction may be entered at more than one point, does
this mean that the MachineFunction itself has more than one entry (This sounds
rather bizarre to me.), or that its code contains the entry of another
MachineFunction?
2) Given a MachineFunction, is it possible to identify its entry
MachineBasicBlock('s)? Is the entry MachineBasicBlock always the first
MachineBasicBlock of the MachineFunction?
3) If LLVM allows more than one MachineFunction to share common
MachineBasicBlock's, is it possible for MachineFunction's from different
modules to share common MachineBasicBlock's?
Thank you!
Ming Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20170811/8e9e75f7/attachment.html>