Helper class for performant LiveRange bulk updates.

Synopsis

Declared in <llvm/CodeGen/LiveInterval.h>

class LiveRangeUpdater;

Description

Calling LiveRange::addSegment() repeatedly can be expensive on large live ranges because segments after the insertion point may need to be shifted. The LiveRangeUpdater class can defer the shifting when adding many segments in order.

The LiveRange will be in an invalid state until flush() is called.

Member Functions

Name

Description

LiveRangeUpdater [constructor]

Create a LiveRangeUpdater for adding segments to lr.

~LiveRangeUpdater [destructor]

Flush any pending updates on destruction.

add

add overloads

dump

Dump the updater state to the debug stream.

flush

Flush the updater state to LR so it is valid and contains all added segments.

getDest

Get the current destination live range.

isDirty

Return true if the LR is currently in an invalid state, and flush() needs to be called.

print

Print the updater state to OS.

setDest

Select a different destination live range.

Created with MrDocs