SPEC CPU® 2026 Compiler Flags for LLVM

Flag descriptions for LLVM

Note: The LLVM compilers provide a wide array of compiler options, occasionally described in detail and readily available at https://clang.llvm.org/docs/ClangCommandLineReference.html and https://flang.llvm.org/docs/FlangCommandLineReference.html. This SPEC CPU flags file contains excerpts from and brief summaries of portions of that documentation.

SPEC's modifications are:
Copyright 2026 Standard Performance Evaluation Corporation

Permission is granted to copy, distribute and/or modify this document under the terms of the Apache v2.0 License with LLVM Exceptions.

Sections

Selecting one of the following will take you directly to that section:


Optimization Flags


Portability Flags


Compiler Flags


Other Flags


Commands and Options Used to Submit Benchmark Runs

SPECrate runs might use one of these methods to bind processes to specific processors, depending on the config file.


Commands and Options Used for Feedback-Directed Optimization

No special commands are needed for feedback-directed optimization, other than the compiler profile  flags.


Shell, Environment, and Other Software Settings

One or more of the following may have been used in the run. If so, it will be listed in the notes sections. Here is a brief guide to understanding them: