[llvm-dev] get basic blocks inside a machine code loop

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 23 12:35:52 PST 2015


On 11/23/2015 2:29 PM, fateme Hoseini via llvm-dev wrote:
> Hello everyone,
> I am trying to write a pass which works on machine instructions. I need
> to get all basic blocks in the loop. I could't find any function like
> getblocks for machineloop.

MachineLoop is a subclass of LoopBase, which is a template and defines 
getBlocks for the specified block type.

-Krzysztof


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list