[PATCH] D104516: [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage
    Uday Bondhugula via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jun 18 04:00:10 PDT 2021
    
    
  
bondhugula added inline comments.
================
Comment at: mlir/lib/Pass/Pass.cpp:591-593
+  std::vector<std::atomic<bool>> activePMs(asyncExecutors.size());
+  for (std::atomic<bool> &isActive : activePMs)
+    isActive = false;
----------------
std::vector<std::atomic<bool>> activePMs(asyncExecutors.size(), 
                                                                         std::atomic<bool>{false});
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104516/new/
https://reviews.llvm.org/D104516
    
    
More information about the llvm-commits
mailing list