Currently have relu(x) = x < 0 ? 0 : x working. Although locals aren't added automatically, but that should be simple enough to add.
For the time being the simplest solution to register allocation (give every line a register) is being used, and seems to be working okay. Obviously such a system is useless for any sizeable program, but a simple method helps whilst ironing out bugs elsewhere.
Currently have
relu(x) = x < 0 ? 0 : x
working. Although locals aren't added automatically, but that should be simple enough to add.For the time being the simplest solution to register allocation (give every line a register) is being used, and seems to be working okay. Obviously such a system is useless for any sizeable program, but a simple method helps whilst ironing out bugs elsewhere.