llvm-project/mlir/lib/IR
Sergei Grechanik 27df7158fe [mlir] Fix dumping invalid ops
This patch fixes the crash when printing some ops (like affine.for and
scf.for) when they are dumped in invalid state, e.g. during pattern
application. Now the AsmState constructor verifies the operation
first and switches to generic operation printing when the verification
fails. Also operations are now printed in generic form when emitting
diagnostics and the severity level is Error.

Reviewed By: rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D117834
2022-03-07 08:32:31 -08:00
..
AffineExpr.cpp Apply clang-tidy fixes for readability-simplify-boolean-expr to MLIR (NFC) 2022-03-07 10:41:45 +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] Fix dumping invalid ops 2022-03-07 08:32:31 -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 Revert "[mlir] Add extensible dialects" 2022-03-03 10:30:50 +00:00
Diagnostics.cpp [mlir] Fix dumping invalid ops 2022-03-07 08:32:31 -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] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
Operation.cpp [mlir] Fix dumping invalid ops 2022-03-07 08:32:31 -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 [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
Visitors.cpp [MLIR] Introduce generic visitors. 2022-01-14 09:15:27 -08:00