Feature Options

Describes featured enhancements in CCE Clang

These options have been added to Clang to support CCE features.

-fsave-decompile
Generate decompile (.dc) and IR (.ll) files prior to optimization, vectorization, and code generation, as well as after LTO. A decompile is a higher-level presentation of the IR that looks similar to C source code, but cannot be compiled. Use the decompile to gain insight about restructuring and optimization changes made by the compiler.
-fsave-loopmark
Generate a loopmark listing file (.lst) that shows which optimizations were applied to which parts of the source code.
-floopmark-style
Controls the style of the loopmark listing file produced when -fsave-loopmark is used. Allowed values are grouped (all messages placed at the end of the listing) and interspersed (each message placed after the relevant source code line). The default is grouped.
-finstrument-loops
Instrument loops to gather profile data to use with CrayPAT.
-finstrument-openmp
Turns the insertion of the CrayPat OpenMP and accelerator tracing calls on and off.
-fcray-program-library-path=directory
Create and use a persistent repository of compiler information specified by directory.
The program library repository is implemented as a directory and the information contained in the program library is built up with each compiler invocation. Any compilation that does not have the -fcray-program-library-path option will not add information to this repository.
Because of the persistence of the program library, it is the user's responsibility to manage it. For example, rm -r directory might be added to the "make clean" target in an application Makefile. Because the program library is a directory, use rm -r to remove it.
If an application Makefile works by creating files in multiple directories during a single build, then directory should be an absolute path, otherwise multiple and incomplete program library repositories will be created. For example, avoid -fcray-program-library-path=./pl and instead use -fcray-program-library-path=/fullpath/builddir/pl.
This option may be specified with either an equals sign or a space before directory.
-fcray-trapping-math
Generate optimized trap-safe floating point code. This option disables any optimization which would introduce a trap where one did not exist in the source code. The default is -fno-cray-trapping-math.