Lines Matching refs:Opc
66 bool CSEMIRBuilder::canPerformCSEForOpc(unsigned Opc) const { in canPerformCSEForOpc()
68 if (!CSEInfo || !CSEInfo->shouldCSE(Opc)) in canPerformCSEForOpc()
106 unsigned Opc) const { in profileMBBOpcode()
110 B.addNodeIDOpcode(Opc); in profileMBBOpcode()
113 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps, in profileEverything() argument
118 profileMBBOpcode(B, Opc); in profileEverything()
175 MachineInstrBuilder CSEMIRBuilder::buildInstr(unsigned Opc, in buildInstr() argument
179 switch (Opc) { in buildInstr()
219 if (Opc == TargetOpcode::G_PTR_ADD && in buildInstr()
226 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI()); in buildInstr()
233 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI())) in buildInstr()
253 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI())) in buildInstr()
264 ConstantFoldExtOp(Opc, Src0.getReg(), Src1.getImm(), *getMRI())) in buildInstr()
274 Opc, DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getReg(), *getMRI())) in buildInstr()
283 if (Opc == TargetOpcode::G_CTLZ) in buildInstr()
302 if (!canPerformCSEForOpc(Opc)) in buildInstr()
303 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
307 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
316 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder); in buildInstr()
324 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag); in buildInstr()
330 constexpr unsigned Opc = TargetOpcode::G_CONSTANT; in buildConstant() local
331 if (!canPerformCSEForOpc(Opc)) in buildConstant()
342 profileMBBOpcode(ProfBuilder, Opc); in buildConstant()
357 constexpr unsigned Opc = TargetOpcode::G_FCONSTANT; in buildFConstant() local
358 if (!canPerformCSEForOpc(Opc)) in buildFConstant()
369 profileMBBOpcode(ProfBuilder, Opc); in buildFConstant()