| /llvm-project-15.0.7/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 | 87 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 509 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL); in visitFMul() 516 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in visitFMul() 523 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in visitFMul() 533 if (Constant *CC1 = ConstantFoldBinaryOpOperands( in visitFMul() 541 if (Constant *CC1 = ConstantFoldBinaryOpOperands( in visitFMul() 1243 auto *RecipC = ConstantFoldBinaryOpOperands( in foldFDivConstantDivisor() 1271 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend() 1274 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
|
| H A D | InstCombineAddSub.cpp | 1663 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd() 2459 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub() 2465 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
|
| H A D | InstructionCombining.cpp | 531 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) { in SimplifyAssociativeOrCommutative() 1356 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands() 1808 ? ConstantFoldBinaryOpOperands(Opcode, UndefScalar, CElt, DL) in foldVectorBinop() 1809 : ConstantFoldBinaryOpOperands(Opcode, CElt, UndefScalar, DL); in foldVectorBinop()
|
| H A D | InstCombineCalls.cpp | 1546 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 627 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CT, *DL) : in foldBinOpIntoSelect() 628 ConstantFoldBinaryOpOperands(BO.getOpcode(), CT, CBO, *DL); in foldBinOpIntoSelect() 633 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CF, *DL) : in foldBinOpIntoSelect() 634 ConstantFoldBinaryOpOperands(BO.getOpcode(), CF, CBO, *DL); in foldBinOpIntoSelect()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1050 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl() 1295 return ConstantFoldBinaryOpOperands(OpC, LHS, RHS, DL); in ConstantFoldCompareInstOperands() 1339 Constant *llvm::ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS, in ConstantFoldBinaryOpOperands() function in llvm 1399 Constant *C = ConstantFoldBinaryOpOperands(Opcode, Op0, Op1, DL); in ConstantFoldFPInstOperands() 1408 return ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in ConstantFoldFPInstOperands()
|
| H A D | BranchProbabilityInfo.cpp | 635 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
|
| H A D | InstructionSimplify.cpp | 618 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 1962 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
|
| H A D | JumpThreading.cpp | 800 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 223 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
|