Home
last modified time | relevance | path

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

/freebsd/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.h97 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp235 ConstantFoldBinaryOpOperands(Instruction::Shl, C1, C2, DL); in visitMul()
694 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL); in foldFMulReassoc()
702 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in foldFMulReassoc()
709 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in foldFMulReassoc()
720 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
728 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
1758 auto *RecipC = ConstantFoldBinaryOpOperands( in foldFDivConstantDivisor()
1787 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1790 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
H A DInstCombineSimplifyDemanded.cpp676 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits()
678 if (ConstantFoldBinaryOpOperands(Instruction::LShr, NewC, in SimplifyDemandedUseBits()
757 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::LShr, C, in SimplifyDemandedUseBits()
759 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp371 Constant *FoldedC = ConstantFoldBinaryOpOperands(AssocOpcode, C1, CastC2, DL); in simplifyAssocCastAssoc()
553 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) { in SimplifyAssociativeOrCommutative()
927 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
928 return ConstantFoldBinaryOpOperands(ShOpc, MaskInvShift, CShift, DL) == in foldBinOpShiftWithShift()
1000 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
1967 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands()
2183 ? ConstantFoldBinaryOpOperands(Opcode, PoisonScalar, CElt, DL) in foldVectorBinop()
2184 : ConstantFoldBinaryOpOperands(Opcode, CElt, PoisonScalar, DL); in foldVectorBinop()
H A DInstCombineShifts.cpp260 Constant *ExtendedInvertedMask = ConstantFoldBinaryOpOperands( in dropRedundantMaskingOfLeftShiftInput()
305 NewMask = ConstantFoldBinaryOpOperands(Instruction::LShr, ExtendedAllOnes, in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineAddSub.cpp1969 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd()
2941 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub()
2947 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
H A DInstCombineCalls.cpp1487 Constant *NewConst = ConstantFoldBinaryOpOperands( in foldMinimumOverTrailingOrLeadingZeroCount()
2049 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
H A DInstCombineVectorOps.cpp2072 Constant *ShlOne = ConstantFoldBinaryOpOperands( in getAlternateBinop()
H A DInstCombineCompares.cpp209 Elt = ConstantFoldBinaryOpOperands(Instruction::And, Elt, AndCst, DL); in foldCmpLoadFromIndexedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp741 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CT, *DL) : in foldBinOpIntoSelect()
742 ConstantFoldBinaryOpOperands(BO.getOpcode(), CT, CBO, *DL); in foldBinOpIntoSelect()
747 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CF, *DL) : in foldBinOpIntoSelect()
748 ConstantFoldBinaryOpOperands(BO.getOpcode(), CF, CBO, *DL); in foldBinOpIntoSelect()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp235 Src = ConstantFoldBinaryOpOperands( in FoldBitCast()
243 Elt = ConstantFoldBinaryOpOperands(Instruction::Or, Elt, Src, DL); in FoldBitCast()
1002 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl()
1287 Constant *llvm::ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS, in ConstantFoldBinaryOpOperands() function in llvm
1366 Constant *C = ConstantFoldBinaryOpOperands(Opcode, Op0, Op1, DL); in ConstantFoldFPInstOperands()
1383 return ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in ConstantFoldFPInstOperands()
H A DBranchProbabilityInfo.cpp625 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
H A DInstructionSimplify.cpp623 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
6487 C = ConstantFoldBinaryOpOperands( in simplifyBinaryIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1904 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
H A DJumpThreading.cpp731 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp257 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()