Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp269 Count |= SubElt->getValue().zextOrTrunc(64); in simplifyX86immShift()
287 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift()
639 APInt APIndex = CIIndex->getValue().zextOrTrunc(6); in simplifyX86extrq()
640 APInt APLength = CILength->getValue().zextOrTrunc(6); in simplifyX86extrq()
688 Elt = Elt.zextOrTrunc(Length); in simplifyX86extrq()
715 APIndex = APIndex.zextOrTrunc(6); in simplifyX86insertq()
716 APLength = APLength.zextOrTrunc(6); in simplifyX86insertq()
778 V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index); in simplifyX86insertq()
875 Index = Index.zextOrTrunc(32).getLoBits(2); in simplifyX86vpermilvar()
1545 APInt Len = V11.zextOrTrunc(6); in instCombineIntrinsic()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DBoolean.h63 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
H A DIntegral.h113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DConstantRange.h373 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp466 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
468 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
H A DUtils.cpp837 return CI->getValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
874 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DKnownBits.h187 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPSInt.h121 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1290 APInt zextOrTrunc(unsigned width) const;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp409 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
414 Known = InputKnown.zextOrTrunc(BitWidth); in SimplifyDemandedUseBits()
1655 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
H A DInstCombineVectorOps.cpp392 IndexC->getValue().zextOrTrunc(64)); in getPreferredVectorIndex()
439 Idx = ConstantInt::get(Ty, IndexC->getValue().zextOrTrunc(BitWidth)); in visitExtractElementInst()
/openbsd-src/gnu/llvm/lldb/source/Expression/
H A DIRInterpreter.cpp161 scalar = value.zextOrTrunc(type_size * 8); in AssignToMatchType()
381 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp735 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
741 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAPFixedPoint.cpp407 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
/openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/lib/X86/
H A DTarget.cpp892 ConstantInliner CI(Value.zextOrTrunc(16)); in setRegTo()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp817 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) - in SymbolicallyEvaluateBinop()
818 Offs2.zextOrTrunc(OpSize)); in SymbolicallyEvaluateBinop()
941 BasePtr = Base->getValue().zextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP()
H A DMemoryBuiltins.cpp362 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
H A DValueTracking.cpp484 APInt UnsignedMax = Range.getUnsignedMax().zextOrTrunc(BitWidth); in computeKnownBitsFromRangeMetadata()
942 Known.One |= BPow2->zextOrTrunc(BitWidth); in computeKnownBitsFromAssume()
987 uint64_t ShiftAmtKZ = Known.Zero.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
988 uint64_t ShiftAmtKO = Known.One.zextOrTrunc(64).getZExtValue(); in computeKnownBitsFromShiftOperator()
1189 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsFromOperator()
H A DBasicAliasAnalysis.cpp1767 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1543 APInt NewVal = Elt->getValue().zextOrTrunc(EltVT.getSizeInBits()); in getConstant()
3738 Known = KnownBits::commonBits(Known, Known2.zextOrTrunc(BitWidth)); in computeKnownBits()
3937 return Const->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3959 return C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2(); in isKnownToBeAPowerOfTwo()
3967 if (C->getAPIntValue().zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
5190 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
5197 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), DL, VT, in getNode()
11729 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantRange.cpp857 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
H A DDebugInfoMetadata.cpp1884 NewInt = NewInt.zextOrTrunc(Op.getArg(0)); in constantFold()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExpr.cpp4017 ConstLength = CL->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
4025 ConstLowerBound = LB->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
4080 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
H A DCGExprCXX.cpp775 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()

12