summaryrefslogtreecommitdiffstats
path: root/source/slang/bytecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/bytecode.h')
-rw-r--r--source/slang/bytecode.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/source/slang/bytecode.h b/source/slang/bytecode.h
index 1ea16406f..f38007ba9 100644
--- a/source/slang/bytecode.h
+++ b/source/slang/bytecode.h
@@ -225,11 +225,27 @@ struct BCHeader
// kinds of data without having to revise
// the schema here.
- // The bytecode representation of the module
- BCPtr<BCModule> module;
+ // TODO: should include AST declaration structure
+ // here, which can be used for refleciton, and
+ // also loaded to resolve dependencies when
+ // compiling other modules.
+
+ // TODO: Include the original entry point requests?
+
+ // Zero or more IR modules, corresponding to
+ // the translation units of the original compile
+ // request.
+ uint32_t moduleCount;
+ BCPtr<BCPtr<BCModule>> modules;
+
+ // TODO: should enumerate targets here, and
+ // include reflection layout info + compiled
+ // entry points for each target.
};
-
+struct CompileRequest;
+void generateBytecodeForCompileRequest(
+ CompileRequest* compileReq);
}