wip: args and returns

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2025-07-03 10:08:26 +02:00
parent 63011b6d24
commit dfe56f9306
12 changed files with 201 additions and 29 deletions
@@ -53,9 +53,10 @@ where
D: revive_llvm_context::PolkaVMDependency + Clone,
{
fn into_llvm(self, context: &mut revive_llvm_context::PolkaVMContext<D>) -> anyhow::Result<()> {
let binding_pointer = context.build_alloca(context.word_type(), "if_condition");
let condition = self
.condition
.into_llvm(context)?
.into_llvm(&[("todo".to_string(), binding_pointer)], context)?
.expect("Always exists")
.access(context)?
.into_int_value();