updates fn calling generation

This commit is contained in:
Eyck-Alexander Jentzsch 2024-08-17 08:22:04 +02:00
parent 0f15032210
commit a45fcd28db
1 changed files with 5 additions and 1 deletions

View File

@ -2553,7 +2553,11 @@ private:
this->gen_instr_prologue(); this->gen_instr_prologue();
/*generate behavior*/ /*generate behavior*/
this->gen_wait(1); auto wait_arg0 = this->gen_const(8,1);
std::vector<Value*> wait_args{
wait_arg0
};
this->builder.CreateCall(this->mod->getFunction("wait"), wait_args);
bb = BasicBlock::Create(this->mod->getContext(), "entry", this->func, this->leave_blk); bb = BasicBlock::Create(this->mod->getContext(), "entry", this->func, this->leave_blk);
auto returnValue = std::make_tuple(CONT,bb); auto returnValue = std::make_tuple(CONT,bb);