Beaver.ENIF.UseENIFAlloc (beaver v0.4.8)

Copy Markdown

Replace LLVM call ops of malloc and free with enif_alloc and enif_free.

Summary

Functions

clone(state)

Callback implementation for Beaver.MLIR.Pass.clone/1.

destruct(state)

Callback implementation for Beaver.MLIR.Pass.destruct/1.

initialize(ctx, state)

Callback implementation for Beaver.MLIR.Pass.initialize/2.

replace_alloc(opts \\ [benefit: 1])

replace_free(opts \\ [benefit: 1])

run(ctx, state)

Callback implementation for Beaver.MLIR.Pass.run/2.