Charms.Defm (charms v0.1.0)

Charms.Defm provides a macro for defining functions that can be JIT compiled

Summary

Functions

call a local function with return

call a function defined in another Charms module with return

cond expression requires identical types for both branches

define a function that can be JIT compiled

create an MLIR operation

if expression requires identical types for both branches

create an MLIR operation and return the result value(s)

Functions

Link to this macro

call(arg)

(macro)

call a local function with return

Link to this macro

call(mod, arg)

(macro)

call a function defined in another Charms module with return

Link to this macro

cond_br(condition, clauses)

(macro)

cond expression requires identical types for both branches

Link to this macro

defm(call, body \\ [])

(macro)

define a function that can be JIT compiled

Link to this macro

for_loop(expr, list)

(macro)

for loop

Link to this macro

op(_)

(macro)

create an MLIR operation

Link to this macro

struct_if(condition, clauses)

(macro)

if expression requires identical types for both branches

Link to this macro

value(expr)

(macro)

create an MLIR operation and return the result value(s)

Link to this macro

while_loop(expr, list)

(macro)

while loop