Lines Matching refs:dialect

145 static Optional<ValTy> parseAndVerify(SPIRVDialect const &dialect,
148 Optional<Type> parseAndVerify<Type>(SPIRVDialect const &dialect,
152 Optional<unsigned> parseAndVerify<unsigned>(SPIRVDialect const &dialect,
155 static Type parseAndVerifyType(SPIRVDialect const &dialect, in parseAndVerifyType() argument
163 if (&type.getDialect() == &dialect) in parseAndVerifyType()
199 static Type parseAndVerifyMatrixType(SPIRVDialect const &dialect, in parseAndVerifyMatrixType() argument
235 static Type parseAndVerifySampledImageType(SPIRVDialect const &dialect, in parseAndVerifySampledImageType() argument
255 static LogicalResult parseOptionalArrayStride(const SPIRVDialect &dialect, in parseOptionalArrayStride() argument
267 Optional<unsigned> optStride = parseAndVerify<unsigned>(dialect, parser); in parseOptionalArrayStride()
285 static Type parseArrayType(SPIRVDialect const &dialect, in parseArrayType() argument
308 Type elementType = parseAndVerifyType(dialect, parser); in parseArrayType()
313 if (failed(parseOptionalArrayStride(dialect, parser, stride))) in parseArrayType()
323 static Type parseCooperativeMatrixType(SPIRVDialect const &dialect, in parseCooperativeMatrixType() argument
338 auto elementTy = parseAndVerifyType(dialect, parser); in parseCooperativeMatrixType()
360 static Type parsePointerType(SPIRVDialect const &dialect, in parsePointerType() argument
365 auto pointeeType = parseAndVerifyType(dialect, parser); in parsePointerType()
387 static Type parseRuntimeArrayType(SPIRVDialect const &dialect, in parseRuntimeArrayType() argument
392 Type elementType = parseAndVerifyType(dialect, parser); in parseRuntimeArrayType()
397 if (failed(parseOptionalArrayStride(dialect, parser, stride))) in parseRuntimeArrayType()
406 static Type parseMatrixType(SPIRVDialect const &dialect, in parseMatrixType() argument
429 Type columnType = parseAndVerifyMatrixType(dialect, parser); in parseMatrixType()
442 static Optional<ValTy> parseAndVerify(SPIRVDialect const &dialect, in parseAndVerify() argument
457 Optional<Type> parseAndVerify<Type>(SPIRVDialect const &dialect, in parseAndVerify() argument
460 auto ty = parseAndVerifyType(dialect, parser); in parseAndVerify()
467 static Optional<IntTy> parseAndVerifyInteger(SPIRVDialect const &dialect, in parseAndVerifyInteger() argument
476 Optional<unsigned> parseAndVerify<unsigned>(SPIRVDialect const &dialect, in parseAndVerify() argument
478 return parseAndVerifyInteger<unsigned>(dialect, parser); in parseAndVerify()
489 operator()(SPIRVDialect const &dialect, DialectAsmParser &parser) const { in operator ()()
490 auto parseVal = parseAndVerify<ParseType>(dialect, parser); in operator ()()
497 auto remainingValues = ParseCommaSeparatedList<Args...>{}(dialect, parser); in operator ()()
509 Optional<std::tuple<ParseType>> operator()(SPIRVDialect const &dialect, in operator ()()
511 if (auto value = parseAndVerify<ParseType>(dialect, parser)) in operator ()()
533 static Type parseImageType(SPIRVDialect const &dialect, in parseImageType() argument
541 ImageFormat>{}(dialect, parser); in parseImageType()
551 static Type parseSampledImageType(SPIRVDialect const &dialect, in parseSampledImageType() argument
556 Type parsedType = parseAndVerifySampledImageType(dialect, parser); in parseSampledImageType()
567 SPIRVDialect const &dialect, DialectAsmParser &parser, in parseStructMemberDecorations() argument
598 auto memberDecoration = parseAndVerify<spirv::Decoration>(dialect, parser); in parseStructMemberDecorations()
605 parseAndVerifyInteger<uint32_t>(dialect, parser); in parseStructMemberDecorations()
633 static Type parseStructType(SPIRVDialect const &dialect, in parseStructType() argument
671 return StructType::getIdentified(dialect.getContext(), identifier); in parseStructType()
695 return StructType::getEmpty(dialect.getContext(), identifier); in parseStructType()
701 idStructTy = StructType::getIdentified(dialect.getContext(), identifier); in parseStructType()
714 if (parseStructMemberDecorations(dialect, parser, memberTypes, offsetInfo, in parseStructType()