Lines Matching refs:MCDesc

221 static void computeMaxLatency(InstrDesc &ID, const MCInstrDesc &MCDesc,  in computeMaxLatency()  argument
224 if (MCDesc.isCall()) { in computeMaxLatency()
236 static Error verifyOperands(const MCInstrDesc &MCDesc, const MCInst &MCI) { in verifyOperands() argument
239 unsigned NumExplicitDefs = MCDesc.getNumDefs(); in verifyOperands()
251 if (MCDesc.hasOptionalDef()) { in verifyOperands()
253 const MCOperand &Op = MCI.getOperand(MCDesc.getNumOperands() - 1); in verifyOperands()
267 const MCInstrDesc &MCDesc = MCII.get(MCI.getOpcode()); in populateWrites() local
314 unsigned NumExplicitDefs = MCDesc.getNumDefs(); in populateWrites()
315 unsigned NumImplicitDefs = MCDesc.implicit_defs().size(); in populateWrites()
318 if (MCDesc.hasOptionalDef()) in populateWrites()
321 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateWrites()
327 unsigned OptionalDefIdx = MCDesc.getNumOperands() - 1; in populateWrites()
334 if (MCDesc.operands()[CurrentDef].isOptionalDef()) { in populateWrites()
368 Write.RegisterID = MCDesc.implicit_defs()[CurrentDef]; in populateWrites()
392 if (MCDesc.hasOptionalDef()) { in populateWrites()
409 bool AssumeUsesOnly = !MCDesc.variadicOpsAreDefs(); in populateWrites()
410 CurrentDef = NumExplicitDefs + NumImplicitDefs + MCDesc.hasOptionalDef(); in populateWrites()
411 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateWrites()
436 const MCInstrDesc &MCDesc = MCII.get(MCI.getOpcode()); in populateReads() local
437 unsigned NumExplicitUses = MCDesc.getNumOperands() - MCDesc.getNumDefs(); in populateReads()
438 unsigned NumImplicitUses = MCDesc.implicit_uses().size(); in populateReads()
440 if (MCDesc.hasOptionalDef()) in populateReads()
442 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateReads()
446 for (unsigned I = 0, OpIndex = MCDesc.getNumDefs(); I < NumExplicitUses; in populateReads()
467 Read.RegisterID = MCDesc.implicit_uses()[I]; in populateReads()
476 bool AssumeDefsOnly = MCDesc.variadicOpsAreDefs(); in populateReads()
477 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateReads()
520 const MCInstrDesc &MCDesc = MCII.get(Opcode); in createInstrDescImpl() local
558 if (MCDesc.isCall() && FirstCallInst) { in createInstrDescImpl()
566 if (MCDesc.isReturn() && FirstReturnInst) { in createInstrDescImpl()
574 computeMaxLatency(*ID, MCDesc, SCDesc, STI); in createInstrDescImpl()
576 if (Error Err = verifyOperands(MCDesc, MCI)) in createInstrDescImpl()
590 bool IsVariadic = MCDesc.isVariadic(); in createInstrDescImpl()
649 const MCInstrDesc &MCDesc = MCII.get(MCI.getOpcode()); in createInstruction() local
653 NewIS->setMayLoad(MCDesc.mayLoad()); in createInstruction()
654 NewIS->setMayStore(MCDesc.mayStore()); in createInstruction()
655 NewIS->setHasSideEffects(MCDesc.hasUnmodeledSideEffects()); in createInstruction()