| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 269 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 D | Boolean.h | 63 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
|
| H A D | Integral.h | 113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 373 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 466 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl() 468 Known = Known.zextOrTrunc(BitWidth); in computeKnownBitsImpl()
|
| H A D | Utils.cpp | 837 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 D | KnownBits.h | 187 KnownBits zextOrTrunc(unsigned BitWidth) const { in zextOrTrunc() function
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 121 return APSInt(zextOrTrunc(width), IsUnsigned); in extOrTrunc()
|
| H A D | APInt.h | 1290 APInt zextOrTrunc(unsigned width) const;
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 409 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 D | InstCombineVectorOps.cpp | 392 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 D | IRInterpreter.cpp | 161 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 D | ExecutionEngine.cpp | 735 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 D | APFixedPoint.cpp | 407 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/lib/X86/ |
| H A D | Target.cpp | 892 ConstantInliner CI(Value.zextOrTrunc(16)); in setRegTo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 817 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 D | MemoryBuiltins.cpp | 362 I = I.zextOrTrunc(IntTyBits); in CheckedZextOrTrunc()
|
| H A D | ValueTracking.cpp | 484 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 D | BasicAliasAnalysis.cpp | 1767 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 881 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 D | SelectionDAG.cpp | 1543 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 D | ConstantRange.cpp | 857 ConstantRange ConstantRange::zextOrTrunc(uint32_t DstTySize) const { in zextOrTrunc() function in ConstantRange
|
| H A D | DebugInfoMetadata.cpp | 1884 NewInt = NewInt.zextOrTrunc(Op.getArg(0)); in constantFold()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 4017 ConstLength = CL->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr() 4025 ConstLowerBound = LB->zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr() 4080 ConstLength = ConstLength.zextOrTrunc(PointerWidthInBits); in EmitOMPArraySectionExpr()
|
| H A D | CGExprCXX.cpp | 775 llvm::APInt adjustedCount = count.zextOrTrunc(sizeWidth); in EmitCXXNewAllocSize()
|