torch-mlir/test/Dialect/Torch
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
..
GlobalizeObjectGraph Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
adjust-calling-conventions.mlir Introduce native `!torch.none` type. 2021-06-14 13:30:58 -07:00
canonicalize.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
finalizing-backend-type-conversion.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
func-backend-type-conversion.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
inline-global-slots.mlir Introduce `!torch.tensor` / `!torch.vtensor` types. 2021-06-10 10:56:48 -07:00
invalid.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
maximize-value-semantics.mlir Introduce `!torch.tensor` / `!torch.vtensor` types. 2021-06-10 10:56:48 -07:00
ops.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
prepare-for-globalize-object-graph.mlir Support multiple instances of a class in GlobalizeObjectGraph. 2021-03-11 19:21:07 -08:00
reduce-op-variants.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00
refine-public-return.mlir Introduce `!torch.tensor` / `!torch.vtensor` types. 2021-06-10 10:56:48 -07:00
refine-types.mlir Add `!torch.int` type. 2021-06-17 07:28:23 -07:00