OptimizationLevel.cpp 1001 B

123456789101112131415161718192021222324252627282930
  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. #include "llvm/Passes/OptimizationLevel.h"
  9. using namespace llvm;
  10. const OptimizationLevel OptimizationLevel::O0 = {
  11. /*SpeedLevel*/ 0,
  12. /*SizeLevel*/ 0};
  13. const OptimizationLevel OptimizationLevel::O1 = {
  14. /*SpeedLevel*/ 1,
  15. /*SizeLevel*/ 0};
  16. const OptimizationLevel OptimizationLevel::O2 = {
  17. /*SpeedLevel*/ 2,
  18. /*SizeLevel*/ 0};
  19. const OptimizationLevel OptimizationLevel::O3 = {
  20. /*SpeedLevel*/ 3,
  21. /*SizeLevel*/ 0};
  22. const OptimizationLevel OptimizationLevel::Os = {
  23. /*SpeedLevel*/ 2,
  24. /*SizeLevel*/ 1};
  25. const OptimizationLevel OptimizationLevel::Oz = {
  26. /*SpeedLevel*/ 2,
  27. /*SizeLevel*/ 2};