torch-mlir/lib/Conversion/TorchToLinalg
Ramiro Leal-Cavazos e568f7e999
Move handling of integer signedness to the backend conversions (#2597)
The function `getTypeForScalarType` currently takes an argument to
specify the signedness of integer types. This is leakage of backend
specific requirements into the torch dialect world. Because
`getTypeForScalarType` is a utility function for the torch dialect, it
should only produce types that match the sign conventions used by
PyTorch (regular integers are signed and unsigned integers are
unsigned).

This commit removes the signedness argument from
`getTypeForScalarType`, and moves the backend specific handling of
integer types to the backend code.
2023-11-29 09:43:09 -08:00
..
CMakeLists.txt Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
DataMovement.cpp Additional tests for view lowering (#2584) 2023-11-20 17:35:25 -08:00
IndirectDataMovement.cpp Elide dynamic broadcast checks when in strict symbolic shapes mode. (#2496) 2023-09-29 16:45:48 -07:00
Linear.cpp [TorchToLinalg] Improve broadcast lowerings in strict symbolic modes (#2505) 2023-10-05 15:15:26 -04:00
Pooling.cpp [build] Update llvm tag to a3f2751f (#2397) 2023-08-15 09:53:28 -07:00
PopulatePatterns.h Re-enable custom op support 2022-08-16 22:49:08 +05:30
Random.cpp build: update llvm tag to 798fa4b4 (#1684) 2022-12-07 12:20:41 -08:00
Reduction.cpp Bump llvm-project to f66cd9e9556a53142a26a5c21a72e21f1579217c. (#2466) 2023-09-19 10:50:53 -07:00
TensorConstructors.cpp Move handling of integer signedness to the backend conversions (#2597) 2023-11-29 09:43:09 -08:00
TensorScalarInterop.cpp Elide dynamic broadcast checks when in strict symbolic shapes mode. (#2496) 2023-09-29 16:45:48 -07:00
TorchToLinalg.cpp Add complex types support with basic complex ops. 2023-05-11 21:29:07 +05:30
Uncategorized.cpp Move handling of integer signedness to the backend conversions (#2597) 2023-11-29 09:43:09 -08:00
Utils.cpp Move handling of integer signedness to the backend conversions (#2597) 2023-11-29 09:43:09 -08:00
Utils.h Move handling of integer signedness to the backend conversions (#2597) 2023-11-29 09:43:09 -08:00