| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 22 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 D | APFixedPoint.h | 62 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 D | CIRTypes.cpp | 441 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 D | CIRAttrs.cpp | 131 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 D | CIRDialect.cpp | 50 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 D | ScaledNumber.h | 43 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 D | CIRTypeInterfaces.td | 50 /*methodName=*/"getWidth", 54 return $_type.getWidth(); 71 /*methodName=*/"getWidth",
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | FixedPoint.h | 37 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 D | Interp.h | 2853 LHSSema.getWidth() - (unsigned)LHSSema.hasUnsignedPadding() - 1; in ShiftFixedPoint()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 37 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 D | SwiftCallingConv.h | 49 CharUnits getWidth() const { in getWidth() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.cpp | 156 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 D | LoopVectorize.cpp | 9444 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 D | CIRTypeConstraints.td | 64 class CIR_HasWidthPred<int width> : CPred<"$_self.getWidth() == " # width>; 67 : CPred<"::cir::isValidFundamentalIntWidth($_self.getWidth())">;
|
| H A D | CIRAttrs.td | 189 mlir::APInt apValue(intType.getWidth(), value, intType.isSigned()); 220 return mlir::cast<IntTypeInterface>(getType()).getWidth();
|
| H A D | CIRTypes.td | 60 return (isSigned() ? 's' : 'u') + std::to_string(getWidth()) + 'i';
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | AbstractBasicWriter.h | 165 asImpl().writeUInt32(sema.getWidth()); in writeFixedPointSemantics()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/ |
| H A D | LowerToLLVM.cpp | 87 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 D | LoweringHelpers.cpp | 38 return mlir::APInt::getZero(intTy.getWidth()); in getZeroInitFromType()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.h | 137 ElementCount getWidth() const { in getWidth() function
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenBuilder.h | 266 value = createIntCast(value, getSIntNTy(intTy.getWidth())); in createNeg()
|
| H A D | CIRGenExprScalar.cpp | 452 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 D | SwiftCallingConv.cpp | 402 auto split = splitLegalVectorType(CGM, Entries[index].getWidth(), vecTy); in splitVectorEntry()
|
| H A D | CGExprScalar.cpp | 1767 DstFPSema.getWidth(), in EmitFixedPointConversion()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/ |
| H A D | CIRBaseBuilder.h | 430 auto width = mlir::dyn_cast<cir::IntType>(lhs.getType()).getWidth(); in createShift()
|