Rematerializer listener that can recreate registers and roll back remats.

Synopsis

Declared in <llvm/CodeGen/Rematerializer.h>

class Rollbacker
    : public Rematerializer::Listener

Description

Rematerializer listener with the ability to re‐create deleted registers and rollback rematerializations. Starts recording register deletions and rematerializations as soon as it is attached to the rematerializer.

Base Classes

Name

Description

Rematerializer::Listener

Rematerializer listener.

Type Aliases

Name

Description

RegisterIdx

Index type for rematerializable registers.

Member Functions

Name

Description

Rollbacker [constructor]

Constructs a rollbacker that is not yet recording events.

rematerializerNoteMIWillBeDeleted [virtual]

Records that dead instruction MI is about to be deleted.

rematerializerNoteRegCreated [virtual]

Records creation of rematerialized register RegIdx.

rematerializerNoteRegWillBeDeleted [virtual]

Records that register RegIdx is about to be deleted.

rollback

Re‐creates deleted registers and rolls back recorded rematerializations.

Created with MrDocs