Lines Matching refs:Opc
61 bool CSEMIRBuilder::canPerformCSEForOpc(unsigned Opc) const { in canPerformCSEForOpc()
63 if (!CSEInfo || !CSEInfo->shouldCSE(Opc)) in canPerformCSEForOpc()
101 unsigned Opc) const { in profileMBBOpcode()
105 B.addNodeIDOpcode(Opc); in profileMBBOpcode()
108 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps, in profileEverything() argument
113 profileMBBOpcode(B, Opc); in profileEverything()
170 MachineInstrBuilder CSEMIRBuilder::buildInstr(unsigned Opc, in buildInstr() argument
174 switch (Opc) { in buildInstr()
200 if (Opc == TargetOpcode::G_PTR_ADD && in buildInstr()
207 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI()); in buildInstr()
213 if (Optional<APInt> Cst = ConstantFoldBinOp(Opc, SrcOps[0].getReg(), in buildInstr()
234 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI())) in buildInstr()
245 ConstantFoldExtOp(Opc, Src0.getReg(), Src1.getImm(), *getMRI())) in buildInstr()
255 Opc, DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getReg(), *getMRI())) in buildInstr()
277 if (!canPerformCSEForOpc(Opc)) in buildInstr()
278 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
282 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
291 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder); in buildInstr()
299 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
305 constexpr unsigned Opc = TargetOpcode::G_CONSTANT; in buildConstant() local
306 if (!canPerformCSEForOpc(Opc)) in buildConstant()
317 profileMBBOpcode(ProfBuilder, Opc); in buildConstant()
332 constexpr unsigned Opc = TargetOpcode::G_FCONSTANT; in buildFConstant() local
333 if (!canPerformCSEForOpc(Opc)) in buildFConstant()
344 profileMBBOpcode(ProfBuilder, Opc); in buildFConstant()