HomePhabricator

[mlir][DeclarativeParser] Emit an error if a `:` follows an attribute with a…

Authored by rriddle on Apr 3 2020, 7:20 PM.

Description

[mlir][DeclarativeParser] Emit an error if a : follows an attribute with a non-constant type.

Summary: The attribute grammar includes an optional trailing colon type, so for attributes without a constant buildable type this will generally lead to unexpected and undesired behavior. Given that, it's better to just error out on these cases.

Differential Revision: https://reviews.llvm.org/D77293