top | up | prev | next

BasicBlock Class

Definition at line 13 of BasicBlock.hpp

Constructors

BasicBlock(const BasicBlock&) delete
BasicBlock(int id_)

Member Functions

void AddInstruction(Instruction* instruction)
int Id() const
bool IsEmpty() const
void SetId(int id_)
void Write(CodeFormatter& formatter, Function& function, Context& context)
BasicBlock& operator=(const BasicBlock&) delete

Member Variables

int id
std::vector<std::unique_ptr<Instruction>> instructions

Constructor Details

BasicBlock Constructor

cmsxi::BasicBlock::BasicBlock(const BasicBlock &) delete

Definition at line 17 of BasicBlock.hpp


BasicBlock Constructor

cmsxi::BasicBlock::BasicBlock(int id_)

Definition at line 11 of BasicBlock.cpp :
11 : id(id_)
12 {
13 }


Declaration at line 16 of BasicBlock.hpp


Member Function Details

AddInstruction Member Function

void cmsxi::BasicBlock::AddInstruction(Instruction * instruction)

Definition at line 15 of BasicBlock.cpp :
16 {
17     instructions.push_back(std::unique_ptr<Instruction>(instruction));
18 }


Declaration at line 19 of BasicBlock.hpp

Called by: cmsxi::Context::CreateAdd , cmsxi::Context::CreateAnd , cmsxi::Context::CreateArg , cmsxi::Context::CreateBitCast , cmsxi::Context::CreateBranch , cmsxi::Context::CreateCall , cmsxi::Context::CreateDiv , cmsxi::Context::CreateElemAddr , cmsxi::Context::CreateEqual , cmsxi::Context::CreateFloatToInt , cmsxi::Context::CreateIntToFloat , cmsxi::Context::CreateIntToPtr , cmsxi::Context::CreateJump , cmsxi::Context::CreateLess , cmsxi::Context::CreateLoad , cmsxi::Context::CreateLocal , cmsxi::Context::CreateMod , cmsxi::Context::CreateMul , cmsxi::Context::CreateNeg , cmsxi::Context::CreateNop , cmsxi::Context::CreateNot , cmsxi::Context::CreateOr , cmsxi::Context::CreateParam , cmsxi::Context::CreatePtrDiff , cmsxi::Context::CreatePtrOffset , cmsxi::Context::CreatePtrToInt , cmsxi::Context::CreateRet , cmsxi::Context::CreateSave , cmsxi::Context::CreateShl , cmsxi::Context::CreateShr , cmsxi::Context::CreateSignExtend , cmsxi::Context::CreateStore , cmsxi::Context::CreateSub , cmsxi::Context::CreateSwitch , cmsxi::Context::CreateTrap , cmsxi::Context::CreateTruncate , cmsxi::Context::CreateXor , cmsxi::Context::CreateZeroExtend


Id Member Function

int cmsxi::BasicBlock::Id() const

Definition at line 21 of BasicBlock.hpp :
21 { return id; }

Called by: cmsxi::BranchInstruction::Write , cmsxi::JumpInstruction::Write , cmsxi::MDBasicBlockRef::Write , cmsxi::SwitchInstruction::Write


IsEmpty Member Function

bool cmsxi::BasicBlock::IsEmpty() const

Definition at line 20 of BasicBlock.hpp :
20 { return instructions.empty(); }


SetId Member Function

void cmsxi::BasicBlock::SetId(int id_)

Definition at line 22 of BasicBlock.hpp :
22 { id = id_; }


Write Member Function

void cmsxi::BasicBlock::Write(CodeFormatter& formatter, Function & function, Context & context)

Definition at line 20 of BasicBlock.cpp
Declaration at line 23 of BasicBlock.hpp

Calls: cmsxi::BasicBlock::Write

Called by: cmsxi::BasicBlock::Write


operator= Member Function

BasicBlock & cmsxi::BasicBlock::operator=(const BasicBlock &) delete

Definition at line 18 of BasicBlock.hpp


top | up | prev | next