| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 349 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in shl() 350 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in shl() 407 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in lshr() 408 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in lshr() 467 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in ashr() 468 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in ashr()
|
| H A D | APFixedPoint.cpp | 427 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 264 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift() 282 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift() 1816 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq() 1817 APInt APLength = CILength->getValue().zextOrTrunc(6); in simplifyX86extrq() 1865 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq() 1890 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq() 1891 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq() 1953 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq() 2048 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar() 2810 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic() [all …]
|
| H A D | X86FixupVectorConstants.cpp | 151 return Bits->zextOrTrunc(NumBits); in extractConstantBits() 290 APInt RawBits = Bits->zextOrTrunc(ScalarBitWidth); in rebuildZeroUpperCst()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Boolean.h | 53 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
|
| H A D | Integral.h | 138 .zextOrTrunc(BitWidth);
|
| H A D | IntegralAP.h | 195 getValue().trunc(BitWidth).zextOrTrunc(this->bitWidth())); in truncate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | EVLIndVarSimplify.cpp | 85 V = V.zextOrTrunc(Fixed->getBitWidth()); in getVFFromIndVar()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 447 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits() 460 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits() 956 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth), in SimplifyDemandedUseBits() 984 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth))) in SimplifyDemandedUseBits() 1812 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
|
| H A D | InstCombineVectorOps.cpp | 395 IndexC->getValue().zextOrTrunc(64)); in getPreferredVectorIndex() 443 Idx = ConstantInt::get(Ty, IndexC->getValue().zextOrTrunc(BitWidth)); in visitExtractElementInst()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 388 LLVM_ABI ConstantRange zextOrTrunc(uint32_t BitWidth) const;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 122 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
|
| H A D | APInt.h | 1312 LLVM_ABI APInt zextOrTrunc(unsigned width) const;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 189 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
|
| /freebsd/contrib/llvm-project/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 160 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType() 380 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 746 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue() 752 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 3171 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateInsertElement() 3197 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateInsertVector() 3252 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateExtractElement() 3276 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateExtractVector()
|
| H A D | Utils.cpp | 1121 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 1158 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 845 exit(GV.IntVal.zextOrTrunc(32).getZExtValue()); in exitCalled() 1495 Src.IntVal = Src.IntVal.zextOrTrunc(PtrSize); in executeIntToPtrInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64InstructionSelector.cpp | 5386 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm8() 5410 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm16() 5440 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm32() 5475 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm64() 5498 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm321s() 5529 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImmFP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 834 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop() 835 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop() 959 BasePtr = Base->getValue().zextOrTrunc(BasePtr.getBitWidth()); in SymbolicallyEvaluateGEP()
|
| H A D | MemoryBuiltins.cpp | 362 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
|
| H A D | BasicAliasAnalysis.cpp | 1974 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPreLegalizer.cpp | 404 CImmVal->getValue().zextOrTrunc(NewWidth))); in widenCImmType()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 1695 NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant() 4279 Known = Known.intersectWith(Known2.zextOrTrunc(BitWidth)); in computeKnownBits() 4626 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 4657 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 4665 if (C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo() 6825 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic() 6832 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic() 13332 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
|