reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constants.h
  953   static Constant *getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced = false);

References

lib/Analysis/ConstantFolding.cpp
  271         Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy);
  277       Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy));
lib/Analysis/InstructionSimplify.cpp
 3285         Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
 3344         Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
lib/Analysis/ScalarEvolution.cpp
 1272       cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty)));
 8072         return ConstantExpr::getTrunc(CastOp, ST->getType());
lib/Analysis/ValueTracking.cpp
 4981       CastedTo = ConstantExpr::getTrunc(C, SrcTy);
 4985       CastedTo = ConstantExpr::getTrunc(C, SrcTy, true);
lib/IR/ConstantFold.cpp
  339       return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(),
 2097         Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType());
 2100           Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType());
lib/IR/Constants.cpp
 1572     return getTrunc(C, Ty, OnlyIfReduced);
 1615   return getTrunc(C, Ty);
lib/IR/Core.cpp
 1662   return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal),
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1512     Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy);
 1522     Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy);
 1714   Value *NewC = ConstantExpr::getTrunc(C, X->getType());
 1831             auto *TruncC1 = ConstantExpr::getTrunc(C1, X->getType());
 1838             auto *TruncC2 = ConstantExpr::getTrunc(AndRHS, X->getType());
 1860         Constant *C3 = ConstantExpr::getTrunc(YC, I.getType());
 2158     AConst = ConstantExpr::getTrunc(AConst, CmpInst::makeCmpResultType(Ty));
lib/Transforms/InstCombine/InstCombineCasts.cpp
  601       Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy);
  607       Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy);
 1949       Piece = ConstantExpr::getTrunc(Piece, ElementIntTy);
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4354   Constant *Res1 = ConstantExpr::getTrunc(C, SrcTy);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  938     Constant *TruncC = ConstantExpr::getTrunc(C, X->getType());
 1092           ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType());
lib/Transforms/InstCombine/InstCombinePHI.cpp
  689       Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType);
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1763   Constant *TruncC = ConstantExpr::getTrunc(C, SmallType);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  260   NewMask = ConstantExpr::getTrunc(NewMask, NarrowestTy);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1591     Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType());
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1293     auto *GVRelPtr = ConstantExpr::getTrunc(
 1379     return ConstantExpr::getTrunc(
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  519              : llvm::ConstantExpr::getTrunc(PCRelAsInt, Int32Ty);
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  141     offset = llvm::ConstantExpr::getTrunc(offset, offsetType);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  548     return llvm::ConstantExpr::getTrunc(Diff, CGM.IntTy);
unittests/IR/ConstantsTest.cpp
  210   Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty);