We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8da34b commit b3bddfdCopy full SHA for b3bddfd
llvm/lib/YkIR/YkIRWriter.cpp
@@ -489,6 +489,14 @@ class YkIRWriter {
489
YkIRWriter(Module &M, MCStreamer &OutStreamer)
490
: M(M), OutStreamer(OutStreamer) {}
491
492
+ // Entry point for IR serialisation.
493
+ //
494
+ // The order of serialisation matters.
495
496
+ // - Serialising functions can introduce new types and constants.
497
+ // - Serialising constants can introduce new types.
498
499
+ // So we must serialise functions, then constants, then types.
500
void serialise() {
501
// header:
502
OutStreamer.emitInt32(Magic);
0 commit comments