Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp118 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
H A DMicrosoftCXXABI.cpp581 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp695 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
701 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
911 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
921 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
950 ConstantExpr::getTrunc(C, DestTy)); in visitTrunc()
2276 Piece = ConstantExpr::getTrunc(Piece, ElementIntTy); in collectInsertionElements()
H A DInstCombineMulDivRem.cpp1217 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem()
1228 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem()
1382 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
H A DInstCombineAndOrXor.cpp1498 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1508 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant()
1711 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp()
2677 AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty)); in getSelectCondition()
H A DInstCombinePHI.cpp827 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in foldPHIArgZextsIntoPHI()
H A DInstCombineShifts.cpp294 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
H A DInstCombineCalls.cpp1338 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
1361 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
H A DInstCombineSelect.cpp2038 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst()
H A DInstructionCombining.cpp1924 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow()
H A DInstCombineCompares.cpp4899 Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy); in foldICmpWithZextOrSext()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp340 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
1894 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
1897 Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType()); in ConstantFoldCompareInstruction()
H A DConstants.cpp1984 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
2027 return getTrunc(C, Ty); in getTruncOrBitCast()
2037 return getTrunc(C, Ty); in getSExtOrTrunc()
2091 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() function in ConstantExpr
H A DCore.cpp1680 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp522 return ConstantExpr::getTrunc( in createHwasanCtorComdat()
1549 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DConstants.h1057 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
/openbsd-src/gnu/llvm/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 DValueTracking.cpp6467 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast()
6471 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
H A DInstructionSimplify.cpp3770 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst()
3839 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst()
H A DScalarEvolution.cpp1214 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
9792 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DAttributor.cpp300 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()
/openbsd-src/gnu/llvm/llvm/bindings/ocaml/llvm/
H A Dllvm.mli1181 See the method [llvm::ConstantExpr::getTrunc]. *)