#include "function_basic_block.h"
#include "instruction.h"
#include "module.h"
namespace gpu {
namespace spirv {
void BasicBlock::ToBinary(std::vector<uint32_t>& out) { … }
void Function::ToBinary(std::vector<uint32_t>& out) { … }
BasicBlock::BasicBlock(std::unique_ptr<Instruction> label, Function& function) : … { … }
BasicBlock::BasicBlock(Module& module, Function& function) : … { … }
uint32_t BasicBlock::GetLabelId() { … }
InstructionIt BasicBlock::GetFirstInjectableInstrution() { … }
InstructionIt BasicBlock::GetLastInjectableInstrution() { … }
void BasicBlock::CreateInstruction(spv::Op opcode, const std::vector<uint32_t>& words, InstructionIt* inst_it) { … }
Function::Function(Module& module, std::unique_ptr<Instruction> function_inst) : … { … }
BasicBlockIt Function::InsertNewBlock(BasicBlockIt it) { … }
void Function::InitBlocks(uint32_t count) { … }
const Instruction* Function::FindInstruction(uint32_t id) const { … }
void Function::CreateInstruction(spv::Op opcode, const std::vector<uint32_t>& words, uint32_t id) { … }
void Function::ReplaceAllUsesWith(uint32_t old_word, uint32_t new_word) { … }
}
}