[mlir] Add support for non-identifier attribute names.
authorRiver Riddle <riddleriver@gmail.com>
Wed, 11 Mar 2020 20:22:19 +0000 (13:22 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 11 Mar 2020 20:22:33 +0000 (13:22 -0700)
commitd2f3e5f204cfb06e1862476ade175ccf0bb7ca0f
tree8bcb56924377f0df5e096659869839a6399f6a67
parentc5c487f0d4c6720f4384f670490086e723f5fe32
[mlir] Add support for non-identifier attribute names.

Summary: In some situations the name of the attribute is not representable as a bare-identifier, this revision adds support for those cases by formatting the name as a string instead. This has the added benefit of removing the identifier regex from the verifier.

Differential Revision: https://reviews.llvm.org/D75973
mlir/docs/LangRef.md
mlir/lib/Analysis/Verifier.cpp
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/parser.mlir