torch-mlir/lib/Dialect/TorchConversion/Transforms
Stella Laurenzo 6961f0a247
Re-organize project structure to separate PyTorch dependencies from core project. (#2542)
This is a first step towards the structure we discussed here:
https://gist.github.com/stellaraccident/931b068aaf7fa56f34069426740ebf20

There are two primary goals:

1. Separate the core project (C++ dialects and conversions) from the
hard PyTorch dependencies. We move all such things into projects/pt1 as
a starting point since they are presently entangled with PT1-era APIs.
Additional work can be done to disentangle components from that
(specifically LTC is identified as likely ultimately living in a
`projects/ltc`).
2. Create space for native PyTorch2 Dynamo-based infra to be upstreamed
without needing to co-exist with the original TorchScript path.

Very little changes in this path with respect to build layering or
options. These can be updated in a followup without commingling
directory structure changes.

This also takes steps toward a couple of other layering enhancements:

* Removes the llvm-external-projects/torch-mlir-dialects sub-project,
collapsing it into the main tree.
* Audits and fixes up the core C++ build to account for issues found
while moving things. This is just an opportunistic pass through but
roughly ~halves the number of build actions for the project from the
high 4000's to the low 2000's.

It deviates from the discussed plan by having a `projects/` tree instead
of `compat/`. As I was thinking about it, this will better accommodate
the follow-on code movement.

Once things are roughly in place and the CI passing, followups will
focus on more in-situ fixes and cleanups.
2023-11-02 19:45:55 -07:00
..
BackendTypeConversion.cpp Bump LLVM (#2176) 2023-06-13 16:17:23 +02:00
BackendTypeConversionPasses.cpp update llvm to d23516e9ad477527a9db4d06b1fa9566680ac67c (#1812) 2023-01-23 16:34:22 -08:00
CMakeLists.txt Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
ConvertCustomQuantOp.cpp fix compile warning (#2453) 2023-09-12 09:31:47 +08:00
PassDetail.h llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
Passes.cpp [Stablehlo] Enable Stablehlo backend with arith dialect (#2139) 2023-05-26 22:57:57 +08:00
UnpackQuantTensor.cpp Prototype passes for lowering quantized group matmul (#2402) 2023-08-29 21:25:45 -07:00
VerifyLinalgOnTensorsBackendContract.cpp Add complex types support with basic complex ops. 2023-05-11 21:29:07 +05:30
VerifyStablehloBackendContract.cpp mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00
VerifyTosaBackendContract.cpp build: update llvm tag to 6f46ff37 (#1448) 2022-10-05 08:28:06 -05:00