torch-mlir/test
Sean Silva 28a7738189 [torch-mlir earthmoving (1/N)] C/C++ code movement.
This creates the `external/torch-mlir` directory as an
LLVM_EXTERNAL_PROJECTS-compatible project (analogous to
`iree-dialects`) and completes movement/rename of all pure MLIR C/C++
compiler code into there. The next step will be to move all the Python
code / code that links/includes PyTorch C++ code (which currently lives
in `frontends/pytorch`) into a subdirectory here.

I call this "earthmoving" because it is mostly mechanical changes and
renames. As a quick summary (we can change this down the road easily)
- C++ `mlir::NPCOMP::Torch -> mlir::torch::Torch`
- CAPI `npcompTorchListTypeGet -> torchMlirTorchListTypeGet`
- preprocessor `#ifndef NPCOMP_ -> #ifndef TORCHMLIR_`
- CMake `NPCOMPFoo -> TorchMLIRFoo`

The goal of this is to create a standalone project creating a center of
mass for entry into the MLIR ecosystem from PyTorch, suitable in scope
for eventual inclusion/ownership in PyTorch. The idea is that
`external/torch-mlir` will some day be pulled out into its own
repository, and then npcomp will simply pull it in as a submodule.

Layering-wise, what lives in `torch-mlir` lowers code from PyTorch
(currently TorchScript, but TorchFX or pytorch/xla-style tracing are
possible extensions) down to what we have been calling the "Torch
backend contract" which is cleaned up IR (inlining, simplifcation,
conversion to value tensors, ...) entirely in the `torch` dialect. This
is the branching off point for further lowering, of which npcomp takes
one opinion (outside `torch-mlir` of course!), namely the
`TorchConversion` dialect/transforms which lower to IR suitable for IREE
and other linalg-on-tensors based lower-level compilers.

Summary of changes:
- move `{include,lib,test}/Dialect/Torch` into `torch-mlir`
- move relevant parts of CAPI into `torch-mlir`.
- leave a few things related to the `torch-mlir` Python build commented
  out, which should be resolved in a subsequent change.
2021-09-10 21:44:37 -07:00
..
Backend Remove npcomp-iree-backend-lower-linkage pass. 2021-08-09 15:28:02 -07:00
CAPI Rework the python build to a static assembly of MLIR+NPCOMP (#251) 2021-07-27 16:10:10 -07:00
Conversion Fix TorchToIREE lowering. 2021-09-03 23:57:54 +00:00
Dialect [torch-mlir earthmoving (1/N)] C/C++ code movement. 2021-09-10 21:44:37 -07:00
Python Merge npcomp and mlir python namespaces. 2021-08-22 21:00:42 -07:00
RefBackend Delete RestrictedCanonicalizer 2021-08-27 19:09:29 +00:00
refback-run Rename npcomp-run-mlir to refback-run 2021-08-03 18:24:24 -07:00
CMakeLists.txt Merge npcomp and mlir python namespaces. 2021-08-22 21:00:42 -07:00
development_files.py Build packages for npcomp-torch. 2021-07-29 19:58:59 -07:00
lit.cfg.py Rename npcomp-run-mlir to refback-run 2021-08-03 18:24:24 -07:00
lit.site.cfg.py.in Rework the python build to a static assembly of MLIR+NPCOMP (#251) 2021-07-27 16:10:10 -07:00