Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp118 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
H A DMicrosoftCXXABI.cpp591 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp569 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
575 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
843 ConstantExpr::getTrunc(C, DestTy)); in visitTrunc()
2255 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
H A DInstCombineInternal.h225 Constant *TruncC = ConstantExpr::getTrunc(C, TruncTy); in getLosslessTrunc()
H A DInstCombineShifts.cpp312 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineAndOrXor.cpp1943 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
3185 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
H A DInstCombineMulDivRem.cpp1644 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp566 return ConstantExpr::getTrunc( in createHwasanCtorComdat()
1718 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1125 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp2197 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
2212 return getTrunc(C, Ty); in getTruncOrBitCast()
2241 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
H A DCore.cpp1854 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp331 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp8630 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
8634 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
H A DScalarEvolution.cpp1154 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
9823 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()