| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ConstantFolding.h | 130 LLVM_ABI Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C,
|
| H A D | TargetFolder.h | 188 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineFunction.cpp | 1525 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 D | ConstantFolding.cpp | 243 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 D | ValueTracking.cpp | 8831 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 D | InstructionSimplify.cpp | 1887 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 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 | 161 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 D | InstCombineInternal.h | 228 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
|
| H A D | InstructionCombining.cpp | 397 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 D | InstCombineSelect.cpp | 1634 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike() 1636 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
|
| H A D | InstCombineCompares.cpp | 4801 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 738 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 D | SeparateConstOffsetFromGEP.cpp | 668 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
|
| H A D | JumpThreading.cpp | 634 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
|
| H A D | LoopStrengthReduce.cpp | 5824 C = ConstantFoldCastOperand( in Expand()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 470 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 1988 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 D | SCCPSolver.cpp | 1388 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 354 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()
|