Sean Silva
ccd5754b88
Rename `check-npcomp-opt` to just `check-npcomp`.
...
It runs npcomp-run-mlir as well now, so having `-opt` in the name is
confusing.
2020-05-29 16:12:10 -07:00
Sean Silva
ea822968fa
Add bare-bones npcomp-run-mlir.
...
The code isn't super clean, but is a useful incremental step
establishing most of the boilerplate for future enhancements.
We can't print or return tensors yet so correctness TBD, but I've
stepped into the running code in the debugger so I know it definitely is
running.
This is the first step to building out an npcomp mini-runtime. The
mini-runtime doesn't have to be fancy or complex, but it should at least
be layered nicely (which this code and the current compiler interaction
with the "runtime" code is not). Now that we have boilerplate for e2e
execution in some form, we can build that out.
2020-05-28 18:37:11 -07:00
Sean Silva
927a831c1e
Move npcomp registration to helpers.
...
This adds:
- mlir::NPCOMP::registerAllDialects()
- mlir::NPCOMP::registerAllPasses()
2020-05-21 16:35:53 -07:00
Sean Silva
7687a6d8d2
Register AsmPrinter options (like -mlir-print-op-generic).
2020-05-15 15:08:40 -07:00
Sean Silva
1ef8b91a95
Add -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE
...
This allows VSCode (and presumably other IDE's) to pick up a
`tools/cmake_configure.sh`'ed build directory and have intellisense.
2020-05-11 12:58:42 -07:00
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
Sean Silva
f394e12d86
Add tools/test_all.sh
...
We should look into having a `ninja check-npcomp` that runs everything
with lit so that we get decent test multithreading.
We can look to how LLVM does its gtest tests ("unittests") for
inspiration.
2020-05-08 18:13:19 -07:00
Stella Laurenzo
497f1de5a2
Add env var to enable experimental numpy array function handling.
2020-05-08 14:21:43 -07:00
Stella Laurenzo
0092b912ab
Update all python imports to be absolute and use a .env file to set the path correctly.
...
This makes things just work for debugging in VSCode.
2020-05-06 23:25:04 -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
67d38db1e2
Start defining new IR bindings and cleanup python init.
2020-04-30 16:00:00 -07:00
Stella Laurenzo
d3632af675
Add !numpy.any_dtype dialect type.
2020-04-29 18:20:42 -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
f174c0557b
Cleanup build instructions/scripts
2020-04-29 17:05:45 -07:00
Stella Laurenzo
03cf785bae
Remove linker detection
2020-04-29 16:33:48 -07:00
Stella Laurenzo
e845db8a20
Add builtin_ufunc and generic_ufunc ops.
2020-04-28 23:51:54 -07:00
Stella Laurenzo
f514bd533d
Add a helper run_lit.sh for interactive debugging.
2020-04-26 18:41:44 -07:00
Stella Laurenzo
953ef89a30
Add npcomp-opt and lit runner.
2020-04-26 17:55:15 -07:00
Stella Laurenzo
36717e97e1
Adapt to use installed MLIR
2020-04-26 16:26:45 -07:00
Stella Laurenzo
846178dc09
Add script to do a local build/install of MLIR.
2020-04-26 16:12:27 -07:00