From 60a91d63afab47a172690974c8b566af74072932 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 9 Oct 2018 15:09:32 -0400 Subject: Added -serial-ir command line option (#664) * Added -serial-ir option, to make generateIR always serialize in and out before further processing. Testing out serialization, and adding a kind of 'firewall' between compiler front end and backend. * Reduce peak memory usage, by discarding IR when stored in serialized form. Typo fix. --- source/slang/options.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/options.cpp') diff --git a/source/slang/options.cpp b/source/slang/options.cpp index 4d4b61fc8..944f66403 100644 --- a/source/slang/options.cpp +++ b/source/slang/options.cpp @@ -320,6 +320,10 @@ struct OptionsParser { requestImpl->shouldDumpIR = true; } + else if (argStr == "-serial-ir") + { + requestImpl->useSerialIRBottleneck = true; + } else if(argStr == "-validate-ir" ) { requestImpl->shouldValidateIR = true; -- cgit v1.2.3