================
@@ -1099,6 +1102,26 @@ void Flang::ConstructJob(Compilation &C, const JobAction 
&JA,
   Args.addAllArgs(
       CmdArgs, {options::OPT_fprofile_generate, options::OPT_fprofile_use_EQ});
 
+  if (!(IsCudaDevice || IsHIPDevice)) {
+    // recognise options: -fprofile-sample-use= and -fno-profile-sample-use=
+    if (Arg *A = getLastProfileSampleUseArg(Args)) {
----------------
tarunprabhu wrote:

Some of this code seems to be similar to clang. But there are a number of other 
options profiling-related options that clang supports that flang does not. Are 
there any plans to support those as well?

I ask because then we should consider sharing that code at some point. For now, 
this implementation is fine.

https://github.com/llvm/llvm-project/pull/188697
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to