|
MLIR 22.0.0git
|
#include "Parser.h"#include "mlir/AsmParser/AsmParserState.h"#include "mlir/IR/AffineMap.h"#include "mlir/IR/BuiltinAttributes.h"#include "mlir/IR/BuiltinDialect.h"#include "mlir/IR/BuiltinTypes.h"#include "mlir/IR/DialectResourceBlobManager.h"#include "mlir/IR/IntegerSet.h"#include <optional>Go to the source code of this file.
Functions | |
| static std::optional< APInt > | buildAttributeAPInt (Type type, bool isNegative, StringRef spelling) |
| Construct an APint from a parsed value, a known attribute type and sign. | |
| static ParseResult | parseElementAttrHexValues (Parser &parser, Token tok, std::string &result) |
| Parse elements values stored within a hex string. | |
|
static |
Construct an APint from a parsed value, a known attribute type and sign.
Definition at line 360 of file AttributeParser.cpp.
References mlir::Type::getIntOrFloatBitWidth(), mlir::Type::isIndex(), mlir::Type::isSignedInteger(), and result.
Referenced by mlir::detail::Parser::parseDecOrHexAttr().
Parse elements values stored within a hex string.
On success, the values are stored into 'result'.
Definition at line 451 of file AttributeParser.cpp.
References mlir::detail::Parser::emitError(), mlir::Token::getHexStringValue(), mlir::Token::getLoc(), result, and success().