Home
last modified time | relevance | path

Searched refs:getStorageType (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantTypes.cpp63 Type QuantizedType::getStorageType() const { in getStorageType() function in QuantizedType
104 if (candidateType == getStorageType()) { in castFromStorageType()
111 candidateType.cast<RankedTensorType>().getShape(), getStorageType()); in castFromStorageType()
115 return UnrankedTensorType::get(getStorageType()); in castFromStorageType()
120 getStorageType()); in castFromStorageType()
129 return quantizedType.cast<QuantizedType>().getStorageType(); in castToStorageType()
138 sType.getElementType().cast<QuantizedType>().getStorageType(); in castToStorageType()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/Utils/
H A DQuantizeUtils.cpp27 outConvertedType = quantizedElementType.getStorageType(); in convertPrimitiveValueAttr()
28 return IntegerAttr::get(quantizedElementType.getStorageType(), in convertPrimitiveValueAttr()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp147 llvm::Type *getStorageType(const FieldDecl *FD) { in getStorageType() function
155 llvm::Type *getStorageType(const CXXRecordDecl *RD) { in getStorageType() function
324 llvm::Type *FieldType = getStorageType(Field); in lowerUnion()
330 llvm::Type *FieldType = getStorageType(Field); in lowerUnion()
384 getStorageType(*Field), *Field)); in accumulateFields()
514 getStorageType(BaseDecl), BaseDecl)); in accumulateBases()
527 MemberInfo::Base, getStorageType(BaseDecl), BaseDecl)); in accumulateBases()
697 getStorageType(BaseDecl), BaseDecl)); in accumulateVBases()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DUniformSupport.h71 assert(uniformType.getStorageType().isSignlessInteger()); in UniformQuantizedValueConverter()
188 assert(uniformType.getStorageType().isSignlessInteger()); in UniformQuantizedPerAxisValueConverter()
H A DQuantTypes.h112 Type getStorageType() const;
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpPythonBindingGen.cpp461 if (namedAttr.attr.getStorageType().trim().equals("::mlir::UnitAttr")) { in emitAttributeAccessors()
472 if (!attributeClasses.count(namedAttr.attr.getStorageType().trim())) in emitAttributeAccessors()
476 attributeClasses.lookup(namedAttr.attr.getStorageType()); in emitAttributeAccessors()
669 StringRef storageType = attr.getStorageType().trim(); in getAttributeDefaultValue()
697 if (attribute->attr.getStorageType().trim().equals("::mlir::UnitAttr")) { in populateBuilderLinesAttr()
H A DOpDefinitionsGen.cpp191 return attr.getReturnType() != attr.getStorageType() && in canUseUnwrappedRawValue()
995 auto *method = opClass.addMethod(attr.getStorageType(), name + "Attr"); in genAttrGetters()
1002 attr.getStorageType()); in genAttrGetters()
1094 MethodParameter(attr.getStorageType(), "attr")); in genAttrSetters()
2004 type = attr.getStorageType(); in buildParamList()
2010 type = attr.getStorageType(); in buildParamList()
2907 auto *method = adaptor.addMethod(attr.getStorageType(), emitName + "Attr"); in OpOperandAdaptorEmitter()
2915 attr.getStorageType()); in OpOperandAdaptorEmitter()
H A DOpDocGen.cpp169 StringRef storageType = it.attr.getStorageType(); in emitOpDoc()
H A DOpFormatGen.cpp808 body << llvm::formatv(" {0} {1}Attr;\n", var->attr.getStorageType(), in genElementParserStorage()
1245 var->attr.getStorageType() == "::mlir::Attribute") in genElementParser()
2036 var->attr.getStorageType() == "::mlir::Attribute") in genElementPrinter()
2432 attr->getVar()->attr.getStorageType() == "::mlir::Attribute")) in verifyAttributeColon()
H A DRewriterGen.cpp766 opName, attr.getStorageType(), namedAttr->name); in emitAttributeMatch()
783 attr.getStorageType())); in emitAttributeMatch()
/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DAttribute.h54 StringRef getStorageType() const;
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DAttribute.cpp58 StringRef Attribute::getStorageType() const { in getStorageType() function in Attribute
H A DPattern.cpp249 ->attr.getStorageType() in getVarTypeStr()
/llvm-project-15.0.7/mlir/unittests/Dialect/Quant/
H A DQuantizationUtilsTest.cpp29 return APInt(qtype.getStorageType().cast<IntegerType>().getWidth(), 5L); in quantizeFloatToInt()
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DQuant.cpp55 return wrap(unwrap(type).cast<quant::QuantizedType>().getStorageType()); in mlirQuantizedTypeGetStorageType()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaOps.cpp150 inputETy = quantType.getStorageType(); in verify()
153 resultETy = quantType.getStorageType(); in verify()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp865 attr.attr.getStorageType())); in processTdIncludeRecords()
890 constraint.getStorageType())); in processTdIncludeRecords()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangAttrEmitter.cpp115 static StringRef getStorageType(StringRef type) { in getStorageType() function
763 std::string StorageType = std::string(getStorageType(getType())); in writePCHReadDecls()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp103 static QualType getStorageType(const ASTContext &Ctx, const Expr *E) { in getStorageType() function
7520 getStorageType(Info.Ctx, E->getOpaqueValue()), in VisitBinaryConditionalOperator()
7585 OVE, getStorageType(Info.Ctx, OVE), in VisitPseudoObjectExpr()
10786 getStorageType(Info.Ctx, E->getCommonExpr()), in VisitArrayInitLoopExpr()
15116 if (!CheckConstantExpression(Info, getExprLoc(), getStorageType(Ctx, this), in EvaluateAsConstantExpr()