[all-commits] [llvm/llvm-project] b0ff47: [LLVM] Change `ModulePass::skipModule` to take a c...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Jun 30 07:23:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0ff473340e328ff86727470bee4568e4c5a0e38
      https://github.com/llvm/llvm-project/commit/b0ff473340e328ff86727470bee4568e4c5a0e38
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/include/llvm/IR/OptBisect.h
    M llvm/include/llvm/Pass.h
    M llvm/lib/Analysis/LoopPass.cpp
    M llvm/lib/Analysis/RegionPass.cpp
    M llvm/lib/IR/OptBisect.cpp
    M llvm/lib/IR/Pass.cpp
    M llvm/lib/Passes/StandardInstrumentations.cpp
    M llvm/unittests/IR/LegacyPassManagerTest.cpp

  Log Message:
  -----------
  [LLVM] Change `ModulePass::skipModule` to take a const reference (#146168)

Change `ModulePass::skipModule` to take const Module reference.
Additionally, make `OptPassGate::shouldRunPass` const as well as for
most implementations it's a const query. For `OptBisect`, make
`LastBisectNum` mutable so it could be updated in `shouldRunPass`.

Additional minor cleanup: Change all StringRef arguments to simple
StringRef (no const or reference), change `OptBisect::Disabled` to
constexpr.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list