Lines Matching defs:Opc
66 bool CSEMIRBuilder::canPerformCSEForOpc(unsigned Opc) const {
68 if (!CSEInfo || !CSEInfo->shouldCSE(Opc))
112 unsigned Opc) const {
116 B.addNodeIDOpcode(Opc);
119 void CSEMIRBuilder::profileEverything(unsigned Opc, ArrayRef<DstOp> DstOps,
124 profileMBBOpcode(B, Opc);
181 MachineInstrBuilder CSEMIRBuilder::buildInstr(unsigned Opc,
185 switch (Opc) {
225 if (Opc == TargetOpcode::G_PTR_ADD &&
232 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI());
239 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI()))
259 Opc, SrcOps[0].getReg(), SrcOps[1].getReg(), *getMRI()))
270 ConstantFoldExtOp(Opc, Src0.getReg(), Src1.getImm(), *getMRI()))
280 Opc, DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getReg(), *getMRI()))
289 if (Opc == TargetOpcode::G_CTLZ)
308 if (!canPerformCSEForOpc(Opc))
309 return MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag);
313 auto MIB = MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag);
322 profileEverything(Opc, DstOps, SrcOps, Flag, ProfBuilder);
330 MachineIRBuilder::buildInstr(Opc, DstOps, SrcOps, Flag);
336 constexpr unsigned Opc = TargetOpcode::G_CONSTANT;
337 if (!canPerformCSEForOpc(Opc))
348 profileMBBOpcode(ProfBuilder, Opc);
363 constexpr unsigned Opc = TargetOpcode::G_FCONSTANT;
364 if (!canPerformCSEForOpc(Opc))
375 profileMBBOpcode(ProfBuilder, Opc);