[all-commits] [llvm/llvm-project] fce45b: [Frontend] Consolidate frontend timer setup in Com...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Thu Apr 16 08:27:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fce45b3e961cac33e6b26725405a14a5b1f5d733
      https://github.com/llvm/llvm-project/commit/fce45b3e961cac33e6b26725405a14a5b1f5d733
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M clang/include/clang/Frontend/CompilerInstance.h
    M clang/lib/Frontend/CompilerInstance.cpp
    A clang/test/Interpreter/ftime-report.cpp
    M clang/tools/driver/cc1_main.cpp
    M clang/unittests/Support/TimeProfilerTest.cpp

  Log Message:
  -----------
  [Frontend] Consolidate frontend timer setup in CompilerInstance::ExecuteAction. NFC (#192266)

Move the frontend timer creation (-ftime-report) and TimeTraceScope
("ExecuteCompiler") from cc1_main into CompilerInstance::ExecuteAction
via a new private PrepareForExecution() method. This ensures all tools
that use ExecuteAction (cc1, clang-repl, libclang, etc.) get consistent
timing infrastructure without duplicating setup code.



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