Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 ディスカッション

ifx: pass LLVM options through front-end

foxtran
新規コントリビューター II
1,294件の閲覧回数

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 件の賞賛
1 解決策
Barbara_P_Intel
従業員
1,262件の閲覧回数

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. 

 

元の投稿で解決策を見る

5 返答(返信)
Barbara_P_Intel
従業員
1,263件の閲覧回数

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. 

 

foxtran
新規コントリビューター II
1,256件の閲覧回数

Thanks, Barbara!

It helps!

Barbara_P_Intel
従業員
1,254件の閲覧回数

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.

 

foxtran
新規コントリビューター II
1,250件の閲覧回数

 Ok! Thank you!

I will remember it.

Eugene_E_Intel
従業員
802件の閲覧回数

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

 

返信