Chromium Code Reviews| Index: src/IceClFlags.h |
| diff --git a/src/IceClFlags.h b/src/IceClFlags.h |
| index 3b9b0067601d54600902de4ca5dead4be7fa563d..bb3dc8f593632b7664adcf0d167183316701148c 100644 |
| --- a/src/IceClFlags.h |
| +++ b/src/IceClFlags.h |
| @@ -79,7 +79,6 @@ public: |
| void setGenerateUnitTestMessages(bool NewValue) { |
| GenerateUnitTestMessages = NewValue; |
| } |
| - |
|
John
2015/06/24 00:24:00
why was this removed?
qining
2015/06/24 01:20:40
Done.
|
| bool getPhiEdgeSplit() const { return PhiEdgeSplit; } |
| void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; } |
| @@ -151,6 +150,30 @@ public: |
| return RandomizeAndPoolImmediatesThreshold; |
| } |
| + void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; } |
| + |
|
John
2015/06/24 00:24:00
to be consistent with the rest of this file do not
qining
2015/06/24 01:20:39
Done.
|
| + bool shouldReorderFunctions() const { return ReorderFunctions; } |
| + |
| + void setReorderFunctionsWindowSize(uint32_t Size) { |
| + ReorderFunctionsWindowSize = Size; |
| + } |
| + |
| + uint32_t getReorderFunctionsWindowSize() const { |
| + return ReorderFunctionsWindowSize; |
| + } |
| + |
| + void setShouldReorderGlobalVariables(bool Option) { |
| + ReorderGlobalVariables = Option; |
| + } |
| + |
| + bool shouldReorderGlobalVariables() const { return ReorderGlobalVariables; } |
| + |
| + void setShouldReorderPooledConstants(bool Option) { |
| + ReorderPooledConstants = Option; |
| + } |
| + |
| + bool shouldReorderPooledConstants() const { return ReorderPooledConstants; } |
| + |
| // IceString accessors. |
| const IceString &getDefaultFunctionPrefix() const { |
| @@ -231,6 +254,16 @@ private: |
| RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; |
| uint32_t RandomizeAndPoolImmediatesThreshold; |
| + // Function reordering options |
| + bool ReorderFunctions; |
| + uint32_t ReorderFunctionsWindowSize; |
| + |
| + // Global variable reordering option |
| + bool ReorderGlobalVariables; |
| + |
| + // Pooled constant reordering option |
| + bool ReorderPooledConstants; |
| + |
| size_t NumTranslationThreads; // 0 means completely sequential |
| uint64_t RandomSeed; |
| }; |