Home
last modified time | relevance | path

Searched refs:getScale (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp23 unsigned DstScale = DstSema.getScale(); in convert()
24 bool Upscaling = DstScale > getScale(); in convert()
30 NewVal <<= (DstScale - getScale()); in convert()
32 NewVal >>= (getScale() - DstScale); in convert()
69 unsigned OtherScale = Other.getScale(); in compare()
75 CommonWidth += getScale() >= OtherScale ? getScale() - OtherScale in compare()
82 ThisVal = ThisVal.shl(CommonScale - getScale()); in compare()
153 unsigned CommonScale = std::max(getScale(), Other.getScale()); in getCommonSemantics()
253 .ashr(CommonFXSema.getScale()); in mul()
302 ThisVal = ThisVal.shl(CommonFXSema.getScale()); in div()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFixedPoint.h45 unsigned getScale() const { return Scale; } in getScale() function
116 inline unsigned getScale() const { return Sema.getScale(); } in getScale() function
158 return -(-Val >> getScale()); in getIntPart()
160 return Val >> getScale(); in getIntPart()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/
H A DTosaTestPasses.cpp69 outputElementType.getScale(); in matchAndRewrite()
72 outputElementType.getScale(); in matchAndRewrite()
154 double inputScale = inputQType.getScale(); in matchAndRewrite()
155 double weightScale = weightQType.getScale(); in matchAndRewrite()
156 double outputScale = outputQType.getScale(); in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/Support/
H A DRISCVVIntrinsicUtils.cpp50 VScaleVal LMULType::getScale(unsigned ElementBitwidth) const { in getScale() function in clang::RISCV::LMULType
596 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
622 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
627 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
632 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
636 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
739 Scale = LMUL.getScale(ElementBitwidth); in applyModifier()
753 Scale = LMUL.getScale(ElementBitwidth); in applyLog2EEW()
764 Scale = LMUL.getScale(ElementBitwidth); in applyFixedSEW()
785 Scale = LMUL.getScale(ElementBitwidth); in applyFixedLog2LMUL()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DFixedPointBuilder.h37 unsigned SrcScale = SrcSema.getScale(); in Convert()
38 unsigned DstScale = DstSema.getScale(); in Convert()
119 C.getWidth() + (unsigned)(BothPadded && C.isSaturated()), C.getScale(), in getCommonBinopSemantic()
183 ConstantFP::get(OpTy, std::pow(2, -(int)SrcSema.getScale()))); in CreateFixedToFloating()
198 ConstantFP::get(OpTy, std::pow(2, DstSema.getScale()))); in CreateFloatingToFixed()
302 {WideLHS, WideRHS, B.getInt32(CommonSema.getScale())}); in CreateMul()
330 {WideLHS, WideRHS, B.getInt32(CommonSema.getScale())}); in CreateDiv()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPFixedPointTest.cpp195 unsigned Scale = Sema.getScale(); in CheckIntPart()
374 if (Dst.getScale() > Src.getScale()) { in CheckUnsaturatedConversion()
375 ScaledVal <<= (Dst.getScale() - Src.getScale()); in CheckUnsaturatedConversion()
377 ScaledVal >>= (Src.getScale() - Dst.getScale()); in CheckUnsaturatedConversion()
/llvm-project-15.0.7/clang/include/clang/Support/
H A DRISCVVIntrinsicUtils.h163 llvm::Optional<unsigned> getScale(unsigned ElementBitwidth) const;
238 VScaleVal getScale() const { return Scale; } in getScale() function
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DUniformSupport.h65 uniformType.getScale(), in UniformQuantizedValueConverter()
H A DQuantTypes.h286 double getScale() const;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAbstractBasicWriter.h170 asImpl().writeUInt32(sema.getScale()); in writeFixedPointSemantics()
H A DExpr.h1566 unsigned getScale() const { return Scale; } in getScale() function
/llvm-project-15.0.7/llvm/lib/Target/VE/
H A DVECustomDAG.cpp326 return N->getScale(); in getGatherScatterScale()
328 return N->getScale(); in getGatherScatterScale()
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DQuant.cpp144 return unwrap(type).cast<quant::UniformQuantizedType>().getScale(); in mlirUniformQuantizedTypeGetScale()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DTypeParser.cpp388 printQuantParams(type.getScale(), type.getZeroPoint(), out); in printUniformQuantizedType()
H A DQuantTypes.cpp297 double UniformQuantizedType::getScale() const { return getImpl()->scale; } in getScale() function in UniformQuantizedType
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaRISCVVectorLookup.cpp118 QT = Context.getScalableVectorType(QT, Type->getScale().getValue()); in RVVType2Qual()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h2716 return !cast<ConstantSDNode>(getScale())->isOne();
2730 const SDValue &getScale() const {
2800 return !cast<ConstantSDNode>(getScale())->isOne();
2811 const SDValue &getScale() const { return getOperand(5); }
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DScaledNumber.h533 int16_t getScale() const { return Scale; } in getScale() function
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp2022 return {MSC->getMask(), MSC->getIndex(), MSC->getScale()}; in SplitVecRes_Gather()
2025 return {VPSC->getMask(), VPSC->getIndex(), VPSC->getScale()}; in SplitVecRes_Gather()
3281 return {MSC->getMask(), MSC->getIndex(), MSC->getScale(), in SplitVecOp_Scatter()
3285 return {VPSC->getMask(), VPSC->getIndex(), VPSC->getScale(), in SplitVecOp_Scatter()
4949 SDValue Scale = N->getScale(); in WidenVecRes_MGATHER()
4984 SDValue Scale = N->getScale(); in WidenVecRes_VP_GATHER()
5958 SDValue Scale = MG->getScale(); in WidenVecOp_MGATHER()
5979 SDValue Scale = MSC->getScale(); in WidenVecOp_MSCATTER()
6019 SDValue Scale = VPSC->getScale(); in WidenVecOp_VP_SCATTER()
H A DSelectionDAG.cpp8560 assert(isa<ConstantSDNode>(N->getScale()) && in getGatherVP()
8561 cast<ConstantSDNode>(N->getScale())->getAPIntValue().isPowerOf2() && in getGatherVP()
8604 assert(isa<ConstantSDNode>(N->getScale()) && in getScatterVP()
8605 cast<ConstantSDNode>(N->getScale())->getAPIntValue().isPowerOf2() && in getScatterVP()
8746 assert(isa<ConstantSDNode>(N->getScale()) && in getMaskedGather()
8747 cast<ConstantSDNode>(N->getScale())->getAPIntValue().isPowerOf2() && in getMaskedGather()
8792 assert(isa<ConstantSDNode>(N->getScale()) && in getMaskedScatter()
8793 cast<ConstantSDNode>(N->getScale())->getAPIntValue().isPowerOf2() && in getMaskedScatter()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.h1760 const SDValue &getScale() const { return getOperand(5); } in getScale() function
H A DX86ISelDAGToDAG.cpp5982 if (!selectVectorAddr(Mgt, Mgt->getBasePtr(), IndexOp, Mgt->getScale(), in Select()
6055 if (!selectVectorAddr(Sc, Sc->getBasePtr(), IndexOp, Sc->getScale(), in Select()
/llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp461 unsigned getScale() const { return Scale; } in getScale() function in __anonad53f99c0111::X86AsmParser::IntelExprStateMachine
2208 IntelExpr Expr(BaseRegStr, IndexRegStr, SM.getScale(), OffsetNameStr, in RewriteIntelExpression()
2590 unsigned Scale = SM.getScale(); in parseIntelOperand()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp2489 unsigned getScale() const { in getScale() function
2623 int Scale = RPI.getScale(); in computeCalleeSaveRegisterPairs()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp659 Record.push_back(E->getScale()); in VisitFixedPointLiteral()

12