[all-commits] [llvm/llvm-project] 14078a: [mlir][OpAsmParser] Add parseString method
zero9178 via All-commits
all-commits at lists.llvm.org
Sun Jul 4 08:12:37 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 14078ae8cabf6a3de64ade5fa239b86db848c1c5
https://github.com/llvm/llvm-project/commit/14078ae8cabf6a3de64ade5fa239b86db848c1c5
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2021-07-04 (Sun, 04 Jul 2021)
Changed paths:
M mlir/include/mlir/IR/DialectImplementation.h
Log Message:
-----------
[mlir][OpAsmParser] Add parseString method
Basically every kind of parseOptional* method in DialectAsmParser has a corresponding parse* method which will emit an error if the requested token has not been found. An odd one out of this rule is parseOptionalString which does not have a corresponding parseString method.
This patch adds that method and implements it in basically the same fashion as parseKeyword, by first going through parseOptionalString and emitting an error on failure.
Differential Revision: https://reviews.llvm.org/D105406
More information about the All-commits
mailing list