Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

  1. //===-- llvm/Support/CodeGen.h - CodeGen Concepts ---------------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file define some types which define code generation concepts. For
  11. // example, relocation model.
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #ifndef LLVM_SUPPORT_CODEGEN_H
  15. #define LLVM_SUPPORT_CODEGEN_H
  16. namespace llvm {
  17. // Relocation model types.
  18. namespace Reloc {
  19. enum Model { Default, Static, PIC_, DynamicNoPIC };
  20. }
  21. // Code model types.
  22. namespace CodeModel {
  23. enum Model { Default, JITDefault, Small, Kernel, Medium, Large };
  24. }
  25. // TLS models.
  26. namespace TLSModel {
  27. enum Model {
  28. GeneralDynamic,
  29. LocalDynamic,
  30. InitialExec,
  31. LocalExec
  32. };
  33. }
  34. // Code generation optimization level.
  35. namespace CodeGenOpt {
  36. enum Level {
  37. None, // -O0
  38. Less, // -O1
  39. Default, // -O2, -Os
  40. Aggressive // -O3
  41. };
  42. }
  43. } // end llvm namespace
  44. #endif