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

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 17:17:36 PDT 2020


rriddle created this revision.
rriddle added a reviewer: lattner.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, bader, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, mehdi_amini, eraman.
Herald added a reviewer: mravishankar.
Herald added a reviewer: antiagainst.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79266

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79266.261549.patch
Type: text/x-patch
Size: 34581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200502/7ccad0e4/attachment-0001.bin>


More information about the llvm-commits mailing list