Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp142 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffset()
H A DCodeGenFunction.cpp508 : llvm::ConstantExpr::getTrunc(PCRelAsInt, Int32Ty); in EncodeAddrForUseInPrologue()
H A DMicrosoftCXXABI.cpp547 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1319 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1329 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1521 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
1634 auto *TruncC1 = ConstantExpr::getTrunc(C1, X->getType()); in visitAnd()
1641 auto *TruncC2 = ConstantExpr::getTrunc(AndRHS, X->getType()); in visitAnd()
1663 Constant *C3 = ConstantExpr::getTrunc(YC, I.getType()); in visitAnd()
1933 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
H A DInstCombineCasts.cpp602 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
608 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
1944 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
H A DInstCombineMulDivRem.cpp850 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem()
1000 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
H A DInstCombinePHI.cpp689 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in FoldPHIArgZextsIntoPHI()
H A DInstCombineSelect.cpp1309 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst()
H A DInstructionCombining.cpp1527 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow()
H A DInstCombineCompares.cpp3772 Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy); in foldICmpWithCastAndCast()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantFold.cpp337 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
2001 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
2004 Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType()); in ConstantFoldCompareInstruction()
H A DConstants.cpp1541 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
1584 return getTrunc(C, Ty); in getTruncOrBitCast()
1637 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
H A DCore.cpp1638 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstants.h954 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp268 Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy); in FoldBitCast()
274 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy)); in FoldBitCast()
H A DValueTracking.cpp5011 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
5015 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
H A DInstructionSimplify.cpp3405 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
3464 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
H A DScalarEvolution.cpp1240 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
8012 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()