Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/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.h87 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp576 ConstantFoldBinaryOpOperands(Instruction::FMul, C, C1, DL); in visitFMul()
583 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in visitFMul()
590 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in visitFMul()
600 if (Constant *CC1 = ConstantFoldBinaryOpOperands( in visitFMul()
608 if (Constant *CC1 = ConstantFoldBinaryOpOperands( in visitFMul()
1488 auto *RecipC = ConstantFoldBinaryOpOperands( in foldFDivConstantDivisor()
1517 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1520 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
H A DInstCombineAddSub.cpp1775 if (Constant *NewMulC = ConstantFoldBinaryOpOperands( in visitFAdd()
2641 if (Constant *CSubOne = ConstantFoldBinaryOpOperands( in visitFSub()
2647 if (Constant *OneSubC = ConstantFoldBinaryOpOperands( in visitFSub()
H A DInstructionCombining.cpp534 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) { in SimplifyAssociativeOrCommutative()
1343 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands()
1823 ? ConstantFoldBinaryOpOperands(Opcode, UndefScalar, CElt, DL) in foldVectorBinop()
1824 : ConstantFoldBinaryOpOperands(Opcode, CElt, UndefScalar, DL); in foldVectorBinop()
H A DInstCombineCalls.cpp1579 ConstantFoldBinaryOpOperands(Instruction::URem, ShAmtC, WidthC, DL); in visitCallInst()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp629 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CT, *DL) : in foldBinOpIntoSelect()
630 ConstantFoldBinaryOpOperands(BO.getOpcode(), CT, CBO, *DL); in foldBinOpIntoSelect()
635 ConstantFoldBinaryOpOperands(BO.getOpcode(), CBO, CF, *DL) : in foldBinOpIntoSelect()
636 ConstantFoldBinaryOpOperands(BO.getOpcode(), CF, CBO, *DL); in foldBinOpIntoSelect()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp1049 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl()
1294 return ConstantFoldBinaryOpOperands(OpC, LHS, RHS, DL); in ConstantFoldCompareInstOperands()
1338 Constant *llvm::ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS, in ConstantFoldBinaryOpOperands() function in llvm
1398 Constant *C = ConstantFoldBinaryOpOperands(Opcode, Op0, Op1, DL); in ConstantFoldFPInstOperands()
1407 return ConstantFoldBinaryOpOperands(Opcode, LHS, RHS, DL); in ConstantFoldFPInstOperands()
H A DBranchProbabilityInfo.cpp625 CmpLHSConst = ConstantFoldBinaryOpOperands( in computeUnlikelySuccessors()
H A DInstructionSimplify.cpp619 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1950 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, C, Cst, DL)) { in OptimizeExpression()
H A DJumpThreading.cpp823 ConstantFoldBinaryOpOperands(BO->getOpcode(), V, CI, DL); in computeValueKnownInPredecessorsImpl()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp224 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()