torch-mlir/test/Dialect/Torch
Ashay Rane 340d8af28a
torch: handle `torch.prim.dtype` ops during type refinement (#1013)
The canonicalizer converts `torch.prim.dtype` ops into integer constants
for valid types, but the type may not be known until type refinement is
complete.  However, type refinement cannot make progress until
`torch.prim.dtype` ops have been resolved to their corresponding integer
constants, thus creating a circular dependency.

This patch creates a tight coupling between type refinement and the
lowering of `torch.prim.dtype` ops by handling such ops as they are
encountered during type refinement.  The unit test in this patch aims to
check whether the type refinement pass can now handle chains of
operations that alternate between type construction and type refinement.
2022-07-08 16:38:51 -07:00
..
GlobalizeObjectGraph mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
adjust-calling-conventions.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
canonicalize.mlir Add E2E support for aten.len.str (#969) 2022-07-07 10:41:55 -07:00
decompose-complex-ops.mlir [MLIR][TORCH] Add decomposition of aten.repeat (#932) 2022-07-01 13:02:31 +08:00
drop-shape-calculations.mlir torch: allow torch dialect ops after running drop-shape pass (#979) 2022-06-25 07:27:47 -07:00
inline-global-slots.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
invalid.mlir llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
maximize-value-semantics.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
ops.mlir Add support for ScalarType::QUInt8 2022-06-29 15:33:28 -07:00
prepare-for-globalize-object-graph.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
promote-types.mlir llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
reduce-op-variants-error.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
reduce-op-variants.mlir Add basic support for list of optional tensors in reduce-op-variants (#971) 2022-07-08 11:12:15 -07:00
refine-public-return.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
refine-types-branch.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
refine-types-ops.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
refine-types.mlir torch: handle `torch.prim.dtype` ops during type refinement (#1013) 2022-07-08 16:38:51 -07:00
reify-shape-calculations.mlir mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
simplify-shape-calculations.mlir Add basic support for list of optional tensors in reduce-op-variants (#971) 2022-07-08 11:12:15 -07:00