Home
last modified time | relevance | path

Searched refs:ConstantFoldBinaryOpOperands (Results 1 – 16 of 16) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h61 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldBinOp()
74 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldExactBinOp()
92 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldNoWrapBinOp()
H A DConstantFolding.h85 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp587 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL); in foldFMulReassoc()
594 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in foldFMulReassoc()
601 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in foldFMulReassoc()
612 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
620 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
1621 auto *RecipC = ConstantFoldBinaryOpOperands( in foldFDivConstantDivisor()
1650 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1653 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
H A DInstCombineSimplifyDemanded.cpp656 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits()
658 if (ConstantFoldBinaryOpOperands(Instruction::LShr, NewC, LeftShiftAmtC, in SimplifyDemandedUseBits()
722 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::LShr, C, in SimplifyDemandedUseBits()
724 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp353 Constant *FoldedC = ConstantFoldBinaryOpOperands(AssocOpcode, C1, CastC2, DL); in simplifyAssocCastAssoc()
535 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) { in SimplifyAssociativeOrCommutative()
904 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
905 return ConstantFoldBinaryOpOperands(ShOpc, MaskInvShift, CShift, DL) == in foldBinOpShiftWithShift()
977 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
1760 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands()
1976 ? ConstantFoldBinaryOpOperands(Opcode, PoisonScalar, CElt, DL) in foldVectorBinop()
1977 : ConstantFoldBinaryOpOperands(Opcode, CElt, PoisonScalar, DL); in foldVectorBinop()
H A DInstCombineAddSub.cpp1963 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd()
2916 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub()
2922 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
H A DInstCombineShifts.cpp302 NewMask = ConstantFoldBinaryOpOperands(Instruction::LShr, ExtendedAllOnes, in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineCalls.cpp1961 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
H A DInstCombineCompares.cpp208 Elt = ConstantFoldBinaryOpOperands(Instruction::And, Elt, AndCst, DL); in foldCmpLoadFromIndexedGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp739 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CT, *DL) : in foldBinOpIntoSelect()
740 ConstantFoldBinaryOpOperands(BO.getOpcode(), CT, CBO, *DL); in foldBinOpIntoSelect()
745 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CF, *DL) : in foldBinOpIntoSelect()
746 ConstantFoldBinaryOpOperands(BO.getOpcode(), CF, CBO, *DL); in foldBinOpIntoSelect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp235 Src = ConstantFoldBinaryOpOperands( in FoldBitCast()
243 Elt = ConstantFoldBinaryOpOperands(Instruction::Or, Elt, Src, DL); in FoldBitCast()
1016 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl()
1302 Constant *llvm::ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS, in ConstantFoldBinaryOpOperands() function in llvm
1371 Constant *C = ConstantFoldBinaryOpOperands(Opcode, Op0, Op1, DL); in ConstantFoldFPInstOperands()
1380 return ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in ConstantFoldFPInstOperands()
H A DBranchProbabilityInfo.cpp625 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
H A DInstructionSimplify.cpp622 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
6445 C = ConstantFoldBinaryOpOperands( in simplifyBinaryIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp218 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1987 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
H A DJumpThreading.cpp734 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()