[flang-commits] [clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Thu Sep 5 04:05:03 PDT 2024


================
@@ -143,6 +144,14 @@ class CompilerInvocation : public CompilerInvocationBase {
       },
   };
 
+  /// Whether to time the invocation. Set when -ftime-report or -ftime-report=
+  /// is enabled.
+  bool enableTimers;
+
+  /// Whether to report the timing of each run of an LLVM pass. Set when
+  /// -ftime-report=per-pass-run is enabled.
+  bool timeLLVMPassesPerRun;
----------------
tblah wrote:

I wonder if it would be better not to support `-ftime-report=` because we can't (currently) provide equivalent functionality for the MLIR passes, and these will all be dead untested code at the moment.

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


More information about the flang-commits mailing list