Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp268 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift()
638 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq()
687 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq()
714 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq()
715 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq()
777 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq()
874 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar()
1544 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic()
1545 APInt Idx = V11.lshr(8).zextOrTrunc(6); in instCombineIntrinsic()
1577 APInt Len = CILength->getValue().zextOrTrunc(6); in instCombineIntrinsic()
[all …]
/llvm-project-15.0.7/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);
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h372 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DKnownBits.h187 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp467 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
469 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
H A DUtils.cpp820 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
857 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h107 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1262 APInt zextOrTrunc(unsigned width) const;
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp404 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
409 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits()
1591 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
H A DInstCombineVectorOps.cpp386 IndexC->getValue().zextOrTrunc(64)); in getPreferredVectorIndex()
419 Idx = ConstantInt::get(Ty, IndexC->getValue().zextOrTrunc(BitWidth)); in visitExtractElementInst()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp383 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
/llvm-project-15.0.7/lldb/source/Expression/
H A DIRInterpreter.cpp161 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType()
356 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp735 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
741 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp817 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop()
818 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop()
942 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
H A DMemoryBuiltins.cpp387 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
H A DBasicAliasAnalysis.cpp1847 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
H A DValueTracking.cpp516 APInt UnsignedMax = Range.getUnsignedMax().zextOrTrunc(BitWidth); in computeKnownBitsFromRangeMetadata()
1017 uint64_t ShiftAmtKZ = Known.Zero.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
1018 uint64_t ShiftAmtKO = Known.One.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
1219 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsFromOperator()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1477 APInt NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant()
3673 Known = KnownBits::commonBits(Known, Known2.zextOrTrunc(BitWidth)); in computeKnownBits()
3867 return Const->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3889 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3897 if (C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
4985 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
4992 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
11426 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp860 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
H A DDebugInfoMetadata.cpp1672 NewInt = NewInt.zextOrTrunc(Op.getArg(0)); in constantFold()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp4042 ConstLength = CL->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
4049 ConstLowerBound = LB->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
4104 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
H A DCGExprCXX.cpp772 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()
/llvm-project-15.0.7/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp3188 SDValue Lo = DAG.getConstant(V.zextOrTrunc(32), DL, MVT::i32); in bitcastConstantFPToInt()
3189 SDValue Hi = DAG.getConstant(V.lshr(32).zextOrTrunc(32), DL, MVT::i32); in bitcastConstantFPToInt()

12