Sean Silva
e29aef855b
Initial TCF/TCP E2E seed.
...
Very much WIP.
This is enough to get tcf.add down to approximately the "linalg.generic
on buffers" level of abstraction. (but there are nuances)
2020-05-08 20:20:41 -07:00
Stella Laurenzo
a91b0bfbe1
Add numpy.get_slice op and wire it up to the tracer.
2020-05-08 16:04:58 -07:00
Stella Laurenzo
bc5ef81d68
Add basicpy.SlotObject type and ops to create/index into it.
...
* This is intended to provide low-level modeling for built-in objects.
* It is now possible to trace slice tuples (which are tuples of NoneType|EllipsisType|SlotObjectType<slice, ...>).
2020-05-05 18:16:01 -07:00
Stella Laurenzo
bfd5fedba7
Add central registration for type ranges.
2020-05-05 14:16:39 -07:00
Stella Laurenzo
502ef8f195
Create skeleton for 'Basicpy' dialect.
...
* It is time to start adding more python mechanisms.
* Running into this for materializing slice() objects.
2020-05-04 17:48:02 -07:00
Stella Laurenzo
ebb5bcf6af
Handle np.transpose() and ndarray.T shortcut.
...
* Just the form without explicit permutation for now.
2020-05-04 16:20:36 -07:00
Stella Laurenzo
a5f755d406
Implement __array_func__ hook and use it to trace np.dot.
...
* Creates an abstraction/registry around emitters (intended to generalize to AST compilation as well).
* Reworks ufuncs to use the same mechanism as array funcs.
* Adds the numpy.dot op.
2020-05-04 15:47:01 -07:00
Stella Laurenzo
c89a35f97f
Rework the poc tracer to be structured how intended.
2020-05-02 19:52:21 -07:00
Stella Laurenzo
d3632af675
Add !numpy.any_dtype dialect type.
2020-04-29 18:20:42 -07:00
Stella Laurenzo
b4425fe1d2
Add numpy.ufunc_call op.
2020-04-29 17:49:56 -07:00
Stella Laurenzo
c4a192d5c9
Rename from npcomp::NUMPY to NPCOMP::numpy to follow IREE convention.
2020-04-29 17:10:10 -07:00
Stella Laurenzo
e845db8a20
Add builtin_ufunc and generic_ufunc ops.
2020-04-28 23:51:54 -07:00
Stella Laurenzo
d3b6e1767a
Add stub numpy dialect.
2020-04-26 17:20:58 -07:00