| Index: src/IceClFlags.cpp
|
| diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
|
| index 60117fd0665bed5c42f77ef224cf2c1d29ad80e0..4a1398b21873956c538d2968bf7716ca1e96ddf2 100644
|
| --- a/src/IceClFlags.cpp
|
| +++ b/src/IceClFlags.cpp
|
| @@ -90,6 +90,9 @@ cl::opt<bool>
|
| FunctionSections("ffunction-sections",
|
| cl::desc("Emit functions into separate sections"));
|
|
|
| +cl::opt<bool> MockBoundsCheck("mock-bounds-check",
|
| + cl::desc("Mock bounds checking on loads/stores"));
|
| +
|
| // Number of translation threads (in addition to the parser thread and
|
| // the emitter thread). The special case of 0 means purely
|
| // sequential, i.e. parser, translator, and emitter all within the
|
| @@ -364,6 +367,7 @@ void ClFlags::resetClFlags(ClFlags &OutFlags) {
|
| OutFlags.ForceMemIntrinOpt = false;
|
| OutFlags.FunctionSections = false;
|
| OutFlags.GenerateUnitTestMessages = false;
|
| + OutFlags.MockBoundsCheck = false;
|
| OutFlags.PhiEdgeSplit = false;
|
| OutFlags.RandomNopInsertion = false;
|
| OutFlags.RandomRegAlloc = false;
|
| @@ -426,6 +430,7 @@ void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
|
| OutFlags.setFunctionSections(::FunctionSections);
|
| OutFlags.setNumTranslationThreads(::NumThreads);
|
| OutFlags.setOptLevel(::OLevel);
|
| + OutFlags.setMockBoundsCheck(::MockBoundsCheck);
|
| OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit);
|
| OutFlags.setRandomSeed(::RandomSeed);
|
| OutFlags.setRandomizeAndPoolImmediatesOption(
|
|
|