#include "include/mir/MIR.h" #include namespace mir { MachineBasicBlock::MachineBasicBlock(std::string name, int label_id) : name_(std::move(name)), label_id_(label_id) {} MachineInstr &MachineBasicBlock::Append( Opcode opcode, std::initializer_list operands) { instructions_.emplace_back(opcode, std::vector(operands)); return instructions_.back(); } } // namespace mir