Home
last modified time | relevance | path

Searched refs:ConstantFoldCastOperand (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DConstantFolding.h130 LLVM_ABI Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C,
H A DTargetFolder.h188 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp1525 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1528 A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A), in CanShareConstantPoolEntry()
1531 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1534 B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B), in CanShareConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp243 Src = ConstantFoldCastOperand(Instruction::ZExt, Src, Elt->getType(), in FoldBitCast()
389 return ConstantFoldCastOperand(Cast, C, DestTy, DL); in ConstantFoldLoadThroughBitcast()
861 Constant *NewIdx = ConstantFoldCastOperand( in CastGEPIndices()
1029 return ConstantFoldCastOperand(Opcode, Ops[0], DestTy, DL); in ConstantFoldInstOperandsImpl()
1480 Constant *llvm::ConstantFoldCastOperand(unsigned Opcode, Constant *C, in ConstantFoldCastOperand() function in llvm
1573 return ConstantFoldCastOperand(Instruction::Trunc, C, DestTy, DL); in ConstantFoldIntegerCast()
1575 return ConstantFoldCastOperand(Instruction::SExt, C, DestTy, DL); in ConstantFoldIntegerCast()
1576 return ConstantFoldCastOperand(Instruction::ZExt, C, DestTy, DL); in ConstantFoldIntegerCast()
H A DValueTracking.cpp8831 CastedTo = ConstantFoldCastOperand(ExtOp, C, SrcTy, DL); in lookThroughCastConst()
8835 CastedTo = ConstantFoldCastOperand(Instruction::FPExt, C, SrcTy, DL); in lookThroughCastConst()
8838 CastedTo = ConstantFoldCastOperand(Instruction::FPTrunc, C, SrcTy, DL); in lookThroughCastConst()
8841 CastedTo = ConstantFoldCastOperand(Instruction::UIToFP, C, SrcTy, DL); in lookThroughCastConst()
8844 CastedTo = ConstantFoldCastOperand(Instruction::SIToFP, C, SrcTy, DL); in lookThroughCastConst()
8847 CastedTo = ConstantFoldCastOperand(Instruction::FPToUI, C, SrcTy, DL); in lookThroughCastConst()
8850 CastedTo = ConstantFoldCastOperand(Instruction::FPToSI, C, SrcTy, DL); in lookThroughCastConst()
8861 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCastConst()
H A DInstructionSimplify.cpp1887 return ConstantFoldCastOperand(Cast0->getOpcode(), C, Cast0->getType(), in simplifyAndOrOfCmps()
3851 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3854 ConstantFoldCastOperand(CastInst::ZExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
3929 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3932 ConstantFoldCastOperand(CastInst::SExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
5361 return ConstantFoldCastOperand(CastOpc, C, Ty, Q.DL); in simplifyCastInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp140 NewShAmt = ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts()
253 auto *ExtendedSumOfShAmts = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
293 auto *ExtendedNumHighBitsToClear = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineCasts.cpp161 if (Constant *Res = ConstantFoldCastOperand(CI.getOpcode(), SrcC, Ty, DL)) in commonCastTransforms()
873 return ConstantFoldCastOperand(Instruction::Trunc, ShAmt, A->getType(), in visitTrunc()
1572 ConstantFoldCastOperand(Instruction::SExt, CA, DestTy, DL); in visitSExt()
H A DInstCombineInternal.h228 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
H A DInstructionCombining.cpp397 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
1564 Constant *Op1IntC = ConstantFoldCastOperand( in foldFBinOpOfIntCastsFromSign()
1569 if (ConstantFoldCastOperand(OpsFromSigned ? Instruction::SIToFP in foldFBinOpOfIntCastsFromSign()
H A DInstCombineSelect.cpp1634 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike()
1636 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
H A DInstCombineCompares.cpp4801 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp738 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), DL); in foldBinOpIntoSelect()
739 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), DL); in foldBinOpIntoSelect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp668 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
H A DJumpThreading.cpp634 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
H A DLoopStrengthReduce.cpp5824 C = ConstantFoldCastOperand( in Expand()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp470 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1988 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
2000 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1388 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp354 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()