class MachineLoop

Declaration

class MachineLoop : public LoopBase { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:45

Inherits from: LoopBase

Method Overview

Methods

void dump() const

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:70

llvm::MachineBasicBlock* findLoopControlBlock()

Description

Find the block that contains the loop control variable and the loop test. This will return the latch block if it's one of the exiting blocks. Otherwise, return the exiting block. Return 'null' when multiple exiting blocks are present.

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:61

llvm::MachineBasicBlock* getBottomBlock()

Description

Return the "bottom" block in the loop, which is the last block in the linear layout, ignoring any parts of the loop not contiguous with the part that contains the header.

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:55

llvm::DebugLoc getStartLoc() const

Description

Return the debug location of the start of this loop. This looks for a BB terminating instruction with a known debug location by looking at the preheader and header blocks. If it cannot find a terminating instruction with location information, it returns an unknown location.

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:68

llvm::MachineBasicBlock* getTopBlock()

Description

Return the "top" block in the loop, which is the first block in the linear layout, ignoring any parts of the loop not contiguous with the part that contains the header.

Declared at: llvm/include/llvm/CodeGen/MachineLoopInfo.h:50