Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: unittest/BitcodeMunge.cpp

Issue 1834473002: Allow Subzero to parse function blocks in parallel. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up code. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/PNaClTranslator.cpp ('K') | « tests_lit/parse_errs/insertextract-err.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittest/BitcodeMunge.cpp
diff --git a/unittest/BitcodeMunge.cpp b/unittest/BitcodeMunge.cpp
index c5f0ca9ac8a52484ebdd796904d827a922757421..109d900edeabb9e2b2fdb34c2fc7078a6f3e1cfd 100644
--- a/unittest/BitcodeMunge.cpp
+++ b/unittest/BitcodeMunge.cpp
@@ -26,6 +26,8 @@ void IceTest::SubzeroBitcodeMunger::resetMungeFlags() {
Flags.setOutFileType(Ice::FT_Iasm);
Flags.setTargetArch(Ice::Target_X8632);
Flags.setVerbose(Ice::IceV_Instructions);
+ Flags.setNumTranslationThreads(0);
+ Flags.setVerbose(Ice::IceV_None);
}
bool IceTest::SubzeroBitcodeMunger::runTest(const uint64_t Munges[],
@@ -34,6 +36,7 @@ bool IceTest::SubzeroBitcodeMunger::runTest(const uint64_t Munges[],
const bool AddHeader = true;
setupTest(Munges, MungeSize, AddHeader);
Ice::GlobalContext Ctx(DumpStream, DumpStream, DumpStream, nullptr);
+ Ctx.startWorkerThreads();
Ice::PNaClTranslator Translator(&Ctx);
const char *BufferName = "Test";
Flags.setDisableTranslation(DisableTranslation);
« src/PNaClTranslator.cpp ('K') | « tests_lit/parse_errs/insertextract-err.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698