Home
last modified time | relevance | path

Searched refs:getTrunc (Results 1 – 16 of 16) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp118 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
H A DMicrosoftCXXABI.cpp593 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp369 C = ConstantExpr::getTrunc(C, Ty); in getReducedOperand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp561 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
567 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
822 ConstantExpr::getTrunc(C, DestTy)); in visitTrunc()
2165 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
H A DInstCombineInternal.h223 Constant *TruncC = ConstantExpr::getTrunc(C, TruncTy); in getLosslessTrunc()
H A DInstCombineShifts.cpp309 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineMulDivRem.cpp1508 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
H A DInstCombineAndOrXor.cpp1862 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
3055 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp541 return ConstantExpr::getTrunc( in createHwasanCtorComdat()
1629 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1046 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1970 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
1985 return getTrunc(C, Ty); in getTruncOrBitCast()
2014 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
H A DCore.cpp1735 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp331 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp7875 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
7879 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
H A DScalarEvolution.cpp1152 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
9761 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()