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.h127 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
H A DTargetFolder.h187 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp1455 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1458 A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A), in CanShareConstantPoolEntry()
1461 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1464 B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B), in CanShareConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp230 Src = ConstantFoldCastOperand(Instruction::ZExt, Src, Elt->getType(), in FoldBitCast()
376 return ConstantFoldCastOperand(Cast, C, DestTy, DL); in ConstantFoldLoadThroughBitcast()
846 Constant *NewIdx = ConstantFoldCastOperand( in CastGEPIndices()
1006 return ConstantFoldCastOperand(Opcode, Ops[0], DestTy, DL); in ConstantFoldInstOperandsImpl()
1386 Constant *llvm::ConstantFoldCastOperand(unsigned Opcode, Constant *C, in ConstantFoldCastOperand() function in llvm
1479 return ConstantFoldCastOperand(Instruction::Trunc, C, DestTy, DL); in ConstantFoldIntegerCast()
1481 return ConstantFoldCastOperand(Instruction::SExt, C, DestTy, DL); in ConstantFoldIntegerCast()
1482 return ConstantFoldCastOperand(Instruction::ZExt, C, DestTy, DL); in ConstantFoldIntegerCast()
H A DValueTracking.cpp8664 CastedTo = ConstantFoldCastOperand(ExtOp, C, SrcTy, DL); in lookThroughCast()
8668 CastedTo = ConstantFoldCastOperand(Instruction::FPExt, C, SrcTy, DL); in lookThroughCast()
8671 CastedTo = ConstantFoldCastOperand(Instruction::FPTrunc, C, SrcTy, DL); in lookThroughCast()
8674 CastedTo = ConstantFoldCastOperand(Instruction::UIToFP, C, SrcTy, DL); in lookThroughCast()
8677 CastedTo = ConstantFoldCastOperand(Instruction::SIToFP, C, SrcTy, DL); in lookThroughCast()
8680 CastedTo = ConstantFoldCastOperand(Instruction::FPToUI, C, SrcTy, DL); in lookThroughCast()
8683 CastedTo = ConstantFoldCastOperand(Instruction::FPToSI, C, SrcTy, DL); in lookThroughCast()
8694 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCast()
H A DInstructionSimplify.cpp1932 return ConstantFoldCastOperand(Cast0->getOpcode(), C, Cast0->getType(), in simplifyAndOrOfCmps()
3861 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3864 ConstantFoldCastOperand(CastInst::ZExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
3939 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3942 ConstantFoldCastOperand(CastInst::SExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
5324 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.cpp159 if (Constant *Res = ConstantFoldCastOperand(CI.getOpcode(), SrcC, Ty, DL)) in commonCastTransforms()
800 return ConstantFoldCastOperand(Instruction::Trunc, ShAmt, A->getType(), in visitTrunc()
1521 ConstantFoldCastOperand(Instruction::SExt, CA, DestTy, DL); in visitSExt()
H A DInstCombineInternal.h227 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
H A DInstructionCombining.cpp368 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
1516 Constant *Op1IntC = ConstantFoldCastOperand( in foldFBinOpOfIntCastsFromSign()
1521 if (ConstantFoldCastOperand(OpsFromSigned ? Instruction::SIToFP in foldFBinOpOfIntCastsFromSign()
H A DInstCombineSelect.cpp1543 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike()
1545 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
H A DInstCombineCompares.cpp4585 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp666 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
H A DJumpThreading.cpp637 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
H A DLoopStrengthReduce.cpp5852 C = ConstantFoldCastOperand( in Expand()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp734 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect()
735 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp436 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1896 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
1908 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1288 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp344 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()