struct OutlinedFunction

Declaration

struct OutlinedFunction { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:163

Member Variables

public int Candidates
public llvm::MachineFunction* MF = nullptr
The actual outlined function created. This is initialized after we go through and create the actual function.
public unsigned int SequenceSize = 0
Represents the size of a sequence in bytes. (Some instructions vary widely in size, so just counting the instructions isn't very useful.)
public unsigned int FrameOverhead = 0
Target-defined overhead of constructing a frame for this function.
public unsigned int FrameConstructionID = 0
Target-defined identifier for constructing a frame for this function.

Method Overview

Methods

OutlinedFunction(int& Candidates,
                 unsigned int SequenceSize,
                 unsigned int FrameOverhead,
                 unsigned int FrameConstructionID)

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:211

Parameters

int& Candidates
unsigned int SequenceSize
unsigned int FrameOverhead
unsigned int FrameConstructionID

OutlinedFunction()

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:220

unsigned int getBenefit() const

Description

Return the number of instructions that would be saved by outlining this function.

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:201

unsigned int getNotOutlinedCost() const

Description

Return the size in bytes of the unoutlined sequences.

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:195

unsigned int getNumInstrs() const

Description

Return the number of instructions in this sequence.

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:209

unsigned int getOccurrenceCount() const

Description

Return the number of candidates for this \p OutlinedFunction.

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:183

unsigned int getOutliningCost() const

Description

Return the number of bytes it would take to outline this function.

Declared at: llvm/include/llvm/CodeGen/MachineOutliner.h:187