Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DRelLookupTableConverter.cpp115 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DConstantInitBuilder.cpp147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
DCodeGenFunction.cpp574 : llvm::ConstantExpr::getTrunc(PCRelAsInt, Int32Ty); in EncodeAddrForUseInPrologue()
DMicrosoftCXXABI.cpp562 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp662 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
668 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
855 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
865 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
914 ConstantExpr::getTrunc(C, DestTy)); in visitTrunc()
2238 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
DInstCombineAndOrXor.cpp1584 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1594 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1775 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
1925 auto *TruncC1 = ConstantExpr::getTrunc(C1, X->getType()); in visitAnd()
1932 auto *TruncC2 = ConstantExpr::getTrunc(AndRHS, X->getType()); in visitAnd()
2335 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
DInstCombineMulDivRem.cpp991 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem()
1156 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
DInstCombinePHI.cpp788 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in foldPHIArgZextsIntoPHI()
DInstCombineShifts.cpp295 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
DInstCombineCalls.cpp980 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
1003 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
DInstCombineSelect.cpp1940 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst()
DInstructionCombining.cpp1830 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow()
DInstCombineCompares.cpp4536 Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy); in foldICmpWithZextOrSext()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DConstantFold.cpp342 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
2039 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
2042 Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType()); in ConstantFoldCompareInstruction()
DConstants.cpp1989 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
2032 return getTrunc(C, Ty); in getTruncOrBitCast()
2085 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
DCore.cpp1711 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp529 return ConstantExpr::getTrunc( in createHwasanCtorComdat()
1508 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DConstants.h1005 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DConstantFolding.cpp286 Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy); in FoldBitCast()
292 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy)); in FoldBitCast()
DValueTracking.cpp6094 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
6098 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
DInstructionSimplify.cpp3485 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
3553 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
DScalarEvolution.cpp1205 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
8764 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DAttributor.cpp256 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()