Skip to content

Commit

Permalink
Merge pull request #200 from vext01/phi-type
Browse files Browse the repository at this point in the history
Serialise the type of a PHI operation.
  • Loading branch information
ltratt authored Sep 13, 2024
2 parents 547a492 + 9be9a1d commit dbc1aca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,8 @@ class YkIRWriter {

// opcode:
serialiseOpcode(OpCodePHI);
// ty_idx:
OutStreamer.emitSizeT(typeIndex(I->getType()));
// num_incoming:
size_t NumIncoming = I->getNumIncomingValues();
OutStreamer.emitSizeT(NumIncoming);
Expand Down

0 comments on commit dbc1aca

Please sign in to comment.