| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 23 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 D | APFixedPoint.h | 45 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 D | TosaTestPasses.cpp | 69 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 D | RISCVVIntrinsicUtils.cpp | 50 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 D | FixedPointBuilder.h | 37 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 D | APFixedPointTest.cpp | 195 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 D | RISCVVIntrinsicUtils.h | 163 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 D | UniformSupport.h | 65 uniformType.getScale(), in UniformQuantizedValueConverter()
|
| H A D | QuantTypes.h | 286 double getScale() const;
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | AbstractBasicWriter.h | 170 asImpl().writeUInt32(sema.getScale()); in writeFixedPointSemantics()
|
| H A D | Expr.h | 1566 unsigned getScale() const { return Scale; } in getScale() function
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VECustomDAG.cpp | 326 return N->getScale(); in getGatherScatterScale() 328 return N->getScale(); in getGatherScatterScale()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | Quant.cpp | 144 return unwrap(type).cast<quant::UniformQuantizedType>().getScale(); in mlirUniformQuantizedTypeGetScale()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/ |
| H A D | TypeParser.cpp | 388 printQuantParams(type.getScale(), type.getZeroPoint(), out); in printUniformQuantizedType()
|
| H A D | QuantTypes.cpp | 297 double UniformQuantizedType::getScale() const { return getImpl()->scale; } in getScale() function in UniformQuantizedType
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaRISCVVectorLookup.cpp | 118 QT = Context.getScalableVectorType(QT, Type->getScale().getValue()); in RVVType2Qual()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 2716 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 D | ScaledNumber.h | 533 int16_t getScale() const { return Scale; } in getScale() function
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeVectorTypes.cpp | 2022 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 D | SelectionDAG.cpp | 8560 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 D | X86ISelLowering.h | 1760 const SDValue &getScale() const { return getOperand(5); } in getScale() function
|
| H A D | X86ISelDAGToDAG.cpp | 5982 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 D | X86AsmParser.cpp | 461 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 D | AArch64FrameLowering.cpp | 2489 unsigned getScale() const { in getScale() function 2623 int Scale = RPI.getScale(); in computeCalleeSaveRegisterPairs()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 659 Record.push_back(E->getScale()); in VisitFixedPointLiteral()
|