[clang] [flang] [flang][flang-driver] Support flag -finstrument-functions (PR #137996)

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 30 11:07:22 PDT 2025


================
@@ -124,6 +128,8 @@ struct MLIRToLLVMPassPipelineConfig : public FlangEPCallBacks {
   bool UnsafeFPMath = false; ///< Set unsafe-fp-math attribute for functions.
   bool NSWOnLoopVarInc = true; ///< Add nsw flag to loop variable increments.
   bool EnableOpenMP = false; ///< Enable OpenMP lowering.
+  std::string InstrumentFunctionsEntry = "";
----------------
tarunprabhu wrote:

Might help to add a brief comment clarifying that these are the names of the functions that will be called on entry and exit of an instrumented function

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


More information about the cfe-commits mailing list