tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.73k stars 257 forks source link

Some minor corrections and improvements to LangRef #265

Closed andrew-wja closed 4 years ago

andrew-wja commented 4 years ago

Some productions in the LangRef were using undefined terminals and non-terminals, which have been added to the EBNF. The dialect type and dialect attribute productions matched precisely the same structure and have been deduplicated. The production for ssa-id was ambiguous but the fix is trivial (merging the leading '%') and has been applied. The syntax of float literals was missing from the LangRef, but present in the comments in lib.Parser/Lexer.cpp, it was added to the LangRef