| Index: src/IceClFlags.cpp
|
| diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
|
| index 746cb3e4adc51d7fbd63383577f5c8fc79a89b0d..fb1a4a9bf079e5a8097c2fc2e6dac57144e6063a 100644
|
| --- a/src/IceClFlags.cpp
|
| +++ b/src/IceClFlags.cpp
|
| @@ -145,6 +145,13 @@ cl::opt<Ice::TargetArch> TargetArch(
|
| clEnumValN(Ice::Target_MIPS32, "mips", "mips32"),
|
| clEnumValN(Ice::Target_MIPS32, "mips32", "mips32 (same as mips)"),
|
| clEnumValEnd));
|
| +
|
| +cl::opt<uint32_t> TestStackExtra(
|
| + "test-stack-extra",
|
| + cl::desc(
|
| + "Extra amount of stack to add to the frame in bytes (for testing)."),
|
| + cl::init(0));
|
| +
|
| cl::opt<Ice::TargetInstructionSet> TargetInstructionSet(
|
| "mattr", cl::desc("Target architecture attributes"),
|
| cl::init(Ice::BaseInstructionSet),
|
| @@ -356,6 +363,7 @@ void ClFlags::resetClFlags(ClFlags &OutFlags) {
|
| OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff;
|
| OutFlags.ReorderFunctionsWindowSize = 8;
|
| OutFlags.TArch = TargetArch_NUM;
|
| + OutFlags.TestStackExtra = 0;
|
| OutFlags.VMask = IceV_None;
|
| // IceString fields.
|
| OutFlags.DefaultFunctionPrefix = "";
|
| @@ -412,6 +420,7 @@ void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
|
| OutFlags.setTargetArch(::TargetArch);
|
| OutFlags.setTargetInstructionSet(::TargetInstructionSet);
|
| OutFlags.setTestPrefix(::TestPrefix);
|
| + OutFlags.setTestStackExtra(::TestStackExtra);
|
| OutFlags.setTimeEachFunction(::TimeEachFunction);
|
| OutFlags.setTimingFocusOn(::TimingFocusOn);
|
| OutFlags.setTranslateOnly(::TranslateOnly);
|
|
|