top | up | prev | next

UnaryInstruction Abstract Class

Definition at line 39 of Instruction.hpp

Constructors

UnaryInstruction(Value* arg_)

Member Functions

Type* GetType(Context& context) override
void WriteArg(CodeFormatter& formatter, Context& context)

Member Variables

Value* arg

Constructor Details

UnaryInstruction Constructor

cmsxi::UnaryInstruction::UnaryInstruction(Value * arg_)

Definition at line 45 of Instruction.cpp :
 45 : Instruction()arg(arg_)
 46 {
 47 }


Declaration at line 42 of Instruction.hpp


Member Function Details

GetType Member Function

Type * cmsxi::UnaryInstruction::GetType(Context & context) override

Definition at line 43 of Instruction.hpp :
 43 { return arg->GetType(context); }

Base class overridden functions: cmsxi::Instruction::GetType , cmsxi::Value::GetType

Derived class overrides: cmsxi::UnaryTypeInstruction::GetType

Calls: cmsxi::Value::GetType


WriteArg Member Function

void cmsxi::UnaryInstruction::WriteArg(CodeFormatter& formatter, Context & context)

Definition at line 49 of Instruction.cpp :
 50 {
 51     formatter.Write(arg->GetType(context)->Name());
 52     formatter.Write(" ");
 53     formatter.Write(arg->Name(context));
 54 }


Calls: cmsxi::Type::Name , cmsxi::Value::GetType , cmsxi::Value::Name

Called by: cmsxi::BitCastInstruction::Write , cmsxi::FloatToIntInstruction::Write , cmsxi::IntToFloatInstruction::Write , cmsxi::IntToPtrInstruction::Write , cmsxi::NegInstruction::Write , cmsxi::NotInstruction::Write , cmsxi::PtrToIntInstruction::Write , cmsxi::SignExtendInstruction::Write , cmsxi::TruncateInstruction::Write , cmsxi::ZeroExtendInstruction::Write


top | up | prev | next