Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp118 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
H A DMicrosoftCXXABI.cpp568 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp666 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
672 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
882 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
892 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
921 ConstantExpr::getTrunc(C, DestTy)); in visitTrunc()
2277 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
H A DInstCombineMulDivRem.cpp1013 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem()
1154 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
H A DInstCombineAndOrXor.cpp1387 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1397 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1578 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
2446 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
H A DInstCombinePHI.cpp820 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in foldPHIArgZextsIntoPHI()
H A DInstCombineShifts.cpp294 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineCalls.cpp1317 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
1340 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
H A DInstCombineSelect.cpp1980 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst()
H A DInstructionCombining.cpp1909 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow()
H A DInstCombineCompares.cpp4901 Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy); in foldICmpWithZextOrSext()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp340 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
1891 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
1894 Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType()); in ConstantFoldCompareInstruction()
H A DConstants.cpp1954 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
1997 return getTrunc(C, Ty); in getTruncOrBitCast()
2007 return getTrunc(C, Ty); in getSExtOrTrunc()
2061 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
H A DCore.cpp1692 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp518 return ConstantExpr::getTrunc( in createHwasanCtorComdat()
1556 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h1032 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp222 Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp278 Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy); in FoldBitCast()
284 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy)); in FoldBitCast()
H A DInstructionSimplify.cpp3700 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst()
3769 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst()
H A DValueTracking.cpp6275 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
6279 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
H A DScalarEvolution.cpp1222 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
9525 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributor.cpp287 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm.mli1188 See the method [llvm::ConstantExpr::getTrunc]. *)