llvm-project/mlir/lib/IR
William S. Moses 1b2a1f8473 [MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi
Given a cmpf of either uitofp or sitofp and a constant, attempt to canonicalize it to a cmpi.

This PR rewrites equivalent code within LLVM to now apply to MLIR arith.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D117257
2022-02-23 14:09:20 -05:00
..
AffineExpr.cpp Apply clang-tidy fixes for performance-for-range-copy to MLIR (NFC) 2022-01-02 22:19:56 +00:00
AffineExprDetail.h Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
AffineMap.cpp [AffineMap] Move result exprs into trailing storage. NFCI. 2022-02-12 15:24:00 +01:00
AffineMapDetail.h [AffineMap] Move result exprs into trailing storage. NFCI. 2022-02-12 15:24:00 +01:00
AsmPrinter.cpp [mlir] Expose printer flags in AsmState 2022-02-15 17:27:45 -08:00
AttributeDetail.h Apply clang-tidy fixes for llvm-qualified-auto to MLIR (NFC) 2022-01-14 02:26:26 +00:00
Attributes.cpp [mlir] Convert NamedAttribute to be a class 2021-11-18 05:39:29 +00:00
Block.cpp [mlir][NFC] Add a using for llvm::BitVector to LLVM.h 2022-01-26 21:37:23 -08:00
Builders.cpp [mlir] Make locations required when adding/creating block arguments 2022-01-19 17:35:35 -08:00
BuiltinAttributeInterfaces.cpp [mlir] Refactor ElementsAttr's value access API 2021-11-09 00:15:08 +00:00
BuiltinAttributes.cpp Fold Tensor.extract_slice into a constant splat. 2022-02-22 21:39:57 +00:00
BuiltinDialect.cpp [mlir] Update uses of `parser`/`printer` ODS op field to `hasCustomAssemblyFormat` 2022-02-07 19:03:58 -08:00
BuiltinTypeInterfaces.cpp [mlir] Refactor ShapedType into an interface 2022-01-12 14:12:09 -08:00
BuiltinTypes.cpp [MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi 2022-02-23 14:09:20 -05:00
CMakeLists.txt [mlir] Convert OpTrait::FunctionLike to FunctionOpInterface 2022-01-18 20:56:53 -08:00
Diagnostics.cpp [mlir][NFC] Add a using for llvm::SMLoc/llvm::SMRange to LLVM.h 2022-01-26 21:37:23 -08:00
Dialect.cpp Apply clang-tidy fixes for performance-unnecessary-value-param to MLIR (NFC) 2022-01-02 01:45:18 +00:00
Dominance.cpp [Dominators] Rewrite the dominator implementation for efficiency. NFC. 2021-06-01 14:46:37 -07:00
FunctionImplementation.cpp [mlir][NFC] Add a using for llvm::SMLoc/llvm::SMRange to LLVM.h 2022-01-26 21:37:23 -08:00
FunctionInterfaces.cpp [mlir][NFC] Add a using for llvm::BitVector to LLVM.h 2022-01-26 21:37:23 -08:00
IntegerSet.cpp [MLIR] Use a shared uniquer for affine maps and integer sets. 2021-12-02 23:49:32 +01:00
IntegerSetDetail.h Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
Location.cpp [mlir] Retain metadata for single loc fusedloc 2022-01-04 15:37:33 -08:00
MLIRContext.cpp [mlir] Keep sorted vector of registered operation names for efficient lookup 2022-02-03 14:19:34 -08:00
Operation.cpp [mlir][NFC] Remove deprecated/old build/fold/parser utilities from OpDefinition 2022-02-07 19:03:58 -08:00
OperationSupport.cpp [mlir][NFC] Add a using for llvm::BitVector to LLVM.h 2022-01-26 21:37:23 -08:00
PatternMatch.cpp [mlir:PDL] Fix bugs in PDLPatternModule merging 2021-12-10 19:38:43 +00:00
Region.cpp [mlir] Make locations required when adding/creating block arguments 2022-01-19 17:35:35 -08:00
RegionKindInterface.cpp [MLIR] Add RegionKindInterface 2020-07-15 14:27:05 -07:00
SubElementInterfaces.cpp [mlir] Add new SubElementAttr/SubElementType Interfaces 2021-06-10 17:23:07 -07:00
SymbolTable.cpp Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
TensorEncoding.cpp [mlir][tensors] Introduce attribute interface/attribute for tensor encoding 2021-04-26 18:31:54 -07:00
TypeDetail.h Apply clang-tidy fixes for llvm-qualified-auto to MLIR (NFC) 2022-01-14 02:26:26 +00:00
TypeRange.cpp [mlir][IR] Refactor the internal implementation of Value 2021-03-03 14:33:37 -08:00
TypeUtilities.cpp [mlir][Arith] Disallow casting between scalable and fixed-length vectors 2022-02-15 17:34:42 +00:00
Types.cpp [mlir][NFC] Move several small methods from .cpp to .h to allow more aggressive inlining 2021-06-23 00:52:26 +00:00
Value.cpp [mlir][NFC] Split the non-templated bits out of IROperand into a base class 2021-06-02 12:48:37 -07:00
Verifier.cpp Apply clang-tidy fixes for performance-for-range-copy to MLIR (NFC) 2022-01-02 22:19:56 +00:00
Visitors.cpp [MLIR] Introduce generic visitors. 2022-01-14 09:15:27 -08:00