Home
last modified time | relevance | path

Searched refs:zextOrTrunc (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp268 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift()
640 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq()
689 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq()
716 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq()
717 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq()
779 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq()
876 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar()
1548 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic()
1549 APInt Idx = V11.lshr(8).zextOrTrunc(6); in instCombineIntrinsic()
1581 APInt Len = CILength->getValue().zextOrTrunc(6); in instCombineIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DBoolean.h57 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
H A DIntegral.h113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp465 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
497 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo()
H A DSelectionDAG.cpp1376 APInt NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant()
3448 Known = KnownBits::commonBits(Known, Known2.zextOrTrunc(BitWidth)); in computeKnownBits()
3623 return Const->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3645 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
4667 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
4674 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
10320 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
H A DDAGCombiner.cpp5769 for (SplatValue = SplatValue.zextOrTrunc(EltBitWidth); in visitAND()
5793 Constant = Constant.zextOrTrunc(Load->getMemoryVT().getScalarSizeInBits()); in visitAND()
6693 if (OppLHSAmt != ExtractFromAmt - NeededShiftAmt.zextOrTrunc( in extractShiftForRotate()
10464 APInt C = cast<ConstantSDNode>(Op)->getAPIntValue().zextOrTrunc(EVTBits); in tryToFoldExtendOfConstant()
12962 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
12989 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
16962 .zextOrTrunc(ElementSizeBits), in mergeStoresOfConstantsOrVecElts()
17026 .zextOrTrunc(ElementSizeBits) in mergeStoresOfConstantsOrVecElts()
17027 .zextOrTrunc(SizeInBits); in mergeStoresOfConstantsOrVecElts()
17031 .zextOrTrunc(ElementSizeBits) in mergeStoresOfConstantsOrVecElts()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h337 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp462 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
464 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
H A DUtils.cpp703 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
741 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h185 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp392 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
397 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits()
1495 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h106 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1404 APInt zextOrTrunc(unsigned width) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp383 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
/freebsd-13.1/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp160 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType()
354 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp735 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
741 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp825 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop()
826 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop()
973 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
H A DMemoryBuiltins.cpp660 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
H A DBasicAliasAnalysis.cpp1776 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
H A DValueTracking.cpp473 APInt UnsignedMax = Range.getUnsignedMax().zextOrTrunc(BitWidth); in computeKnownBitsFromRangeMetadata()
972 uint64_t ShiftAmtKZ = Known.Zero.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
973 uint64_t ShiftAmtKO = Known.One.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
1174 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsFromOperator()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp881 exit(GV.IntVal.zextOrTrunc(32).getZExtValue()); in exitCalled()
1531 Src.IntVal = Src.IntVal.zextOrTrunc(PtrSize); in executeIntToPtrInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp779 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp3951 ConstLength = CL->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
3958 ConstLowerBound = LB->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
4013 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
H A DCGExprCXX.cpp771 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3642 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32)); in skipExtensionForVectorMULL()
9621 CnstBits |= SplatBits.zextOrTrunc(VT.getSizeInBits()); in resolveBuildVector()
9622 UndefBits |= (SplatBits ^ SplatUndef).zextOrTrunc(VT.getSizeInBits()); in resolveBuildVector()
9635 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm64()
9657 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm32()
9705 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm16()
9744 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm321s()
9775 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm8()
9796 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImmFP()
10079 Const->getAPIntValue().zextOrTrunc(BitSize).getZExtValue()); in LowerBUILD_VECTOR()
[all …]

12