[all-commits] [llvm/llvm-project] 293c52: [mlir][NFC] Wrap the cl::opts in JitRunner within ...

River Riddle via All-commits all-commits at lists.llvm.org
Wed Apr 8 18:38:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 293c5210ecb53d706b3d144f9a295a002774ea67
      https://github.com/llvm/llvm-project/commit/293c5210ecb53d706b3d144f9a295a002774ea67
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M mlir/lib/Support/JitRunner.cpp

  Log Message:
  -----------
  [mlir][NFC] Wrap the cl::opts in JitRunner within a struct to avoid global initializers.

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

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




More information about the All-commits mailing list