LLVM  14.0.0git
OptimizationLevel.cpp
Go to the documentation of this file.
1 //===- OptimizationLevel.cpp ----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 
11 using namespace llvm;
12 
14  /*SpeedLevel*/ 0,
15  /*SizeLevel*/ 0};
17  /*SpeedLevel*/ 1,
18  /*SizeLevel*/ 0};
20  /*SpeedLevel*/ 2,
21  /*SizeLevel*/ 0};
23  /*SpeedLevel*/ 3,
24  /*SizeLevel*/ 0};
26  /*SpeedLevel*/ 2,
27  /*SizeLevel*/ 1};
29  /*SpeedLevel*/ 2,
30  /*SizeLevel*/ 2};
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::OptimizationLevel::O1
static const OptimizationLevel O1
Optimize quickly without destroying debuggability.
Definition: OptimizationLevel.h:57
llvm::OptimizationLevel::O2
static const OptimizationLevel O2
Optimize for fast execution as much as possible without triggering significant incremental compile ti...
Definition: OptimizationLevel.h:74
llvm::OptimizationLevel::O0
static const OptimizationLevel O0
Disable as many optimizations as possible.
Definition: OptimizationLevel.h:41
llvm::OptimizationLevel::Oz
static const OptimizationLevel Oz
A very specialized mode that will optimize for code size at any and all costs.
Definition: OptimizationLevel.h:108
llvm::OptimizationLevel::O3
static const OptimizationLevel O3
Optimize for fast execution as much as possible.
Definition: OptimizationLevel.h:89
llvm::OptimizationLevel::Os
static const OptimizationLevel Os
Similar to O2 but tries to optimize for small code size instead of fast execution without triggering ...
Definition: OptimizationLevel.h:100
llvm::OptimizationLevel
Definition: OptimizationLevel.h:22
OptimizationLevel.h