[all-commits] [llvm/llvm-project] c6828e: [mlir] Make ConversionTarget dynamic legality call...

Caitlyn Cano via All-commits all-commits at lists.llvm.org
Tue Oct 12 03:06:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6828e0cea73f89a79db008da0e902c790cdee88
      https://github.com/llvm/llvm-project/commit/c6828e0cea73f89a79db008da0e902c790cdee88
  Author: Caitlyn Cano <caitlyncano at google.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/unittests/CMakeLists.txt
    A mlir/unittests/Transforms/CMakeLists.txt
    A mlir/unittests/Transforms/DialectConversion.cpp

  Log Message:
  -----------
  [mlir] Make ConversionTarget dynamic legality callbacks composable

* Change callback signature `bool(Operation *)` -> `Optional<bool>(Operation *)`
* addDynamicallyLegalOp add callback to the chain
* If callback returned empty `Optional` next callback in chain will be called

Differential Revision: https://reviews.llvm.org/D110487




More information about the All-commits mailing list