IR: Add Breakpoint IR instruction (for debugging purposes, emits a host-breakpoint)

This commit is contained in:
MerryMage
2016-08-05 14:07:27 +01:00
parent 39563c8ea8
commit ca40015145
4 changed files with 11 additions and 0 deletions

View File

@@ -261,6 +261,10 @@ void IREmitter::WriteMemory64(const IR::Value& vaddr, const IR::Value& value) {
}
}
void IREmitter::Breakpoint() {
Inst(IR::Opcode::Breakpoint, {});
}
void IREmitter::SetTerm(const IR::Terminal& terminal) {
ASSERT_MSG(block.terminal.which() == 0, "Terminal has already been set.");
block.terminal = terminal;