#include "mlir/IR/IntegerSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Endian.h"
+#include <optional>
using namespace mlir;
using namespace mlir::detail;
llvm::SmallDenseSet<StringAttr> seenKeys;
auto parseElt = [&]() -> ParseResult {
// The name of an attribute can either be a bare identifier, or a string.
- Optional<StringAttr> nameId;
+ std::optional<StringAttr> nameId;
if (getToken().is(Token::string))
nameId = builder.getStringAttr(getToken().getStringValue());
else if (getToken().isAny(Token::bare_identifier, Token::inttype) ||
std::vector<std::pair<bool, Token>> storage;
/// Storage used when parsing elements that were stored as hex values.
- Optional<Token> hexStorage;
+ std::optional<Token> hexStorage;
};
} // namespace