Instruction Abstract Class

Definition

Line 27 of cmsxi/Instruction.cm

Inheritance

Constructors & Destructor

public nothrow Instruction(int line_)

Member Functions

public virtual nothrow void BeginComputeLivenessAndNextUse()
public void BeginGenerateCode(MachineCode& machineCode)
public nothrow void ComputeLivenessAndNextUse()
public virtual nothrow void EndComputeLivenessAndNextUse()
public void EndGenerateCode()
public virtual void GenerateCode(MachineCode& machineCode, CodeFormatter& formatter)
public override nothrow void IncNumUses()
public override nothrow String<char> IndexStr() const
public nothrow bool IsLeader() const
public abstract nothrow String<char> OperationName() const
public virtual void Print(CodeFormatter& formatter)
public void PrintLivenessAndNextUse(int fieldPos, CodeFormatter& formatter)
public void PrintMachineCode(CodeFormatter& formatter, bool& printed)
public virtual void Validate(Function& function, int numArgs)

Member Variables

public long endMachineInstructionIndex
public int index
public uint lineNumber
public HashMap<Value*, Pair<Liveness, Value*>, Hasher<Value*>, EqualTo<Value*>> livenessAndNextUse
public MachineCode* machineCode
public MDStructRef* metadata
public int numUses
public BasicBlock* parent
public long startMachineInstructionIndex

Constructor& Destructor Details

Instruction Constructor

public nothrow Instruction(int line_)

Definition
Line 29 of cmsxi/Instruction.cm


Member Function Details

BeginComputeLivenessAndNextUse Member Function

public virtual nothrow void BeginComputeLivenessAndNextUse()

Definition
Line 63 of cmsxi/Instruction.cm


BeginGenerateCode Member Function

public void BeginGenerateCode(MachineCode& machineCode)

Definition
Line 104 of cmsxi/Instruction.cm


ComputeLivenessAndNextUse Member Function

public nothrow void ComputeLivenessAndNextUse()

Definition
Line 58 of cmsxi/Instruction.cm


EndComputeLivenessAndNextUse Member Function

public virtual nothrow void EndComputeLivenessAndNextUse()

Definition
Line 66 of cmsxi/Instruction.cm


EndGenerateCode Member Function

public void EndGenerateCode()

Definition
Line 281 of cmsxi/Instruction.cm


GenerateCode Member Function

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

Definition
Line 100 of cmsxi/Instruction.cm


IncNumUses Member Function

public override nothrow void IncNumUses()

Definition
Line 299 of cmsxi/Instruction.cm


IndexStr Member Function

public override nothrow String<char> IndexStr()

Definition
Line 96 of cmsxi/Instruction.cm


IsLeader Member Function

public nothrow bool IsLeader()

Definition
Line 295 of cmsxi/Instruction.cm


OperationName Member Function

public abstract nothrow String<char> OperationName()

Definition
Line 45 of cmsxi/Instruction.cm


Print Member Function

public virtual void Print(CodeFormatter& formatter)

Definition
Line 46 of cmsxi/Instruction.cm


PrintLivenessAndNextUse Member Function

public void PrintLivenessAndNextUse(int fieldPos, CodeFormatter& formatter)

Definition
Line 69 of cmsxi/Instruction.cm


PrintMachineCode Member Function

public void PrintMachineCode(CodeFormatter& formatter, bool& printed)

Definition
Line 285 of cmsxi/Instruction.cm


Validate Member Function

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

Definition
Line 33 of cmsxi/Instruction.cm