llvm-project/mlir/lib
River Riddle e4628b79fb Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull
* dyn_cast_or_null
      - This will first check if the operation is null before trying to 'dyn_cast':

        Value *v = ...;
        if (auto forOp = dyn_cast_or_null<AffineForOp>(v->getDefiningOp()))
          ...
    * isa_nonnull
      - This will first check if the pointer is null before trying to 'isa':

        Value *v = ...;
        if (isa_nonnull<AffineForOp>(v->getDefiningOp());
          ...

--

PiperOrigin-RevId: 242171343
2019-04-07 18:20:07 -07:00
..
AffineOps Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull 2019-04-07 18:20:07 -07:00
Analysis Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull 2019-04-07 18:20:07 -07:00
Dialect Rewrite the verify hooks on operations to use LogicalResult instead of bool. This also changes the return of Operation::emitError/emitOpError to LogicalResult as well. 2019-04-02 13:40:47 -07:00
EDSC Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull 2019-04-07 18:20:07 -07:00
ExecutionEngine ExecutionEngine: allow for running MLIR passes during JIT-compilation 2019-04-07 18:19:23 -07:00
FxpMathOps Add CMakeLists.txt for Quantization and FxpMathOps dialects (and misc fixes to build with OSS setup). 2019-04-03 19:22:05 -07:00
IR Add methods for building array attributes in Builder 2019-04-07 18:19:56 -07:00
LLVMIR Add fake-use for variable in LLVMDialect.cpp to fix opt build. 2019-04-02 16:32:34 -07:00
Parser Rename UnknownType to OpaqueType (NFC) 2019-04-03 19:21:47 -07:00
Pass Update the Function and Module verifiers to return LogicalResult instead of bool. 2019-04-02 13:40:20 -07:00
Quantization [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
StandardOps Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull 2019-04-07 18:20:07 -07:00
Support Add build files and update README. 2019-03-30 11:23:22 -07:00
TableGen Add methods for building array attributes in Builder 2019-04-07 18:19:56 -07:00
Target ExecutionEngine: allow for running MLIR passes during JIT-compilation 2019-04-07 18:19:23 -07:00
Transforms Add new utilities for RTTI Operation casting: dyn_cast_or_null and isa_nonnull 2019-04-07 18:20:07 -07:00
Translation Add build files and update README. 2019-03-30 11:23:22 -07:00
VectorOps NFC: Replace usages of iterator_range<operand_iterator> with operand_range. 2019-04-05 07:42:29 -07:00
CMakeLists.txt Add CMakeLists.txt for Quantization and FxpMathOps dialects (and misc fixes to build with OSS setup). 2019-04-03 19:22:05 -07:00