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