class RegBankSelect::MBBInsertPoint

Declaration

class RegBankSelect::MBBInsertPoint : public InsertPoint { /* full declaration omitted */ };

Description

Insertion point at the beginning or end of a basic block.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:237

Inherits from: RegBankSelect::InsertPoint

Member Variables

private llvm::MachineBasicBlock& MBB
Insertion point.
private bool Beginning
Does the insertion point is at the beginning or end of MBB.

Inherited from RegBankSelect::InsertPoint:

protected WasMaterialized = false

Method Overview

Inherited from RegBankSelect::InsertPoint:

Methods

MBBInsertPoint(llvm::MachineBasicBlock& MBB,
               bool Beginning = true)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:255

Parameters

llvm::MachineBasicBlock& MBB
bool Beginning = true

bool canMaterialize() const

Description

Check whether this insertion point can be materialized. As soon as ::getPoint is called and thus, the point materialized calling this method does not make sense.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:269

uint64_t frequency(const llvm::Pass& P) const

Description

Frequency of the insertion point.\p P is used to access the various analysis that will help to get that information, like MachineBlockFrequencyInfo. If \p P does not contain enough enough to return the actual frequency, this returns 1.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:268

Parameters

const llvm::Pass& P

llvm::MachineBasicBlock& getInsertMBBImpl()

Description

Return the materialized insertion basic block. Code will be inserted into that basic block.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:252

MachineBasicBlock::iterator getPointImpl()

Description

Return the materialized insertion point. Code will be inserted before that point.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:248

bool isSplit() const

Description

Does this point involve splitting an edge or block? As soon as ::getPoint is called and thus, the point materialized, the point will not require splitting anymore, i.e., this will return false.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:267

void materialize()

Description

Materialize the insertion point. If isSplit() is true, this involves actually splitting the block or edge.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h:245