qopt-report, Qopt-report

Enables the generation of transformation remarks report when specified with icx or icpx.This content is specific to C++; it does not apply to DPC++.

Syntax

Linux:

-qopt-report

Windows:

/Qopt-report

Arguments

None

Default

OFF

No optimization report is generated.

Description

This option enables the generation of transformation remarks report when specified with icx or icpx.

Use this option to emit a YAML-formatted optimization report for the the source file being compiled. For example:

  icx -fiopenmp -qopt-report foo.c

This command will generate a file called foo.opt.yaml containing the optimization report messages.

Use opt-viewer.py (from llvm/tools/opt-viewer) to create html files from the YAML file. For example:

  opt-viewer.py foo.opt.yaml 

You can use any web-browser to open the html file to see the opt-report messages displayed inline with the original. For example:

  Firefox html/foo.c.html source code

IDE Equivalent

None

Alternate Options

None