LLVM  3.7.0
Public Types | Public Member Functions | List of all members
llvm::CloningDirector Class Referenceabstract

A helper class used with CloneAndPruneIntoFromInst to change the default behavior while instructions are being cloned. More...

#include <Cloning.h>

Public Types

enum  CloningAction { CloneInstruction, SkipInstruction, StopCloningBB, CloneSuccessors }
 This enumeration describes the way CloneAndPruneIntoFromInst should proceed after the CloningDirector has examined an instruction. More...
 

Public Member Functions

virtual ~CloningDirector ()
 
virtual CloningAction handleInstruction (ValueToValueMapTy &VMap, const Instruction *Inst, BasicBlock *NewBB)=0
 Subclasses must override this function to customize cloning behavior. More...
 
virtual ValueMapTypeRemappergetTypeRemapper ()
 
virtual ValueMaterializergetValueMaterializer ()
 

Detailed Description

A helper class used with CloneAndPruneIntoFromInst to change the default behavior while instructions are being cloned.

Definition at line 138 of file Cloning.h.

Member Enumeration Documentation

This enumeration describes the way CloneAndPruneIntoFromInst should proceed after the CloningDirector has examined an instruction.

Enumerator
CloneInstruction 

Continue cloning the instruction (default behavior).

Skip this instruction but continue cloning the current basic block.

SkipInstruction 

Skip this instruction and stop cloning the current basic block.

StopCloningBB 

Don't clone the terminator but clone the current block's successors.

CloneSuccessors 

Definition at line 142 of file Cloning.h.

Constructor & Destructor Documentation

virtual llvm::CloningDirector::~CloningDirector ( )
inlinevirtual

Definition at line 153 of file Cloning.h.

Member Function Documentation

virtual ValueMapTypeRemapper* llvm::CloningDirector::getTypeRemapper ( )
inlinevirtual

Definition at line 160 of file Cloning.h.

Referenced by llvm::CloneAndPruneIntoFromInst().

virtual ValueMaterializer* llvm::CloningDirector::getValueMaterializer ( )
inlinevirtual

Definition at line 161 of file Cloning.h.

Referenced by llvm::CloneAndPruneIntoFromInst().

virtual CloningAction llvm::CloningDirector::handleInstruction ( ValueToValueMapTy VMap,
const Instruction Inst,
BasicBlock NewBB 
)
pure virtual

Subclasses must override this function to customize cloning behavior.


The documentation for this class was generated from the following file: