[llvm-branch-commits] [llvm] [Instrumentor] Add a global function regexp to limit the instrumentation (PR #196234)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 7 01:56:37 PDT 2026


================
@@ -190,7 +193,11 @@ bool InstrumentorImpl::shouldInstrumentTarget() {
 bool InstrumentorImpl::shouldInstrumentFunction(Function &Fn) {
   if (Fn.isDeclaration())
     return false;
-  return !Fn.getName().starts_with(IConf.getRTName()) ||
+  bool RegexMatches = true;
+  const auto FunctionRegexStr = IConf.FunctionRegex->getString();
----------------
arsenm wrote:

No auto, I have no idea which string type this is 

https://github.com/llvm/llvm-project/pull/196234


More information about the llvm-branch-commits mailing list