diff options
author | ed <ed@FreeBSD.org> | 2009-06-03 13:29:08 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-03 13:29:08 +0000 |
commit | 48ecc7affef226b2bac1e08bdfdc059306a1734c (patch) | |
tree | 4075b1f9165f6c8d2b9a7e98b89a1348669f78fe /include/clang/Frontend/CompileOptions.h | |
parent | f27e5a09a0d815b8a4814152954ff87dadfdefc0 (diff) | |
download | FreeBSD-src-48ecc7affef226b2bac1e08bdfdc059306a1734c.zip FreeBSD-src-48ecc7affef226b2bac1e08bdfdc059306a1734c.tar.gz |
Import Clang, at r72770.
Diffstat (limited to 'include/clang/Frontend/CompileOptions.h')
-rw-r--r-- | include/clang/Frontend/CompileOptions.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/clang/Frontend/CompileOptions.h b/include/clang/Frontend/CompileOptions.h index 1af5e48..34815c8 100644 --- a/include/clang/Frontend/CompileOptions.h +++ b/include/clang/Frontend/CompileOptions.h @@ -23,12 +23,17 @@ namespace clang { /// is optimized and passed to the backend. class CompileOptions { public: + enum InliningMethod { + NoInlining, // Perform no inlining whatsoever. + NormalInlining, // Use the standard function inlining pass. + OnlyAlwaysInlining // Only run the always inlining pass. + }; + unsigned OptimizationLevel : 3; /// The -O[0-4] option specified. unsigned OptimizeSize : 1; /// If -Os is specified. unsigned DebugInfo : 1; /// Should generate deubg info (-g). unsigned UnitAtATime : 1; /// Unused. For mirroring GCC /// optimization selection. - unsigned InlineFunctions : 1; /// Should functions be inlined? unsigned SimplifyLibCalls : 1; /// Should standard library calls be /// treated specially. unsigned UnrollLoops : 1; /// Control whether loops are unrolled. @@ -37,6 +42,9 @@ public: unsigned TimePasses : 1; /// Set when -ftime-report is enabled. unsigned NoCommon : 1; /// Set when -fno-common or C++ is enabled. + /// Inlining - The kind of inlining to perform. + InliningMethod Inlining; + /// CPU - An optional CPU to target. std::string CPU; @@ -50,10 +58,11 @@ public: OptimizeSize = 0; DebugInfo = 0; UnitAtATime = 1; - InlineFunctions = SimplifyLibCalls = UnrollLoops = 0; + SimplifyLibCalls = UnrollLoops = 0; VerifyModule = 1; TimePasses = 0; NoCommon = 0; + Inlining = NoInlining; } }; |