Skip to content

Commit

Permalink
Merge pull request #212 from vext01/bitcast
Browse files Browse the repository at this point in the history
Serialise bitcasts.
  • Loading branch information
ltratt authored Nov 8, 2024
2 parents 425082f + c0e82f4 commit fa46a94
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 fa46a94

Please sign in to comment.