@@ -351,16 +351,6 @@ class YkIRWriter {
351
351
InstIdx++;
352
352
}
353
353
354
- void serialiseStore (StoreInst *I, ValueLoweringMap &VLMap, unsigned BBIdx,
355
- unsigned &InstIdx)
356
- {
357
- if (I->getNumOperands () == 2 ) {
358
- serialiseInstGeneric (I, VLMap, BBIdx, InstIdx, OpCode::Store);
359
- } else {
360
- serialiseUnimplementedInstruction (I, VLMap, BBIdx, InstIdx);
361
- }
362
- }
363
-
364
354
void serialiseInst (Instruction *I, ValueLoweringMap &VLMap, unsigned BBIdx,
365
355
unsigned &InstIdx) {
366
356
// Macros to help dispatch to serialisers.
@@ -383,12 +373,12 @@ class YkIRWriter {
383
373
GENERIC_INST_SERIALISE (I, llvm::BinaryOperator, BinaryOperator)
384
374
GENERIC_INST_SERIALISE (I, ReturnInst, Ret)
385
375
GENERIC_INST_SERIALISE (I, llvm::InsertValueInst, InsertValue)
376
+ GENERIC_INST_SERIALISE (I, StoreInst, Store)
386
377
387
378
CUSTOM_INST_SERIALISE (I, AllocaInst, serialiseAllocaInst)
388
379
CUSTOM_INST_SERIALISE (I, CallInst, serialiseCallInst)
389
380
CUSTOM_INST_SERIALISE (I, BranchInst, serialiseBranchInst)
390
381
CUSTOM_INST_SERIALISE (I, GetElementPtrInst, serialiseGetElementPtr)
391
- CUSTOM_INST_SERIALISE (I, StoreInst, serialiseStore)
392
382
393
383
// GENERIC_INST_SERIALISE and CUSTOM_INST_SERIALISE do an early return upon
394
384
// a match, so if we get here then the instruction wasn't handled.
0 commit comments