| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ConstantFolding.h | 114 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
|
| H A D | TargetFolder.h | 190 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineFunction.cpp | 1443 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 D | ConstantFolding.cpp | 230 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 D | ValueTracking.cpp | 7909 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 D | InstructionSimplify.cpp | 1925 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 D | InstCombineShifts.cpp | 140 NewShAmt = ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts() 253 auto *ExtendedSumOfShAmts = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput() 290 auto *ExtendedNumHighBitsToClear = ConstantFoldCastOperand( in dropRedundantMaskingOfLeftShiftInput()
|
| H A D | InstCombineCasts.cpp | 159 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 D | InstCombineInternal.h | 225 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
|
| H A D | InstCombineAddSub.cpp | 1896 Constant *CI = ConstantFoldCastOperand(Instruction::FPToSI, CFP, in visitFAdd() 1899 ConstantFoldCastOperand(Instruction::SIToFP, CI, I.getType(), DL) == in visitFAdd()
|
| H A D | InstCombineSelect.cpp | 1505 ConstantFoldCastOperand(Instruction::SExt, LowC, X->getType(), DL); in canonicalizeClampLike() 1507 ConstantFoldCastOperand(Instruction::SExt, HighC, X->getType(), DL); in canonicalizeClampLike()
|
| H A D | InstructionCombining.cpp | 350 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
|
| H A D | InstCombineCompares.cpp | 4291 ConstantFoldCastOperand(Instruction::ZExt, NewShAmt, WidestTy, SQ.DL); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 665 Current = ConstantFoldCastOperand(I->getOpcode(), C, I->getType(), DL); in applyExts()
|
| H A D | JumpThreading.cpp | 640 if (Constant *Folded = ConstantFoldCastOperand(CI->getOpcode(), Val.first, in computeValueKnownInPredecessorsImpl()
|
| H A D | LoopStrengthReduce.cpp | 5551 C = ConstantFoldCastOperand( in Expand()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 436 return ConstantFoldCastOperand(I.getOpcode(), LastVisited->second, in visitCastInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 732 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 D | SCCPSolver.cpp | 1244 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 1760 llvm::Constant *Res = llvm::ConstantFoldCastOperand( in emitForMemory()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 328 LLVMC = cast<ConstantFP>(ConstantFoldCastOperand( in ExpandConstantFP()
|