summaryrefslogtreecommitdiff
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-10-09 15:09:32 -0400
committerGitHub <noreply@github.com>2018-10-09 15:09:32 -0400
commit60a91d63afab47a172690974c8b566af74072932 (patch)
treea5d2d3592618deecbf55f91cca8824600fb12036 /source/slang/compiler.h
parent7ea9ff03f4fc766f21d5896aea220d17f236dd70 (diff)
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.
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h
index bf71dd217..a83d8b334 100644
--- a/source/slang/compiler.h
+++ b/source/slang/compiler.h
@@ -320,7 +320,7 @@ namespace Slang
List<RefPtr<TranslationUnitRequest> > translationUnits;
// Entry points we've been asked to compile (each
- // assocaited with a translation unit).
+ // associated with a translation unit).
List<RefPtr<EntryPointRequest> > entryPoints;
// Types constructed by reflection API
@@ -342,6 +342,10 @@ namespace Slang
bool shouldValidateIR = false;
bool shouldSkipCodegen = false;
+ // If true then generateIR will serialize out IR, and serialize back in again. Making
+ // serialization a bottleneck or firewall between the front end and the backend
+ bool useSerialIRBottleneck = false;
+
// How should `#line` directives be emitted (if at all)?
LineDirectiveMode lineDirectiveMode = LineDirectiveMode::Default;