-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dialect] Traits and type parser/printer fixes to unblock downstream integrations #15
[Dialect] Traits and type parser/printer fixes to unblock downstream integrations #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
//===----------------------------------------------------------------------===// | ||
// Tcp Type Definitions. | ||
// Tcp Type Definitions | ||
//===----------------------------------------------------------------------===// | ||
|
||
def Tcp_IndexArrayType : Tcp_Type<"IndexArray", "index_array"> { | ||
let summary = "IndexArray TCP type, to holds a list of index builtin type to represent shape"; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very minor nit: It might be better to have the basic types, Tcp_Scalar
, Tcp_Tensor
before we define IndexArrayType
. The same would apply to the Tcp_QuantizedType
as well. So, may be we can do it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tcp_Scalar
depends on Tcp_QuantizedInt
so it has to follow quantized types. However I've moved Tcp_IndexArrayType
to the end.
) Cherry-pick from upstream PR: cruise-automation#39
error: 'tcp.isolated_group' op expects parent op to be one of 'func.func, tcp.group, tcp.isolated_group'
error: dialect 'tcp' provides no type parsing hook
Tcp_IndexArrayType
definitionld.lld: error: undefined symbol: mlir::tcp::TcpDialect::printType(mlir::Type, mlir::DialectAsmPrinter&) const
referenced by TcpDialect.cpp