mlir-hlo/tests
Smit Hinsu 6eda9ed273 Add compare_type optional attribute to CompareOp in HLO dialects
If unspecified, `compare_type` is FLOAT for float element types, SIGNED for signed element types and UNSIGNED for unsigned element types. compare_type can be TOTALORDER for float element types.

- Added import and export support the attribute.
- Restricted legalization from HLO to TF to the default compare types.
- Updated existing usage of the CompareOp

PiperOrigin-RevId: 339099219
2020-10-26 12:58:29 -07:00
..
end2end Integrate LLVM at llvm/llvm-project@c89447b659 2020-10-22 15:23:24 -07:00
CMakeLists.txt Add CMake files and lit configurations, enough for `ninja check-mlir-hlo` to pass on all the tests 2020-08-07 22:14:34 -07:00
canonicalize.mlir Add folder for mhlo::pad 2020-10-19 04:21:44 -07:00
chlo_infer_shape_type_methods.mlir [MLIR][KernelGen] Implement InferShapedTypeOpInterface for `mhlo.compare/select` 2020-09-17 07:10:10 -07:00
chlo_legalize_to_hlo_broadcasts.mlir Use tensor_cast instead of mhlo::reshape in the lowering of unranked binary operations. 2020-10-09 01:46:48 -07:00
chlo_legalize_to_mhlo.mlir [MLIR][KernelGen] Fix unranked codegeneration in kernel generator 2020-10-07 05:39:55 -07:00
concatenate.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
convert.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
hlo-legalize-gather-to-torch-index-select.mlir Add a transform for Gathers to torch_index_select. 2020-07-30 22:34:32 +00:00
hlo-legalize-to-lhlo-unranked.mlir Integrate LLVM at llvm/llvm-project@c89447b659 2020-10-22 15:23:24 -07:00
hlo-legalize-to-lhlo.mlir Integrate LLVM at llvm/llvm-project@c89447b659 2020-10-22 15:23:24 -07:00
hlo-legalize-to-linalg.mlir {mhlo.is_finite, lmhlo.is_finite} -> linalg.generic conversion 2020-09-29 10:50:42 -07:00
hlo-transform-unranked.mlir [MLIR] Extend unranked transformation to CHLO dialect 2020-09-16 09:49:18 -07:00
inlining.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
legalize-control-flow.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
legalize-to-std.mlir Folders for mhlo.compare 2020-09-23 12:03:48 -07:00
legalize-trigonometric-to-approximation.mlir [MLIR][KernelGen] Legalize `atan` to approximation 2020-10-05 08:05:52 -07:00
legalize_to_scf.mlir [mhlo] Add legalize to SCF pass 2020-08-28 15:11:58 -07:00
lhlo-fuse-linalg.mlir Extend hlo-fuse-linalg slightly to support aliased returns. 2020-10-16 04:04:23 -07:00
lhlo-legalize-select-and-scatter.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
lhlo-legalize-to-affine.mlir Make LMHLO's Dot have the same power as MHLO's DotGeneral. 2020-10-15 15:09:06 -07:00
lhlo-legalize-to-gpu.mlir Rename xla_lhlo dialect into lmhlo 2020-07-30 22:33:11 +00:00
lhlo-legalize-to-linalg.mlir Permit vector types in lmhlo to std lowering. 2020-10-16 09:47:02 -07:00
lhlo-legalize-to-llvm.mlir [MLIR] Remove Affine->STD and SCF->STD patterns from lhlo->llvm pass. 2020-08-07 22:15:24 -07:00
lhlo-legalize-to-parallel-loops.mlir Allow running tests with FILECHECK_OPTS=-enable-var-scope 2020-08-03 19:27:38 -07:00
lhlo_gpu_ops.mlir Add GPU specific LMHLO level ops 2020-10-14 11:23:55 -07:00
lhlo_ops.mlir Rename xla_lhlo dialect into lmhlo 2020-07-30 22:33:11 +00:00
lit.cfg.py Add CMake files and lit configurations, enough for `ninja check-mlir-hlo` to pass on all the tests 2020-08-07 22:14:34 -07:00
lit.site.cfg.py.in Add license header to lit.site.cfg.py.in 2020-08-07 22:22:24 -07:00
lower-complex.mlir [MLIR][KernelGen] Fix unranked codegeneration in kernel generator 2020-10-07 05:39:55 -07:00
lower-general-dot.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
materialize-broadcasts.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
mhlo-fusion.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
mhlo_infer_shape_type_methods.mlir Add compare_type optional attribute to CompareOp in HLO dialects 2020-10-26 12:58:29 -07:00
ops.mlir Use InferTypeOpInterface for HLO_SliceOp. 2020-10-26 09:54:13 -07:00
optimize-hlo.mlir Add an optimization that converts some Gathers to Slices. 2020-07-30 22:34:10 +00:00
reduce.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
reshape.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
reverse.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
sink-constants-to-control-flow.mlir Sink standard dialect constants in sink_constants_to_control_flow pass 2020-08-03 19:30:29 -07:00
transpose.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
tuple.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
unfuse_batch_norm.mlir Integrate LLVM at llvm/llvm-project@52f0837778 2020-09-10 08:14:23 -07:00