| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | RelLookupTableConverter.cpp | 118 llvm::ConstantExpr::getTrunc(Sub, Type::getInt32Ty(M.getContext())); in createRelLookupTable()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | ConstantInitBuilder.cpp | 147 offset = llvm::ConstantExpr::getTrunc(offset, offsetType); in getRelativeOffsetToPosition()
|
| H A D | MicrosoftCXXABI.cpp | 568 return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy); in getImageRelativeConstant()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 666 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 D | InstCombineMulDivRem.cpp | 1013 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem() 1154 ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType()); in visitSDiv()
|
| H A D | InstCombineAndOrXor.cpp | 1387 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 D | InstCombinePHI.cpp | 820 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in foldPHIArgZextsIntoPHI()
|
| H A D | InstCombineShifts.cpp | 294 NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy); in dropRedundantMaskingOfLeftShiftInput()
|
| H A D | InstCombineCalls.cpp | 1317 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() 1340 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst()
|
| H A D | InstCombineSelect.cpp | 1980 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst()
|
| H A D | InstructionCombining.cpp | 1909 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow()
|
| H A D | InstCombineCompares.cpp | 4901 Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy); in foldICmpWithZextOrSext()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 340 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 D | Constants.cpp | 1954 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 D | Core.cpp | 1692 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 518 return ConstantExpr::getTrunc( in createHwasanCtorComdat() 1556 auto *GVRelPtr = ConstantExpr::getTrunc( in instrumentGlobal()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1032 static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantsTest.cpp | 222 Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 278 Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy); in FoldBitCast() 284 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy)); in FoldBitCast()
|
| H A D | InstructionSimplify.cpp | 3700 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst() 3769 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in simplifyICmpInst()
|
| H A D | ValueTracking.cpp | 6275 CastedTo = ConstantExpr::getTrunc(C, SrcTy); in lookThroughCast() 6279 CastedTo = ConstantExpr::getTrunc(C, SrcTy, true); in lookThroughCast()
|
| H A D | ScalarEvolution.cpp | 1222 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 D | Attributor.cpp | 287 return ConstantExpr::getTrunc(C, &Ty, /* OnlyIfReduced */ true); in getWithType()
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/llvm/ |
| H A D | llvm.mli | 1188 See the method [llvm::ConstantExpr::getTrunc]. *)
|