Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DConstantFolding.h114 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
H A DTargetFolder.h190 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp1443 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1446 A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A), in CanShareConstantPoolEntry()
1449 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1452 B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B), in CanShareConstantPoolEntry()
/freebsd-14.2/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()
841 Constant *NewIdx = ConstantFoldCastOperand( in CastGEPIndices()
1020 return ConstantFoldCastOperand(Opcode, Ops[0], DestTy, DL); in ConstantFoldInstOperandsImpl()
1383 Constant *llvm::ConstantFoldCastOperand(unsigned Opcode, Constant *C, in ConstantFoldCastOperand() function in llvm
1476 return ConstantFoldCastOperand(Instruction::Trunc, C, DestTy, DL); in ConstantFoldIntegerCast()
1478 return ConstantFoldCastOperand(Instruction::SExt, C, DestTy, DL); in ConstantFoldIntegerCast()
1479 return ConstantFoldCastOperand(Instruction::ZExt, C, DestTy, DL); in ConstantFoldIntegerCast()
H A DValueTracking.cpp7909 CastedTo = ConstantFoldCastOperand(ExtOp, C, SrcTy, DL); in lookThroughCast()
7913 CastedTo = ConstantFoldCastOperand(Instruction::FPExt, C, SrcTy, DL); in lookThroughCast()
7916 CastedTo = ConstantFoldCastOperand(Instruction::FPTrunc, C, SrcTy, DL); in lookThroughCast()
7919 CastedTo = ConstantFoldCastOperand(Instruction::UIToFP, C, SrcTy, DL); in lookThroughCast()
7922 CastedTo = ConstantFoldCastOperand(Instruction::SIToFP, C, SrcTy, DL); in lookThroughCast()
7925 CastedTo = ConstantFoldCastOperand(Instruction::FPToUI, C, SrcTy, DL); in lookThroughCast()
7928 CastedTo = ConstantFoldCastOperand(Instruction::FPToSI, C, SrcTy, DL); in lookThroughCast()
7939 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCast()
H A DInstructionSimplify.cpp1925 return ConstantFoldCastOperand(Cast0->getOpcode(), C, Cast0->getType(), in simplifyAndOrOfCmps()
3856 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3859 ConstantFoldCastOperand(CastInst::ZExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
3934 ConstantFoldCastOperand(Instruction::Trunc, C, SrcTy, Q.DL); in simplifyICmpInst()
3937 ConstantFoldCastOperand(CastInst::SExt, Trunc, DstTy, Q.DL); in simplifyICmpInst()
5292 return ConstantFoldCastOperand(CastOpc, C, Ty, Q.DL); in simplifyCastInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp140 NewShAmt = ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts()
253 auto *ExtendedSumOfShAmts = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
290 auto *ExtendedNumHighBitsToClear = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineCasts.cpp159 if (Constant *Res = ConstantFoldCastOperand(CI.getOpcode(), SrcC, Ty, DL)) in commonCastTransforms()
779 return ConstantFoldCastOperand(Instruction::Trunc, ShAmt, A->getType(), in visitTrunc()
1483 ConstantFoldCastOperand(Instruction::SExt, CA, DestTy, DL); in visitSExt()
H A DInstCombineInternal.h225 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
H A DInstCombineAddSub.cpp1896 Constant *CI = ConstantFoldCastOperand(Instruction::FPToSI, CFP, in visitFAdd()
1899 ConstantFoldCastOperand(Instruction::SIToFP, CI, I.getType(), DL) == in visitFAdd()
H A DInstCombineSelect.cpp1505 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike()
1507 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
H A DInstructionCombining.cpp350 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
H A DInstCombineCompares.cpp4291 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp665 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
H A DJumpThreading.cpp640 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
H A DLoopStrengthReduce.cpp5551 C = ConstantFoldCastOperand( in Expand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp436 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp732 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect()
733 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1244 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1760 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp328 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()