Chromium Code Reviews| Index: src/llvm2ice.cpp |
| diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
| index fd0cc30cddebedfba7d9f5b4eb3bec629b172ad1..05bfab73386b0058c6bb1057de706d8114a2cdf4 100644 |
| --- a/src/llvm2ice.cpp |
| +++ b/src/llvm2ice.cpp |
| @@ -94,6 +94,8 @@ DisableInternal("externalize", |
| cl::desc("Externalize all symbols")); |
| static cl::opt<bool> |
| DisableTranslation("notranslate", cl::desc("Disable Subzero translation")); |
| +static cl::opt<bool> |
| + DisableIRGeneration("noIRgen", cl::desc("Disable generating Subzero IR.")); |
| static cl::opt<std::string> |
| TranslateOnly("translate-only", cl::desc("Translate only the given function"), |
| cl::init("")); |
| @@ -228,6 +230,9 @@ int main(int argc, char **argv) { |
| cl::ParseCommandLineOptions(argc, argv); |
|
jvoung (off chromium)
2014/11/04 22:30:15
I wonder if there will be an easy way to compile-o
Karl
2014/11/05 21:13:34
Done.
|
| + if (DisableIRGeneration) |
| + DisableTranslation = true; |
| + |
| Ice::VerboseMask VMask = Ice::IceV_None; |
| for (unsigned i = 0; i != VerboseList.size(); ++i) |
| VMask |= VerboseList[i]; |
| @@ -269,6 +274,7 @@ int main(int argc, char **argv) { |
| Flags.TimingFocusOn = TimingFocusOn; |
| Flags.VerboseFocusOn = VerboseFocusOn; |
| Flags.TranslateOnly = TranslateOnly; |
| + Flags.DisableIRGeneration = DisableIRGeneration; |
| Ice::GlobalContext Ctx(Ls, Os, VMask, TargetArch, OptLevel, TestPrefix, |
| Flags); |