llvm-project/mlir/lib/IR
Mehdi Amini d5397f4efe Return nullptr on Region::getContainingOperation()/getContainingFunction() instead of asserting
This avoids crashing when trying to dump an operation nested in a region that isn't yet attached to an operation, which is quite useful when debugging.

    This alone won't be enough to print an unlink Operation, it'll display `<<UNLINKED INSTRUCTION>>`.

--

PiperOrigin-RevId: 249496388
2019-06-01 19:56:43 -07:00
..
AffineExpr.cpp AffineExpr: factor uniqu'ing out of MLIRContext.cpp 2019-06-01 19:53:43 -07:00
AffineExprDetail.h AffineExpr: factor uniqu'ing out of MLIRContext.cpp 2019-06-01 19:53:43 -07:00
AffineMap.cpp Add llvm_unreachable in unreachable path to silence GCC warning (NFC) 2019-05-10 19:30:06 -07:00
AffineMapDetail.h Introduce Fourier-Motzkin variable elimination + other cleanup/support 2019-03-29 13:38:24 -07:00
AsmPrinter.cpp Also visit memref element type in AsmPrinter 2019-05-20 13:46:17 -07:00
AttributeDetail.h When changing the type of a Function, also update the type of the respective FunctionAttr. 2019-06-01 19:53:02 -07:00
Attributes.cpp Update Attribute::getDialect/Type::getDialect to return a non-const dialect reference. 2019-06-01 19:56:13 -07:00
Block.cpp Return nullptr on Region::getContainingOperation()/getContainingFunction() instead of asserting 2019-06-01 19:56:43 -07:00
Builders.cpp Refactor PatternRewriter to inherit from FuncBuilder instead of Builder. This is necessary for allowing more complicated rewrites in the future that may do things like update the insertion point (e.g. for rewrites involving regions). 2019-05-20 13:46:26 -07:00
CMakeLists.txt Link MLIRSupport to IR in OSS 2019-05-06 08:20:38 -07:00
Diagnostics.cpp NFC: Fix the name of a comment header block in Diagnostics.cpp. 2019-06-01 19:56:03 -07:00
Dialect.cpp Add support for parsing/printing dialect defined attributes. This also adds support for a pretty syntax for dialects attributes that is synonymous with the pretty syntax for dialect types. This cl also adds a new attribute 'OpaqueAttr' that allows for roundtripping attributes attached to unregistered dialects. 2019-05-20 13:43:05 -07:00
Function.cpp Allow a function to take the name of another existing function. 2019-05-20 13:48:02 -07:00
IntegerSet.cpp Introduce Fourier-Motzkin variable elimination + other cleanup/support 2019-03-29 13:38:24 -07:00
IntegerSetDetail.h Introduce Fourier-Motzkin variable elimination + other cleanup/support 2019-03-29 13:38:24 -07:00
Location.cpp Refactor NameLoc so that it also holds a child location. This removes the awkward use of CallSiteLoc as a variable usage location. 2019-05-20 13:40:52 -07:00
LocationDetail.h Refactor NameLoc so that it also holds a child location. This removes the awkward use of CallSiteLoc as a variable usage location. 2019-05-20 13:40:52 -07:00
MLIRContext.cpp Update Attribute::getDialect/Type::getDialect to return a non-const dialect reference. 2019-06-01 19:56:13 -07:00
Module.cpp Implement initial support for function attributes, including parser, printer, 2019-03-29 13:02:44 -07:00
Operation.cpp Add support for streaming an OperationName into a Diagnostic. 2019-05-20 13:48:28 -07:00
OperationSupport.cpp Rename InstOperand to OpOperand. 2019-03-29 17:50:41 -07:00
PatternMatch.cpp Rewrite the DialectOpConversion patterns to inherit from RewritePattern instead of Pattern. This simplifies the infrastructure a bit by being able to reuse PatternRewriter and the RewritePatternMatcher, but also starts to lay the groundwork for a more generalized legalization framework that can operate on DialectOpConversions as well as normal RewritePatterns. 2019-05-20 13:47:01 -07:00
StandardTypes.cpp Rename VectorOrTensorType to ShapedType 2019-05-20 13:43:58 -07:00
TypeDetail.h Rename VectorOrTensorType to ShapedType 2019-05-20 13:43:58 -07:00
Types.cpp Update Attribute::getDialect/Type::getDialect to return a non-const dialect reference. 2019-06-01 19:56:13 -07:00
Value.cpp Add llvm_unreachable in unreachable path to silence GCC warning (NFC) 2019-05-10 19:30:06 -07:00