It is an ongoing effort to built an intermediary representation that numerical library could share to produce an optimized instructions tree.
[1] https://github.com/weld-project/weld