[LLVMdev] idf_iterator and MachineFunctions
Gordon Henriksen
gordonhenriksen at mac.com
Sun Mar 18 07:02:13 PDT 2007
On 2007-03-18, at 09:54, Gordon Henriksen wrote:
> On 2007-03-18, at 03:22, Lang Hames wrote:
>
>> Is there a recommended way to find the final block (the one with
>> successors={}) in a machine function?
>
> This isn't a property of the CFG in the general case. However, the
> UnifyFunctionExitNodes transformation/analysis provides it. From
> getAnalysis<UnifyFunctionExitNodes>().getReturnBlock(), you can
> visit the basic block predecessors recursively.
Oh, MachineBB. Sorry; don't have an answer for you.
— Gordon
More information about the llvm-dev
mailing list