torch-mlir/include/npcomp/Dialect/Torch/IR
Sean Silva f49ebf1690 Add `!torch.int` type.
This replaces the ad-hoc use of `i64` throughout the Torch layer, and
helps to keep it crystal clear the distinction between `!torch.int`
(which is modeling the Python `int` type) and the various types that
serve as dtypes of tensors, which are a totally different type universe.

Changes:
- `!torch.int` type and C bindings.
- Change `torch.constant.int` parser to not need the `: i64` at the end.
- `m_TorchConstantInt` matcher to aid with matching constants.
- BackendTypeConversion changes for `!torch.int` -> `i64` type
  conversion.
- Refactor finalizing patterns in FinalizingBackendTypeConversionPass
  (they were getting very repetitive).
- Mechanical rewriting of `!torch.int` to `i64` in all the tests, and
  `AnyTorchIntType` to `Torch_IntType` in the `.td` files.
2021-06-17 07:28:23 -07:00
..
.gitignore Significantly restructure torch/aten import design. 2021-05-19 13:37:39 -07:00
CMakeLists.txt Significantly restructure torch/aten import design. 2021-05-19 13:37:39 -07:00
GeneratedAtenOps.td Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
GeneratedPrimOps.td Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
GeneratedQuantizedOps.td Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
TorchBase.td Add `!torch.bool` type. 2021-06-16 13:22:00 -07:00
TorchDialect.h Expose signature metadata to ops and implement ATenRecognizeKernelsPass pass. 2020-10-26 20:31:45 -07:00
TorchOps.h Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
TorchOps.td Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
TorchTraits.h Significantly restructure torch/aten import design. 2021-05-19 13:37:39 -07:00
TorchTypes.h Move Torch type implementation code into TorchTypes.cpp 2021-06-10 16:46:47 -07:00
TorchTypes.td Add `!torch.int` type. 2021-06-17 07:28:23 -07:00