Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28874 Discussions

ifx: pass LLVM options through front-end

foxtran
New Contributor I
916 Views

Dear,

I have tried to look which optimisation pass of LLVM takes long time with option -ftime-report=per-pass-run. However, ifx said that it does not know such option:

ifx: command line warning #10006: ignoring unknown option '-ftime-report=per-pass-run'


How can I pass options to LLVM via ifx front-end? I'm using ifx (IFX) 2023.2.0 20230721

Best regards,
Igor

0 Kudos
1 Solution
Barbara_P_Intel
Employee
884 Views

Not all LLVM compiler options are recognized by ifx. There is an undocumented compiler option -i_tapi that creates <source>.tapi with compiler profile information. It works for both ifx and ifort. 

 

View solution in original post

0 Kudos
5 Replies
Barbara_P_Intel
Employee
885 Views

Not all LLVM compiler options are recognized by ifx. There is an undocumented compiler option -i_tapi that creates <source>.tapi with compiler profile information. It works for both ifx and ifort. 

 

0 Kudos
foxtran
New Contributor I
878 Views

Thanks, Barbara!

It helps!

0 Kudos
Barbara_P_Intel
Employee
876 Views

There is this ifx compiler option: -mllvm <LLVM option>. It passes the option to LLVM. BTW, ftime-report=per-pass-run doesn't work with -mllvm; it's a Clang option.

I was just warned that -i_tapi may get renamed at some point.

 

0 Kudos
foxtran
New Contributor I
872 Views

 Ok! Thank you!

I will remember it.

0 Kudos
Eugene_E_Intel
Employee
424 Views

Note that ifx -c -mllvm -time-passes hello.f90 should work with a recent ifx compiler and should be equivalent to -ftime-report=per-pass-run

 

Reply