//===- LvlTypeParser.h - `LevelType` parser ----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "LvlTypeParser.h" #include "mlir/Dialect/SparseTensor/IR/Enums.h" usingnamespacemlir; usingnamespacemlir::sparse_tensor; usingnamespacemlir::sparse_tensor::ir_detail; //===----------------------------------------------------------------------===// #define FAILURE_IF_FAILED(STMT) … // NOTE: this macro assumes `AsmParser parser` and `SMLoc loc` are in scope. #define ERROR_IF(COND, MSG) … //===----------------------------------------------------------------------===// // `LvlTypeParser` implementation. //===----------------------------------------------------------------------===// FailureOr<uint64_t> LvlTypeParser::parseLvlType(AsmParser &parser) const { … } ParseResult LvlTypeParser::parseProperty(AsmParser &parser, uint64_t *properties) const { … } ParseResult LvlTypeParser::parseStructured(AsmParser &parser, SmallVector<unsigned> *structured) const { … } //===----------------------------------------------------------------------===//