projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a1418b
)
Add enum values to CodeGenOpt::Level
author
Sam Clegg
<sbc@chromium.org>
Wed, 30 Jan 2019 02:08:34 +0000
(
02:08
+0000)
committer
Sam Clegg
<sbc@chromium.org>
Wed, 30 Jan 2019 02:08:34 +0000
(
02:08
+0000)
The absolute values of this enum are important at least in that
they get printed by SelectionDAGISel. e.g:
`Before: -O2 ; After: -O0`
Differential Revision: https://reviews.llvm.org/D57430
llvm-svn: 352587
llvm/include/llvm/Support/CodeGen.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/CodeGen.h
b/llvm/include/llvm/Support/CodeGen.h
index
7ac4fab
..
3175b29
100644
(file)
--- a/
llvm/include/llvm/Support/CodeGen.h
+++ b/
llvm/include/llvm/Support/CodeGen.h
@@
-49,10
+49,10
@@
namespace llvm {
// Code generation optimization level.
namespace CodeGenOpt {
enum Level {
- None
,
// -O0
- Less
,
// -O1
- Default
,
// -O2, -Os
- Aggressive
// -O3
+ None
= 0,
// -O0
+ Less
= 1,
// -O1
+ Default
= 2,
// -O2, -Os
+ Aggressive
= 3
// -O3
};
}