Home
last modified time | relevance | path

Searched refs:getWidth (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp22 OS << "width=" << getWidth() << ", "; in print()
78 NewVal = NewVal.extOrTrunc(DstSema.getWidth()); in convert()
131 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
138 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin()
143 APSInt Val(Sema.getWidth(), !Sema.isSigned()); in getEpsilon()
255 unsigned Wide = CommonFXSema.getWidth() * 2; in mul()
299 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in mul()
316 CommonFXSema.getWidth() * 2 + std::max(-CommonFXSema.getMsbWeight(), 0); in div()
362 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in div()
371 unsigned Wide = Sema.getWidth() * 2; in shl()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFixedPoint.h62 unsigned getWidth() const { return Width; } in getWidth() function
167 assert(Val.getBitWidth() == Sema.getWidth() &&
172 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned(),
180 inline unsigned getWidth() const { return Sema.getWidth(); }
229 return APSInt(APInt::getZero(getWidth()), Val.isUnsigned());
231 (getLsbWeight() > 0) ? Val.extend(getWidth() + getLsbWeight()) : Val;
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRTypes.cpp441 printer << '<' << sign << ", " << getWidth() << '>'; in print()
447 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
452 return (uint64_t)(getWidth() / 8); in getABIAlignment()
480 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
486 return (uint64_t)(getWidth() / 8); in getABIAlignment()
496 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
502 return (uint64_t)(getWidth() / 8); in getABIAlignment()
512 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
517 return (uint64_t)(getWidth() / 8); in getABIAlignment()
527 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
[all …]
H A DCIRAttrs.cpp131 value = mlir::APInt(ty.getWidth(), ivalue, isSigned, /*implicitTrunc=*/true); in parseIntLiteralImpl()
156 if (value.getBitWidth() != type.getWidth()) in verify()
158 << type.getWidth() << " != " << value.getBitWidth(); in verify()
233 if (!intTy || intTy.getWidth() != 8) in verify()
H A DCIRDialect.cpp50 unsigned width = intType.getWidth(); in getAlias()
1641 if (op0VecEleTy.getWidth() != op1VecEleTy.getWidth()) in verify()
1646 if (op0VecEleTy.getWidth() != resVecEleTy.getWidth()) in verify()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DScaledNumber.h43 template <class DigitsT> inline int getWidth() { return sizeof(DigitsT) * 8; } in getWidth() function
60 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded()
84 const int Width = getWidth<DigitsT>();
118 if (getWidth<DigitsT>() <= 32 || (LHS <= UINT32_MAX && RHS <= UINT32_MAX)) in getProduct()
167 if (getWidth<DigitsT>() == 64) in getQuotient()
304 if (ScaleDiff >= 2 * getWidth<DigitsT>()) { in matchScales()
312 assert(ShiftL < getWidth<DigitsT>() && "can't shift more than width"); in matchScales()
315 if (ShiftR >= getWidth<DigitsT>()) { in matchScales()
354 DigitsT HighBit = DigitsT(1) << (getWidth<DigitsT>() - 1); in getSum()
395 if (!compare(LDigits, LScale, DigitsT(1), RLgFloor + getWidth<DigitsT>())) in getDifference()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/
H A DCIRTypeInterfaces.td50 /*methodName=*/"getWidth",
54 return $_type.getWidth();
71 /*methodName=*/"getWidth",
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFixedPoint.h37 return FixedPoint(APInt(Sem.getWidth(), 0ULL, Sem.isSigned()), Sem); in zero()
55 unsigned bitWidth() const { return V.getWidth(); } in bitWidth()
111 unsigned BitWidth = Sem.getWidth(); in deserialize()
H A DInterp.h2853 LHSSema.getWidth() - (unsigned)LHSSema.hasUnsignedPadding() - 1; in ShiftFixedPoint()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h37 unsigned SrcWidth = SrcSema.getWidth(); in Convert()
38 unsigned DstWidth = DstSema.getWidth(); in Convert()
121 C.getWidth() + (unsigned)(BothPadded && C.isSaturated()), C.getScale(), in getCommonBinopSemantic()
202 Type *ResultTy = B.getIntNTy(DstSema.getWidth()); in CreateFloatingToFixed()
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h49 CharUnits getWidth() const { in getWidth() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp156 getWidth() == ElementCount::getFixed(1) && getInterleave() == 1; in LoopVectorizeHints()
229 R << ", Vector Width=" << NV("VectorWidth", getWidth()); in emitRemarkWithHints()
239 if (getWidth() == ElementCount::getFixed(1)) in vectorizeAnalysisPassName()
243 if (getForce() == LoopVectorizeHints::FK_Undefined && getWidth().isZero()) in vectorizeAnalysisPassName()
251 ElementCount EC = getWidth(); in allowReordering()
H A DLoopVectorize.cpp9444 ElementCount UserVF = Hints.getWidth(); in processLoopInVPlanNativePath()
9926 << " width=" << Hints.getWidth() in processLoop()
10080 ElementCount UserVF = Hints.getWidth(); in processLoop()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRTypeConstraints.td64 class CIR_HasWidthPred<int width> : CPred<"$_self.getWidth() == " # width>;
67 : CPred<"::cir::isValidFundamentalIntWidth($_self.getWidth())">;
H A DCIRAttrs.td189 mlir::APInt apValue(intType.getWidth(), value, intType.isSigned());
220 return mlir::cast<IntTypeInterface>(getType()).getWidth();
H A DCIRTypes.td60 return (isSigned() ? 's' : 'u') + std::to_string(getWidth()) + 'i';
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicWriter.h165 asImpl().writeUInt32(sema.getWidth()); in writeFixedPointSemantics()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp87 unsigned srcWidth = mlir::cast<mlir::IntegerType>(srcTy).getWidth(); in createIntCast()
88 unsigned dstWidth = mlir::cast<mlir::IntegerType>(dstTy).getWidth(); in createIntCast()
610 srcIntType.getWidth(), in matchAndRewrite()
611 dstIntType.getWidth())); in matchAndRewrite()
626 return mlir::cast<cir::FPTypeInterface>(ty).getWidth(); in matchAndRewrite()
674 if (llvmSrcTy.getWidth() == llvmDstTy.getWidth()) in matchAndRewrite()
777 mlir::cast<mlir::IntegerType>(index.getType()).getWidth(); in matchAndRewrite()
1794 amt = getLLVMIntCast(rewriter, amt, llvmTy, true, cirAmtTy.getWidth(), in matchAndRewrite()
1795 cirValTy.getWidth()); in matchAndRewrite()
1882 return mlir::IntegerType::get(type.getContext(), type.getWidth()); in prepareTypeConverter()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/
H A DLoweringHelpers.cpp38 return mlir::APInt::getZero(intTy.getWidth()); in getZeroInitFromType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/
H A DLoopVectorizationLegality.h137 ElementCount getWidth() const { in getWidth() function
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenBuilder.h266 value = createIntCast(value, getSIntNTy(intTy.getWidth())); in createNeg()
H A DCIRGenExprScalar.cpp452 mlir::cast<cir::IntType>(cgf.convertType(type)).getWidth() == in emitScalarPrePostIncDec()
453 mlir::cast<cir::IntType>(cgf.convertType(type)).getWidth()) && in emitScalarPrePostIncDec()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp402 auto split = splitLegalVectorType(CGM, Entries[index].getWidth(), vecTy); in splitVectorEntry()
H A DCGExprScalar.cpp1767 DstFPSema.getWidth(), in EmitFixedPointConversion()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h430 auto width = mlir::dyn_cast<cir::IntType>(lhs.getType()).getWidth(); in createShift()

12