SwitchInstruction Class

Definition

Line 3444 of cmsxi/Instruction.cm

Inheritance

Constructors & Destructor

public nothrow SwitchInstruction(Value* cond_, uint defaultTarget_, int line_)

Member Functions

public nothrow void AddCase(Value* caseValue, uint caseTarget)
public override nothrow void BeginComputeLivenessAndNextUse()
public override nothrow void EndComputeLivenessAndNextUse()
public override void GenerateCode(MachineCode& machineCode, CodeFormatter& formatter)
public override nothrow String<char> Name() const
public override nothrow String<char> OperationName() const
public override void Print(CodeFormatter& formatter)
public override void Validate(Function& function, int numArgs)

Member Variables

public Value* cond
public BasicBlock* defaultDestination
public uint defaultTarget
public List<Pair<Value*, BasicBlock*>> destinationBlocks
public List<Pair<Value*, uint>> destinations

Constructor& Destructor Details

SwitchInstruction Constructor

public nothrow SwitchInstruction(Value* cond_, uint defaultTarget_, int line_)

Definition
Line 3446 of cmsxi/Instruction.cm


Member Function Details

AddCase Member Function

public nothrow void AddCase(Value* caseValue, uint caseTarget)

Definition
Line 3449 of cmsxi/Instruction.cm


BeginComputeLivenessAndNextUse Member Function

public override nothrow void BeginComputeLivenessAndNextUse()

Definition
Line 3528 of cmsxi/Instruction.cm


EndComputeLivenessAndNextUse Member Function

public override nothrow void EndComputeLivenessAndNextUse()

Definition
Line 3546 of cmsxi/Instruction.cm


GenerateCode Member Function

public override void GenerateCode(MachineCode& machineCode, CodeFormatter& formatter)

Definition
Line 3556 of cmsxi/Instruction.cm


Name Member Function

public override nothrow String<char> Name()

Definition
Line 3453 of cmsxi/Instruction.cm


OperationName Member Function

public override nothrow String<char> OperationName()

Definition
Line 3457 of cmsxi/Instruction.cm


Print Member Function

public override void Print(CodeFormatter& formatter)

Definition
Line 3507 of cmsxi/Instruction.cm


Validate Member Function

public override void Validate(Function& function, int numArgs)

Definition
Line 3461 of cmsxi/Instruction.cm