/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 127 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
|
H A D | TargetFolder.h | 187 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineFunction.cpp | 1455 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 D | ConstantFolding.cpp | 230 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 D | ValueTracking.cpp | 8664 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 D | InstructionSimplify.cpp | 1932 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 D | InstCombineShifts.cpp | 140 NewShAmt = ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts() 253 auto *ExtendedSumOfShAmts = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput() 293 auto *ExtendedNumHighBitsToClear = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
|
H A D | InstCombineCasts.cpp | 159 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 D | InstCombineInternal.h | 227 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
|
H A D | InstructionCombining.cpp | 368 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 D | InstCombineSelect.cpp | 1543 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike() 1545 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
|
H A D | InstCombineCompares.cpp | 4585 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SeparateConstOffsetFromGEP.cpp | 666 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
|
H A D | JumpThreading.cpp | 637 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
|
H A D | LoopStrengthReduce.cpp | 5852 C = ConstantFoldCastOperand( in Expand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 734 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 D | FunctionSpecialization.cpp | 436 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1896 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 D | SCCPSolver.cpp | 1288 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeDAG.cpp | 344 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()
|