[all-commits] [llvm/llvm-project] cb9ae0: [mlir] Add a new context flag for disabling/enabli...

River Riddle via All-commits all-commits at lists.llvm.org
Sat May 2 12:35:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cb9ae0025c4ed966a3a9b5539a9ff6b6e865516f
      https://github.com/llvm/llvm-project/commit/cb9ae0025c4ed966a3a9b5539a9ff6b6e865516f
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-05-02 (Sat, 02 May 2020)

  Changed paths:
    M mlir/docs/PassManagement.md
    M mlir/include/mlir/IR/MLIRContext.h
    M mlir/include/mlir/Pass/PassManager.h
    M mlir/include/mlir/Support/StorageUniquer.h
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Pass/IRPrinting.cpp
    M mlir/lib/Pass/Pass.cpp
    M mlir/lib/Pass/PassManagerOptions.cpp
    M mlir/lib/Support/StorageUniquer.cpp
    M mlir/lib/Transforms/Inliner.cpp
    M mlir/test/Dialect/SPIRV/availability.mlir
    M mlir/test/Dialect/SPIRV/target-env.mlir
    M mlir/test/IR/test-matchers.mlir
    M mlir/test/Pass/ir-printing.mlir
    M mlir/test/Pass/pass-timing.mlir

  Log Message:
  -----------
  [mlir] Add a new context flag for disabling/enabling multi-threading

This is useful for several reasons:
* In some situations the user can guarantee that thread-safety isn't necessary and don't want to pay the cost of synchronization, e.g., when parsing a very large module.

* For things like logging threading is not desirable as the output is not guaranteed to be in stable order.

This flag also subsumes the pass manager flag for multi-threading.

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




More information about the All-commits mailing list