[PATCH] D77760: [mlir][NFC] Wrap the cl::opts in JitRunner within a struct to avoid global initializers.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 15:46:23 PDT 2020


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

This avoids the need for having global static initializers within the JITRunner support library, and only constructs the options when the runner is invoked.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77760

Files:
  mlir/lib/Support/JitRunner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77760.256125.patch
Type: text/x-patch
Size: 11840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200408/30fc76b1/attachment.bin>


More information about the llvm-commits mailing list