}
(*uop)->setLastMicroop();
+
+ for (StaticInstPtr *curUop = microOps;
+ !(*curUop)->isLastMicroop(); curUop++) {
+ MicroOp * uopPtr = dynamic_cast<MicroOp *>(curUop->get());
+ assert(uopPtr);
+ uopPtr->setDelayedCommit();
+ }
}
MacroVFPMemOp::MacroVFPMemOp(const char *mnem, ExtMachInst machInst,
assert(numMicroops == i);
microOps[numMicroops - 1]->setLastMicroop();
+
+ for (StaticInstPtr *curUop = microOps;
+ !(*curUop)->isLastMicroop(); curUop++) {
+ MicroOp * uopPtr = dynamic_cast<MicroOp *>(curUop->get());
+ assert(uopPtr);
+ uopPtr->setDelayedCommit();
+ }
}
}
return ones;
}
+class MicroOp : public PredOp
+{
+ protected:
+ MicroOp(const char *mnem, ExtMachInst machInst, OpClass __opClass)
+ : PredOp(mnem, machInst, __opClass)
+ {
+ }
+
+ public:
+ void
+ setDelayedCommit()
+ {
+ flags[IsDelayedCommit] = true;
+ }
+};
+
/**
* Microops of the form IntRegA = IntRegB op Imm
*/
-class MicroIntOp : public PredOp
+class MicroIntOp : public MicroOp
{
protected:
RegIndex ura, urb;
MicroIntOp(const char *mnem, ExtMachInst machInst, OpClass __opClass,
RegIndex _ura, RegIndex _urb, uint8_t _imm)
- : PredOp(mnem, machInst, __opClass),
+ : MicroOp(mnem, machInst, __opClass),
ura(_ura), urb(_urb), imm(_imm)
{
}