Home
last modified time | relevance | path

Searched refs:CondReg (Results 1 – 21 of 21) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FlagsCopyLowering.cpp755 if (!CondReg && !InvCondReg) in getCondOrInverseInReg()
758 if (CondReg) in getCondOrInverseInReg()
759 return {CondReg, false}; in getCondOrInverseInReg()
802 if (!CondReg) in rewriteArithmetic()
812 .addReg(CondReg) in rewriteArithmetic()
828 unsigned CondReg; in rewriteCMov() local
830 std::tie(CondReg, Inverted) = in rewriteCMov()
854 unsigned CondReg; in rewriteFCMov() local
896 unsigned CondReg; in rewriteCondJmp() local
933 if (!CondReg) in rewriteSetCC()
[all …]
H A DX86FastISel.cpp2110 Register CondReg = getRegForValue(Cond); in X86FastEmitCMoveSelect() local
2111 if (CondReg == 0) in X86FastEmitCMoveSelect()
2116 unsigned KCondReg = CondReg; in X86FastEmitCMoveSelect()
2119 TII.get(TargetOpcode::COPY), CondReg) in X86FastEmitCMoveSelect()
2121 CondReg = fastEmitInst_extractsubreg(MVT::i8, CondReg, X86::sub_8bit); in X86FastEmitCMoveSelect()
2124 .addReg(CondReg) in X86FastEmitCMoveSelect()
2310 Register CondReg = getRegForValue(Cond); in X86FastEmitPseudoSelect() local
2311 if (CondReg == 0) in X86FastEmitPseudoSelect()
2316 unsigned KCondReg = CondReg; in X86FastEmitPseudoSelect()
2321 CondReg = fastEmitInst_extractsubreg(MVT::i8, CondReg, X86::sub_8bit); in X86FastEmitPseudoSelect()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIPreEmitPeephole.cpp90 const unsigned CondReg = TRI->getVCC(); in optimizeVccBranch() local
105 if (A->modifiesRegister(CondReg, TRI)) { in optimizeVccBranch()
106 if (!A->definesRegister(CondReg, TRI) || in optimizeVccBranch()
111 ReadsCond |= A->readsRegister(CondReg, TRI); in optimizeVccBranch()
148 if (A->getOpcode() == And && SReg == CondReg && !ModifiesExec && in optimizeVccBranch()
175 if (!MI.killsRegister(CondReg, TRI)) { in optimizeVccBranch()
178 BuildMI(*A->getParent(), *A, A->getDebugLoc(), TII->get(Mov), CondReg) in optimizeVccBranch()
181 BuildMI(*A->getParent(), *A, A->getDebugLoc(), TII->get(Mov), CondReg) in optimizeVccBranch()
238 MI.removeOperand(MI.findRegisterUseOperandIdx(CondReg, false /*Kill*/, TRI)); in optimizeVccBranch()
H A DSIOptimizeExecMaskingPreRA.cpp39 MCRegister CondReg; member in __anon0ceec81f0111::SIOptimizeExecMaskingPreRA
132 TRI->findReachingDef(CondReg, AMDGPU::NoSubRegister, *I, *MRI, LIS); in optimizeVcndVcmpPair()
234 (CmpReg == Register(CondReg) && in optimizeVcndVcmpPair()
237 return MI.readsRegister(CondReg, TRI); in optimizeVcndVcmpPair()
359 CondReg = MCRegister::from(Wave32 ? AMDGPU::VCC_LO : AMDGPU::VCC); in runOnMachineFunction()
H A DSIInstrInfo.cpp6165 Register CondReg; in emitLoadScalarOpsFromVGPRLoop() local
6185 if (!CondReg) // First. in emitLoadScalarOpsFromVGPRLoop()
6186 CondReg = NewCondReg; in emitLoadScalarOpsFromVGPRLoop()
6190 .addReg(CondReg) in emitLoadScalarOpsFromVGPRLoop()
6192 CondReg = AndReg; in emitLoadScalarOpsFromVGPRLoop()
6238 if (!CondReg) // First. in emitLoadScalarOpsFromVGPRLoop()
6239 CondReg = NewCondReg; in emitLoadScalarOpsFromVGPRLoop()
6243 .addReg(CondReg) in emitLoadScalarOpsFromVGPRLoop()
6245 CondReg = AndReg; in emitLoadScalarOpsFromVGPRLoop()
7432 Register CondReg = Cond.getReg(); in lowerSelect() local
[all …]
H A DAMDGPURegisterBankInfo.cpp861 Register CondReg; in executeInWaterfallLoop() local
921 if (!CondReg) { in executeInWaterfallLoop()
922 CondReg = CmpReg; in executeInWaterfallLoop()
924 CondReg = B.buildAnd(S1, CondReg, CmpReg).getReg(0); in executeInWaterfallLoop()
925 MRI.setRegBank(CondReg, AMDGPU::VCCRegBank); in executeInWaterfallLoop()
939 .addReg(CondReg) in executeInWaterfallLoop()
941 MRI.setRegClass(CondReg, WaveRC); in executeInWaterfallLoop()
946 .addReg(CondReg, RegState::Kill); in executeInWaterfallLoop()
948 MRI.setSimpleHint(NewExec, CondReg); in executeInWaterfallLoop()
2365 Register CondReg = MI.getOperand(0).getReg(); in applyMappingImpl() local
[all …]
H A DAMDGPUInstructionSelector.cpp2882 Register CondReg = CondOp.getReg(); in selectG_BRCOND() local
2894 if (!isVCC(CondReg, *MRI)) { in selectG_BRCOND()
2895 if (MRI->getType(CondReg) != LLT::scalar(32)) in selectG_BRCOND()
2906 if (!isVCmpResult(CondReg, *MRI)) { in selectG_BRCOND()
2913 .addReg(CondReg) in selectG_BRCOND()
2916 CondReg = TmpReg; in selectG_BRCOND()
2924 if (!MRI->getRegClassOrNull(CondReg)) in selectG_BRCOND()
2925 MRI->setRegClass(CondReg, ConstrainRC); in selectG_BRCOND()
2928 .addReg(CondReg); in selectG_BRCOND()
H A DAMDGPUMachineCFGStructurizer.cpp1848 Register CondReg = Cond[0].getReg(); in ensureCondIsNotKilled() local
1849 for (MachineOperand &MO : MRI->use_operands(CondReg)) in ensureCondIsNotKilled()
H A DVOP3Instructions.td851 class DivFmasPat<ValueType vt, Instruction inst, Register CondReg> : GCNPat<
855 (i1 CondReg)),
H A DAMDGPUISelDAGToDAG.cpp2426 Register CondReg = UseSCCBr ? AMDGPU::SCC : TRI->getVCC(); in SelectBRCOND() local
2453 SDValue VCC = CurDAG->getCopyToReg(N->getOperand(0), SL, CondReg, Cond); in SelectBRCOND()
H A DSIISelLowering.cpp4232 Register CondReg = MRI.createVirtualRegister(BoolRC); in emitLoadM0FromVGPRLoop() local
4251 BuildMI(LoopBB, I, DL, TII->get(AMDGPU::V_CMP_EQ_U32_e64), CondReg) in emitLoadM0FromVGPRLoop()
4259 .addReg(CondReg, RegState::Kill); in emitLoadM0FromVGPRLoop()
4261 MRI.setSimpleHint(NewExec, CondReg); in emitLoadM0FromVGPRLoop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp913 unsigned CondReg = in selectSelect() local
915 if (CondReg == 0) in selectSelect()
967 .addReg(CondReg); in selectSelect()
1314 unsigned CondReg = getRegForI1Value(Br->getCondition(), Br->getParent(), Not); in selectBr() local
1315 if (CondReg == 0) in selectBr()
1324 .addReg(CondReg); in selectBr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp961 Register CondReg = getRegForValue(BI->getCondition()); in selectBranch() local
962 if (CondReg == 0) in selectBranch()
965 ZExtCondReg = emitIntExt(MVT::i1, CondReg, MVT::i32, true); in selectBranch()
1040 Register CondReg = getRegForValue(Cond); in selectSelect() local
1042 if (!Src1Reg || !Src2Reg || !CondReg) in selectSelect()
1049 if (!emitIntExt(MVT::i1, CondReg, MVT::i32, ZExtCondReg, true)) in selectSelect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstructionSelector.cpp774 auto CondReg = MIB.getReg(1); in selectSelect() local
775 assert(validReg(MRI, CondReg, 1, ARM::GPRRegBankID) && in selectSelect()
778 .addUse(CondReg) in selectSelect()
H A DARMFastISel.cpp1610 Register CondReg = getRegForValue(I->getOperand(0)); in SelectSelect() local
1611 if (CondReg == 0) return false; in SelectSelect()
1637 CondReg = constrainOperandRegClass(TII.get(TstOpc), CondReg, 0); in SelectSelect()
1640 .addReg(CondReg) in SelectSelect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp2475 Register CondReg = getRegForValue(BI->getCondition()); in selectBranch() local
2476 if (!CondReg) in selectBranch()
2489 Register CondReg = getRegForValue(BI->getCondition()); in selectBranch() local
2490 if (CondReg == 0) in selectBranch()
2502 = constrainOperandRegClass(II, CondReg, II.getNumDefs()); in selectBranch()
2711 Register CondReg = getRegForValue(Cond); in selectSelect() local
2712 if (!CondReg) in selectSelect()
2760 Register CondReg = getRegForValue(Cond); in selectSelect() local
2761 if (!CondReg) in selectSelect()
2765 CondReg = constrainOperandRegClass(II, CondReg, 1); in selectSelect()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp432 static void getOperandsForBranch(Register CondReg, MachineRegisterInfo &MRI, in getOperandsForBranch() argument
437 if (!mi_match(CondReg, MRI, m_GICmp(m_Pred(Pred), m_Reg(LHS), m_Reg(RHS)))) { in getOperandsForBranch()
438 LHS = CondReg; in getOperandsForBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp785 Register CondReg = createResultReg(&PPC::CRRCRegClass); in SelectBranch() local
788 CondReg, PPCPred)) in SelectBranch()
793 .addReg(CondReg) in SelectBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86InstructionSelector.cpp1459 const Register CondReg = I.getOperand(0).getReg(); in selectCondBranch() local
1464 .addReg(CondReg) in selectCondBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp1800 Register CondReg = I.getOperand(0).getReg(); in selectCompareBranch() local
1801 MachineInstr *CCMI = MRI.getVRegDef(CondReg); in selectCompareBranch()
1814 emitTestBit(CondReg, /*Bit = */ 0, /*IsNegative = */ true, in selectCompareBranch()
1822 MIB.buildInstr(AArch64::ANDSWri, {LLT::scalar(32)}, {CondReg}).addImm(1); in selectCompareBranch()
3441 const Register CondReg = Sel.getCondReg(); in select() local
3451 auto TstMI = MIB.buildInstr(AArch64::ANDSWri, {DeadVReg}, {CondReg}) in select()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp5262 auto [DstReg, DstTy, CondReg, CondTy] = MI.getFirst2RegLLTs(); in moreElementsVector()
5270 auto ShufSplat = MIRBuilder.buildShuffleSplat(MoreTy, CondReg); in moreElementsVector()
5891 Register CondReg = MI.getOperand(1).getReg(); in narrowScalarSelect() local
5892 LLT CondTy = MRI.getType(CondReg); in narrowScalarSelect()
5914 CondReg, Src1Regs[I], Src2Regs[I]); in narrowScalarSelect()
5920 LeftoverTy, CondReg, Src1LeftoverRegs[I], Src2LeftoverRegs[I]); in narrowScalarSelect()