| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 250 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in shl() 251 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in shl() 296 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in lshr() 297 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in lshr() 344 unsigned ShiftAmtZeroMask = RHS.Zero.zextOrTrunc(32).getZExtValue(); in ashr() 345 unsigned ShiftAmtOneMask = RHS.One.zextOrTrunc(32).getZExtValue(); in ashr()
|
| H A D | APFixedPoint.cpp | 407 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 269 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift() 1707 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq() 1756 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq() 1783 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq() 1784 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq() 1846 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq() 1943 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar() 2613 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic() 2614 APInt Idx = V11.lshr(8).zextOrTrunc(6); in instCombineIntrinsic() 2646 APInt Len = CILength->getValue().zextOrTrunc(6); in instCombineIntrinsic() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Boolean.h | 62 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
|
| H A D | Integral.h | 113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
|
| H A D | IntegralAP.h | 110 return IntegralAP<Signed>(V.V.zextOrTrunc(NumBits));
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 373 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 444 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits() 456 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits() 939 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth), in SimplifyDemandedUseBits() 969 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth))) in SimplifyDemandedUseBits() 1757 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
|
| H A D | InstCombineVectorOps.cpp | 395 IndexC->getValue().zextOrTrunc(64)); in getPreferredVectorIndex() 442 Idx = ConstantInt::get(Ty, IndexC->getValue().zextOrTrunc(BitWidth)); in visitExtractElementInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 470 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl() 472 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
|
| H A D | Utils.cpp | 1011 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 1048 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 187 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 121 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
|
| H A D | APInt.h | 1284 APInt zextOrTrunc(unsigned width) const;
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 162 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType() 382 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 747 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue() 753 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 814 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop() 815 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop() 922 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
|
| H A D | MemoryBuiltins.cpp | 374 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
|
| H A D | BasicAliasAnalysis.cpp | 1828 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 881 exit(GV.IntVal.zextOrTrunc(32).getZExtValue()); in exitCalled() 1531 Src.IntVal = Src.IntVal.zextOrTrunc(PtrSize); in executeIntToPtrInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64InstructionSelector.cpp | 5453 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm8() 5477 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm16() 5507 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm32() 5542 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm64() 5565 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm321s() 5596 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImmFP()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 1633 NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant() 3882 Known = Known.intersectWith(Known2.zextOrTrunc(BitWidth)); in computeKnownBits() 4179 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 4210 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo() 4218 if (C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo() 6089 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic() 6096 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic() 12427 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 860 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 779 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()
|
| H A D | CGExpr.cpp | 4401 ConstLength = CL->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr() 4409 ConstLowerBound = LB->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr() 4465 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
|