Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp349 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 DAPFixedPoint.cpp413 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp270 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift()
288 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift()
1820 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq()
1821 APInt APLength = CILength->getValue().zextOrTrunc(6); in simplifyX86extrq()
1869 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq()
1896 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq()
1897 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq()
1959 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq()
2056 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar()
2802 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic()
[all …]
H A DX86FixupVectorConstants.cpp144 return Bits->zextOrTrunc(NumBits); in extractConstantBits()
283 APInt RawBits = Bits->zextOrTrunc(ScalarBitWidth); in rebuildZeroUpperCst()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegralAP.h110 return IntegralAP<Signed>(V.V.zextOrTrunc(NumBits));
160 return IntegralAP(V.trunc(BitWidth).zextOrTrunc(this->bitWidth())); in truncate()
H A DBoolean.h57 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
H A DIntegral.h113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h381 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp441 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
454 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits()
953 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth), in SimplifyDemandedUseBits()
981 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth))) in SimplifyDemandedUseBits()
1813 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
H A DInstCombineVectorOps.cpp395 IndexC->getValue().zextOrTrunc(64)); in getPreferredVectorIndex()
444 Idx = ConstantInt::get(Ty, IndexC->getValue().zextOrTrunc(BitWidth)); in visitExtractElementInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp478 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
480 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
H A DUtils.cpp1103 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
1140 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
H A DIRTranslator.cpp3133 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateInsertElement()
3161 APInt NewIdx = CI->getValue().zextOrTrunc(PreferredVecIdxWidth); in translateExtractElement()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h185 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h121 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1292 APInt zextOrTrunc(unsigned width) const;
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp162 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType()
382 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp747 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
753 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp819 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop()
820 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop()
942 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
H A DMemoryBuiltins.cpp374 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
H A DBasicAliasAnalysis.cpp1922 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp845 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 DAArch64InstructionSelector.cpp5249 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm8()
5273 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm16()
5303 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm32()
5338 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm64()
5361 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImm321s()
5392 uint64_t Val = Bits.zextOrTrunc(64).getZExtValue(); in tryAdvSIMDModImmFP()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1656 NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant()
4042 Known = Known.intersectWith(Known2.zextOrTrunc(BitWidth)); in computeKnownBits()
4355 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
4386 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
4394 if (C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
6411 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic()
6418 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in FoldConstantArithmetic()
12757 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp916 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange

123