Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h62 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldBinOp()
75 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldExactBinOp()
93 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldNoWrapBinOp()
H A DConstantFolding.h99 LLVM_ABI Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp229 ConstantFoldBinaryOpOperands(Instruction::Shl, C1, C2, DL); in visitMul()
793 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL); in foldFMulReassoc()
801 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in foldFMulReassoc()
808 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in foldFMulReassoc()
819 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
827 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL)) { in foldFMulReassoc()
1926 auto *RecipC = ConstantFoldBinaryOpOperands( in foldFDivConstantDivisor()
1955 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1958 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
H A DInstCombineSimplifyDemanded.cpp691 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits()
693 if (ConstantFoldBinaryOpOperands(Instruction::LShr, NewC, in SimplifyDemandedUseBits()
772 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::LShr, C, in SimplifyDemandedUseBits()
774 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp400 Constant *FoldedC = ConstantFoldBinaryOpOperands(AssocOpcode, C1, CastC2, DL); in simplifyAssocCastAssoc()
582 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) { in SimplifyAssociativeOrCommutative()
956 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
957 return ConstantFoldBinaryOpOperands(ShOpc, MaskInvShift, CShift, DL) == in foldBinOpShiftWithShift()
1028 ConstantFoldBinaryOpOperands(GetInvShift(ShOpc), CMask, CShift, DL); in foldBinOpShiftWithShift()
2189 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands()
H A DInstCombineShifts.cpp260 Constant *ExtendedInvertedMask = ConstantFoldBinaryOpOperands( in dropRedundantMaskingOfLeftShiftInput()
305 NewMask = ConstantFoldBinaryOpOperands(Instruction::LShr, ExtendedAllOnes, in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineAddSub.cpp2070 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd()
3178 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub()
3184 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
H A DInstCombineSelect.cpp155 if (ConstantFoldBinaryOpOperands(Opc, TCC, MaskC, Sel.getDataLayout()) == in foldSelectICmpAnd()
1935 : ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in foldSelectWithConstOpToBinOp()
H A DInstCombineCalls.cpp1588 Constant *NewConst = ConstantFoldBinaryOpOperands( in foldMinimumOverTrailingOrLeadingZeroCount()
2315 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
H A DInstCombineVectorOps.cpp2150 Constant *ShlOne = ConstantFoldBinaryOpOperands( in getAlternateBinop()
H A DInstCombineCompares.cpp207 Elt = ConstantFoldBinaryOpOperands(Instruction::And, Elt, AndCst, DL); in foldCmpLoadFromIndexedGlobal()
3115 if (auto *Res = ConstantFoldBinaryOpOperands(BO->getOpcode(), L, R, DL)) { in foldICmpBinOpWithConstantViaTruthTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp745 SelOpNo ? ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CT, DL) in foldBinOpIntoSelect()
746 : ConstantFoldBinaryOpOperands(BO.getOpcode(), CT, CBO, DL); in foldBinOpIntoSelect()
751 SelOpNo ? ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CF, DL) in foldBinOpIntoSelect()
752 : ConstantFoldBinaryOpOperands(BO.getOpcode(), CF, CBO, DL); in foldBinOpIntoSelect()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp248 Src = ConstantFoldBinaryOpOperands( in FoldBitCast()
256 Elt = ConstantFoldBinaryOpOperands(Instruction::Or, Elt, Src, DL); in FoldBitCast()
1025 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl()
1318 Constant *llvm::ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS, in ConstantFoldBinaryOpOperands() function in llvm
1460 Constant *C = ConstantFoldBinaryOpOperands(Opcode, Op0, Op1, DL); in ConstantFoldFPInstOperands()
1477 return ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in ConstantFoldFPInstOperands()
H A DBranchProbabilityInfo.cpp621 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
H A DInstructionSimplify.cpp580 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
6513 C = ConstantFoldBinaryOpOperands( in simplifyBinaryIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp269 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1905 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
H A DJumpThreading.cpp728 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()