================ @@ -24,6 +24,11 @@ CODEGENOPT(OptimizationLevel, 2, 0) ///< The -O[0-3] option specified. CODEGENOPT(DebugPassManager, 1, 0) ///< Prints debug information for the new ///< pass manager. +ENUM_CODEGENOPT(ProfileInstr, ProfileInstrKind, 2, ProfileNone) +ENUM_CODEGENOPT(ProfileUse, ProfileInstrKind, 2, ProfileNone) +/// Whether emit extra debug info for sample pgo profile collection. +CODEGENOPT(DebugInfoForProfiling, 1, 0) +CODEGENOPT(AtomicProfileUpdate , 1, 0) ///< Set -fprofile-update=atomic ---------------- fanju110 wrote:
Thanks to your suggestion, I finally decided to remove this definition for now and add it in the future when I add this feature. Secondly, another reviewer suggested that I try to reuse the code as much as possible instead of copying it directly from clang, so I've made some major changes to my code: I've ported some of the definitions from clang to the llvm namespace to make it easier for flang to reuse them directly. Please review my code. Thank you for reviewing my code. https://github.com/llvm/llvm-project/pull/136098 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits