|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/ADT/APInt.h 1374 APInt zextOrTrunc(unsigned width) const;
References
include/llvm/ADT/APSInt.h 111 return APSInt(zextOrTrunc(width), IsUnsigned);
include/llvm/Support/KnownBits.h 142 return KnownBits(Zero.zextOrTrunc(BitWidth), One.zextOrTrunc(BitWidth));
142 return KnownBits(Zero.zextOrTrunc(BitWidth), One.zextOrTrunc(BitWidth));
lib/Analysis/BasicAliasAnalysis.cpp 2025 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs();
lib/Analysis/ConstantFolding.cpp 754 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) -
755 Offs2.zextOrTrunc(OpSize));
903 BasePtr = Base->getValue().zextOrTrunc(BitWidth);
lib/Analysis/MemoryBuiltins.cpp 627 I = I.zextOrTrunc(IntTyBits);
lib/Analysis/ValueTracking.cpp 926 uint64_t ShiftAmtKZ = Known.Zero.zextOrTrunc(64).getZExtValue();
927 uint64_t ShiftAmtKO = Known.One.zextOrTrunc(64).getZExtValue();
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2350 return Value.zextOrTrunc(8).getZExtValue();
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 5163 for (SplatValue = SplatValue.zextOrTrunc(EltBitWidth);
5187 Constant = Constant.zextOrTrunc(Load->getMemoryVT().getScalarSizeInBits());
5983 if (OppLHSAmt != ExtractFromAmt - NeededShiftAmt.zextOrTrunc(
8959 APInt C = cast<ConstantSDNode>(Op)->getAPIntValue().zextOrTrunc(EVTBits);
11275 zextOrTrunc(SrcBitSize).zext(DstBitSize);
11302 getAPIntValue().zextOrTrunc(SrcBitSize);
15146 .zextOrTrunc(Val.getValueSizeInBits())
15147 .zextOrTrunc(ElementSizeBits),
15211 .zextOrTrunc(ElementSizeBits)
15212 .zextOrTrunc(SizeInBits);
15216 .zextOrTrunc(ElementSizeBits)
15217 .zextOrTrunc(SizeInBits);
15245 DAG.getConstant(C->getAPIntValue().zextOrTrunc(LegalizedStoreSize), DL,
16270 APInt InsertVal = C->getAPIntValue().zextOrTrunc(STBitSize);
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp 441 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
474 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 442 bitcastToAPInt().zextOrTrunc(32),
452 zextOrTrunc(64), SDLoc(CFP), MVT::i64);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 1211 APInt NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits());
1237 .zextOrTrunc(ViaEltSizeInBits), DL,
3190 Known.One &= Known2.One.zextOrTrunc(Known.One.getBitWidth());
3191 Known.Zero &= Known2.Zero.zextOrTrunc(Known.Zero.getBitWidth());
3206 Known.One &= Known2.One.zextOrTrunc(Known.One.getBitWidth());
3207 Known.Zero &= Known2.Zero.zextOrTrunc(Known.Zero.getBitWidth());
3367 return Const->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2();
3389 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2();
4299 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT,
9392 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos);
lib/CodeGen/SelectionDAG/TargetLowering.cpp 856 APInt DemandedSclBits = DemandedBits.zextOrTrunc(NumSclBits);
2456 KnownZero = SrcZero.zextOrTrunc(NumElts);
2457 KnownUndef = SrcUndef.zextOrTrunc(NumElts);
lib/ExecutionEngine/ExecutionEngine.cpp 741 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth);
747 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth);
lib/ExecutionEngine/Interpreter/Execution.cpp 879 exit(GV.IntVal.zextOrTrunc(32).getZExtValue());
1534 Src.IntVal = Src.IntVal.zextOrTrunc(PtrSize);
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 1876 APInt SignificantBitsToBeInserted = BitsToBeInserted.zextOrTrunc(BitWidth);
lib/Target/AArch64/AArch64ISelLowering.cpp 2693 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32));
7123 CnstBits |= SplatBits.zextOrTrunc(VT.getSizeInBits());
7124 UndefBits |= (SplatBits ^ SplatUndef).zextOrTrunc(VT.getSizeInBits());
7137 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7159 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7207 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7246 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7277 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7298 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue();
7557 Const->getAPIntValue().zextOrTrunc(BitSize).getZExtValue());
lib/Target/ARM/ARMISelLowering.cpp 8396 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32));
lib/Target/Hexagon/HexagonConstPropagation.cpp 1584 Result = A1.zextOrTrunc(Width) & Mask;
lib/Target/Sparc/SparcISelLowering.cpp 3068 SDValue Lo = DAG.getConstant(V.zextOrTrunc(32), DL, MVT::i32);
3069 SDValue Hi = DAG.getConstant(V.lshr(32).zextOrTrunc(32), DL, MVT::i32);
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 1546 APInt Shift = SplatConst->getAPIntValue().zextOrTrunc(32);
lib/Target/X86/X86ISelLowering.cpp 6078 SrcEltBits[i] = Cst->getAPIntValue().zextOrTrunc(SrcEltSizeInBits);
6096 SrcEltBits[i] = RawBits.zextOrTrunc(SrcEltSizeInBits);
6193 SrcEltBits.push_back(CN->getAPIntValue().zextOrTrunc(SrcEltSizeInBits));
34398 APInt SrcElts = DemandedElts.zextOrTrunc(SrcVT.getVectorNumElements());
34460 APInt DemandedSrc = DemandedElts.zextOrTrunc(SrcVT.getVectorNumElements());
34465 KnownZero = SrcZero.zextOrTrunc(NumElts);
34466 KnownUndef = SrcUndef.zextOrTrunc(NumElts);
34966 APInt DemandedElts = OriginalDemandedBits.zextOrTrunc(NumElts);
lib/Transforms/InstCombine/InstCombineCalls.cpp 378 Count |= SubElt->getValue().zextOrTrunc(64);
405 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth));
746 APInt APIndex = CIIndex->getValue().zextOrTrunc(6);
747 APInt APLength = CILength->getValue().zextOrTrunc(6);
798 Elt = Elt.zextOrTrunc(Length);
825 APIndex = APIndex.zextOrTrunc(6);
826 APLength = APLength.zextOrTrunc(6);
890 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index);
890 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index);
990 Index = Index.zextOrTrunc(32).getLoBits(2);
2984 APInt Len = V11.zextOrTrunc(6);
2985 APInt Idx = V11.lshr(8).zextOrTrunc(6);
3017 APInt Len = CILength->getValue().zextOrTrunc(6);
3018 APInt Idx = CIIndex->getValue().zextOrTrunc(6);
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 364 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth);
735 APInt DemandedElts = DemandedMask.zextOrTrunc(ArgWidth);
1446 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio);
lib/Transforms/Scalar/SROA.cpp 2962 OtherOffset.zextOrTrunc(64).getZExtValue());
tools/clang/lib/AST/ASTContext.cpp 3183 ArySize = ArySize.zextOrTrunc(Target->getMaxPointerWidth());
tools/clang/lib/AST/ExprConstant.cpp 2445 Res |= EltAsInt.zextOrTrunc(VecSize).rotr(i*EltSize+BaseEltSize);
2447 Res |= EltAsInt.zextOrTrunc(VecSize).rotl(i*EltSize);
9314 Elt = SValInt.rotl(i*EltSize+EltSize).zextOrTrunc(EltSize);
9316 Elt = SValInt.rotr(i*EltSize).zextOrTrunc(EltSize);
tools/clang/lib/AST/Interp/Boolean.h 57 return APSInt(toAPSInt().zextOrTrunc(NumBits), true);
tools/clang/lib/AST/Interp/Integral.h 113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
tools/clang/lib/Basic/FixedPoint.cpp 189 llvm::APInt FractPart = Val.zextOrTrunc(Scale).zext(Width);
tools/clang/lib/CodeGen/CGBuiltin.cpp 6024 uint64_t ZExtValue = Value.zextOrTrunc(IsThumb ? 16 : 32).getZExtValue();
tools/clang/lib/CodeGen/CGExpr.cpp 3675 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits);
3681 ConstLowerBound = ConstLowerBound.zextOrTrunc(PointerWidthInBits);
3733 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits);
tools/clang/lib/CodeGen/CGExprCXX.cpp 750 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth);
tools/clang/lib/Sema/SemaDecl.cpp17040 EnumVal = EnumVal.zextOrTrunc(Context.getIntWidth(EltTy));
17343 llvm::APInt FlagMask = ~FlagBits.zextOrTrunc(Val.getBitWidth());
tools/clang/lib/Sema/SemaDeclCXX.cpp12279 = ArrayTy->getSize().zextOrTrunc(S.Context.getTypeSize(SizeType));
tools/lldb/source/Expression/IRInterpreter.cpp 352 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8));
tools/lldb/source/Utility/Scalar.cpp 455 m_integer = m_integer.zextOrTrunc(bits);
553 m_integer = m_integer.zextOrTrunc(sizeof(slong_t) * 8);
558 m_integer = m_integer.zextOrTrunc(sizeof(ulong_t) * 8);
563 m_integer = m_integer.zextOrTrunc(sizeof(slonglong_t) * 8);
568 m_integer = m_integer.zextOrTrunc(sizeof(ulonglong_t) * 8);
574 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT128);
580 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT256);
586 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
691 m_integer = m_integer.zextOrTrunc(sizeof(slonglong_t) * 8);
696 m_integer = m_integer.zextOrTrunc(sizeof(ulonglong_t) * 8);
702 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT128);
708 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT256);
714 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
814 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT128);
820 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT256);
826 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
924 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT256);
930 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
980 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
1027 m_integer = m_integer.zextOrTrunc(BITWIDTH_INT512);
1397 (m_integer.zextOrTrunc(sizeof(uchar_t) * 8)).getZExtValue());
1405 (ldbl_val.zextOrTrunc(sizeof(uchar_t) * 8)).getZExtValue());
1457 (m_integer.zextOrTrunc(sizeof(ushort_t) * 8)).getZExtValue());
1465 (ldbl_val.zextOrTrunc(sizeof(ushort_t) * 8)).getZExtValue());
1517 (m_integer.zextOrTrunc(sizeof(uint_t) * 8)).getZExtValue());
1525 (ldbl_val.zextOrTrunc(sizeof(uint_t) * 8)).getZExtValue());
1577 (m_integer.zextOrTrunc(sizeof(ulong_t) * 8)).getZExtValue());
1585 (ldbl_val.zextOrTrunc(sizeof(ulong_t) * 8)).getZExtValue());
1637 (m_integer.zextOrTrunc(sizeof(ulonglong_t) * 8)).getZExtValue());
1645 (rounded_double.zextOrTrunc(sizeof(ulonglong_t) * 8)).getZExtValue());
1650 (ldbl_val.zextOrTrunc(sizeof(ulonglong_t) * 8)).getZExtValue());
2759 .zextOrTrunc(bit_size)