#include "mir/MIR.h"

#include <utility>

namespace mir {

MachineBasicBlock::MachineBasicBlock(std::string name)
    : name_(std::move(name)) {}

MachineInstr& MachineBasicBlock::Append(Opcode opcode,
                                        std::initializer_list<Operand> operands) {
  instructions_.emplace_back(opcode, std::vector<Operand>(operands));
  return instructions_.back();
}

}  // namespace mir
