| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetFolder.h | 62 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 D | ConstantFolding.h | 99 LLVM_ABI Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 229 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 D | InstCombineSimplifyDemanded.cpp | 691 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 D | InstructionCombining.cpp | 400 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 D | InstCombineShifts.cpp | 260 Constant *ExtendedInvertedMask = ConstantFoldBinaryOpOperands( in dropRedundantMaskingOfLeftShiftInput() 305 NewMask = ConstantFoldBinaryOpOperands(Instruction::LShr, ExtendedAllOnes, in dropRedundantMaskingOfLeftShiftInput()
|
| H A D | InstCombineAddSub.cpp | 2070 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd() 3178 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub() 3184 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
|
| H A D | InstCombineSelect.cpp | 155 if (ConstantFoldBinaryOpOperands(Opc, TCC, MaskC, Sel.getDataLayout()) == in foldSelectICmpAnd() 1935 : ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in foldSelectWithConstOpToBinOp()
|
| H A D | InstCombineCalls.cpp | 1588 Constant *NewConst = ConstantFoldBinaryOpOperands( in foldMinimumOverTrailingOrLeadingZeroCount() 2315 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
|
| H A D | InstCombineVectorOps.cpp | 2150 Constant *ShlOne = ConstantFoldBinaryOpOperands( in getAlternateBinop()
|
| H A D | InstCombineCompares.cpp | 207 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 D | AMDGPUCodeGenPrepare.cpp | 745 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 D | ConstantFolding.cpp | 248 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 D | BranchProbabilityInfo.cpp | 621 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
|
| H A D | InstructionSimplify.cpp | 580 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant() 6513 C = ConstantFoldBinaryOpOperands( in simplifyBinaryIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 269 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 1905 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
|
| H A D | JumpThreading.cpp | 728 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()
|