Skip to content

Commit

Permalink
Merge pull request #160 from vext01/unsupported-icmp
Browse files Browse the repository at this point in the history
Reject icmp instructions we don't handle.
  • Loading branch information
ptersilie authored May 17, 2024
2 parents c47d7c9 + 0121f6b commit ba5ac65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,15 @@ class YkIRWriter {

void serialiseICmpInst(ICmpInst *I, FuncLowerCtxt &FLCtxt, unsigned BBIdx,
unsigned &InstIdx) {
// We don't support:
// - vectors
// - pointer comparison
if (I->getOperand(0)->getType()->isVectorTy() ||
I->getOperand(0)->getType()->isPointerTy()) {
serialiseUnimplementedInstruction(I, FLCtxt, BBIdx, InstIdx);
return;
}

// opcode:
serialiseOpcode(OpCodeICmp);
// type_idx:
Expand Down

0 comments on commit ba5ac65

Please sign in to comment.