Commit 4a99fbc8 authored by dbarbera's avatar dbarbera
Browse files

Added built-in present operator generation

parent f10a2157
......@@ -817,7 +817,9 @@ def generate_length(params):
def generate_present(params):
''' Generate the code for the built-in present operation'''
raise NotImplementedError
expr_val = expression(params[0])
kind_ptr = ctx.builder.gep(expr_val, [,])
return ctx.builder.load(kind_ptr)
def generate_abs(params):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment