Skip to content

Commit

Permalink
Serialise bitcasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
vext01 committed Nov 8, 2024
1 parent 425082f commit c0e82f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ enum CastKind {
CastKindSIToFP = 3,
CastKindFPExt = 4,
CastKindFPToSI = 5,
CastKindBitCast = 6
};

// A predicate used in an integer comparison.
Expand Down Expand Up @@ -1255,6 +1256,8 @@ class YkIRWriter {
return CastKindTrunc;
case Instruction::FPToSI:
return CastKindFPToSI;
case Instruction::BitCast:
return CastKindBitCast;
default:
return nullopt;
}
Expand Down

0 comments on commit c0e82f4

Please sign in to comment.