/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 61 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 D | ConstantFolding.h | 97 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 235 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 D | InstCombineSimplifyDemanded.cpp | 676 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 D | InstructionCombining.cpp | 371 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 D | InstCombineShifts.cpp | 260 Constant *ExtendedInvertedMask = ConstantFoldBinaryOpOperands( in dropRedundantMaskingOfLeftShiftInput() 305 NewMask = ConstantFoldBinaryOpOperands(Instruction::LShr, ExtendedAllOnes, in dropRedundantMaskingOfLeftShiftInput()
|
H A D | InstCombineAddSub.cpp | 1969 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd() 2941 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub() 2947 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
|
H A D | InstCombineCalls.cpp | 1487 Constant *NewConst = ConstantFoldBinaryOpOperands( in foldMinimumOverTrailingOrLeadingZeroCount() 2049 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
|
H A D | InstCombineVectorOps.cpp | 2072 Constant *ShlOne = ConstantFoldBinaryOpOperands( in getAlternateBinop()
|
H A D | InstCombineCompares.cpp | 209 Elt = ConstantFoldBinaryOpOperands(Instruction::And, Elt, AndCst, DL); in foldCmpLoadFromIndexedGlobal()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 741 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 D | ConstantFolding.cpp | 235 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 D | BranchProbabilityInfo.cpp | 625 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
|
H A D | InstructionSimplify.cpp | 623 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant() 6487 C = ConstantFoldBinaryOpOperands( in simplifyBinaryIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Reassociate.cpp | 1904 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
|
H A D | JumpThreading.cpp | 731 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 257 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
|