Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp268 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift()
286 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift()
640 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq()
641 APInt APLength = CILength->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()
[all …]
/netbsd-src/external/apache2/llvm/dist/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);
/netbsd-src/external/apache2/llvm/dist/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.cpp1375 APInt NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant()
1417 NewVal.lshr(i * ViaEltSizeInBits).zextOrTrunc(ViaEltSizeInBits), DL, in getConstant()
3451 Known = KnownBits::commonBits(Known, Known2.zextOrTrunc(BitWidth)); in computeKnownBits()
3626 return Const->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3648 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
4616 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
10234 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
H A DDAGCombiner.cpp5739 for (SplatValue = SplatValue.zextOrTrunc(EltBitWidth); in visitAND()
5763 Constant = Constant.zextOrTrunc(Load->getMemoryVT().getScalarSizeInBits()); in visitAND()
6663 if (OppLHSAmt != ExtractFromAmt - NeededShiftAmt.zextOrTrunc( in extractShiftForRotate()
10321 APInt C = cast<ConstantSDNode>(Op)->getAPIntValue().zextOrTrunc(EVTBits); in tryToFoldExtendOfConstant()
12769 zextOrTrunc(SrcBitSize).zext(DstBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
12796 getAPIntValue().zextOrTrunc(SrcBitSize); in ConstantFoldBITCASTofBUILD_VECTOR()
16763 .zextOrTrunc(Val.getValueSizeInBits()) in mergeStoresOfConstantsOrVecElts()
16764 .zextOrTrunc(ElementSizeBits), in mergeStoresOfConstantsOrVecElts()
16828 .zextOrTrunc(ElementSizeBits) in mergeStoresOfConstantsOrVecElts()
16829 .zextOrTrunc(SizeInBits); in mergeStoresOfConstantsOrVecElts()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantRange.h337 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp447 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
449 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
H A DUtils.cpp690 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
728 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DKnownBits.h185 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPSInt.h111 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1404 APInt zextOrTrunc(unsigned width) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DAPFixedPoint.cpp383 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp735 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
741 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp793 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop()
794 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop()
937 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
H A DMemoryBuiltins.cpp660 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
H A DBasicAliasAnalysis.cpp1758 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
H A DValueTracking.cpp472 APInt UnsignedMax = Range.getUnsignedMax().zextOrTrunc(BitWidth); in computeKnownBitsFromRangeMetadata()
971 uint64_t ShiftAmtKZ = Known.Zero.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
972 uint64_t ShiftAmtKO = Known.One.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
1173 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsFromOperator()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantRange.cpp779 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3561 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32)); in skipExtensionForVectorMULL()
9282 CnstBits |= SplatBits.zextOrTrunc(VT.getSizeInBits()); in resolveBuildVector()
9283 UndefBits |= (SplatBits ^ SplatUndef).zextOrTrunc(VT.getSizeInBits()); in resolveBuildVector()
9296 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm64()
9318 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm32()
9366 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm16()
9405 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm321s()
9436 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm8()
9457 uint64_t Value = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImmFP()
9740 Const->getAPIntValue().zextOrTrunc(BitSize).getZExtValue()); in LowerBUILD_VECTOR()
[all …]
/netbsd-src/external/apache2/llvm/dist/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.cpp768 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp3075 SDValue Lo = DAG.getConstant(V.zextOrTrunc(32), DL, MVT::i32); in bitcastConstantFPToInt()
3076 SDValue Hi = DAG.getConstant(V.lshr(32).zextOrTrunc(32), DL, MVT::i32); in bitcastConstantFPToInt()

12