Skip to content

Commit

Permalink
translate static_parameter expr
Browse files Browse the repository at this point in the history
  • Loading branch information
KDr2 committed Oct 22, 2024
1 parent 38376c3 commit 7d73c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tapedfunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ function translate!!(var::IRVar, line::Expr,
end
return Instruction(identity, (_bind_fn(rhs),), _bind_fn(lhs))
end
elseif head === :static_parameter
v = ir.parent.sparam_vals[line.args[1]]
return Instruction(identity, (_bind_fn(v),), _bind_fn(var))
else
@error "Unknown Expression: " typeof(var) var typeof(line) line
throw(ErrorException("Unknown Expression"))
Expand Down

0 comments on commit 7d73c27

Please sign in to comment.