Add support to OpAsmParser for parsing unknown keywords.
authorRiver Riddle <riverriddle@google.com>
Wed, 18 Sep 2019 00:54:54 +0000 (17:54 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 18 Sep 2019 00:55:34 +0000 (17:55 -0700)
commitb58d9aee11000c2ccfd4905750b15fa7e2681323
tree6045a6e7c9f8d72a367e9618e7df8e62b8cdce2d
parent9330c1b9a1d70711294be25db98289929385f6fe
Add support to OpAsmParser for parsing unknown keywords.

This is useful in several cases, for example a user may want to sugar the syntax of a string(as we do with custom operation syntax), or avoid many nested ifs for  parsing a set of known keywords.

PiperOrigin-RevId: 269695451
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/parser.mlir
mlir/test/lib/TestDialect/TestDialect.cpp
mlir/test/lib/TestDialect/TestOps.td