GPUOcelot
Classes | Public Member Functions | Public Attributes

transforms::LinearScanRegisterAllocationPass Class Reference

Implements the linear scan register allocation algorithm. More...

#include <LinearScanRegisterAllocationPass.h>

Inheritance diagram for transforms::LinearScanRegisterAllocationPass:
Inheritance graph
[legend]
Collaboration diagram for transforms::LinearScanRegisterAllocationPass:
Collaboration graph
[legend]

List of all members.

Classes

class  CoalescedRegister
 A coalesced register represents aliased SSA registers.
class  Interval
 The range of instructios for which a register is alive.

Public Member Functions

 LinearScanRegisterAllocationPass (unsigned int regs=8)
 Constructor on the number of registers to allocate.
void initialize (const ir::Module &m)
 Initialize the pass using a specific module.
void runOnKernel (ir::IRKernel &k)
 Run the pass on a specific kernel in the module.
void finalize ()
 Finalize the pass.

Public Attributes

RegisterId registers
 This is the total number of registers.

Detailed Description

Implements the linear scan register allocation algorithm.


Constructor & Destructor Documentation

transforms::LinearScanRegisterAllocationPass::LinearScanRegisterAllocationPass ( unsigned int  regs = 8)

Constructor on the number of registers to allocate.


Member Function Documentation

void transforms::LinearScanRegisterAllocationPass::finalize ( ) [virtual]

Finalize the pass.

Implements transforms::KernelPass.

void transforms::LinearScanRegisterAllocationPass::initialize ( const ir::Module m) [virtual]

Initialize the pass using a specific module.

Implements transforms::KernelPass.

void transforms::LinearScanRegisterAllocationPass::runOnKernel ( ir::IRKernel k) [virtual]

Run the pass on a specific kernel in the module.

Implements transforms::KernelPass.


Member Data Documentation

This is the total number of registers.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines