Oh FFS. LOAD_CLOCK.

This commit is contained in:
Ben Vanik
2014-01-08 00:12:22 -08:00
parent a8ade5d33b
commit 894f22cd0b
7 changed files with 40 additions and 7 deletions

View File

@@ -848,6 +848,14 @@ Value* HIRBuilder::LoadVectorShr(Value* sh) {
return i->dest;
}
Value* HIRBuilder::LoadClock() {
Instr* i = AppendInstr(
OPCODE_LOAD_CLOCK_info, 0,
AllocValue(INT64_TYPE));
i->src1.value = i->src2.value = i->src3.value = NULL;
return i->dest;
}
Value* HIRBuilder::LoadContext(size_t offset, TypeName type) {
Instr* i = AppendInstr(
OPCODE_LOAD_CONTEXT_info, 0,