zeam-vm / pelemay

Pelemay is a native compiler for Elixir, which generates SIMD instructions. It has a plan to generate for GPU code.
Apache License 2.0
186 stars 13 forks source link

Modify data which is registered to ETS #79

Closed hisaway closed 5 years ago

hisaway commented 5 years ago

This PR added arguments of anonymous function into datas for registering to ETS, like the following:

Original Code:

  list |> Enum.map(&(&1 * &1))

Generated Code:

  Before PR: list |> map_mult
  After  PR: list |> map_elem_mult_elem