-
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
Add MLIR lowering for cumsum op #1186
Conversation
|
1 similar comment
|
|
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.
Looks good overall, just one nit
@@ -234,6 +236,7 @@ class MLIRGenerator | |||
case TargetType::UInt32: | |||
TT_ASSERT(std::get<int>(value) >= 0, "Value must be an >= 0 for conversion to uint32"); | |||
return builder_.getUI32IntegerAttr(static_cast<uint32_t>(std::get<int>(value))); | |||
case TargetType::Int64: return builder_.getI64IntegerAttr(static_cast<int64_t>(std::get<int>(value))); |
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.
nit: Could you please add a line break here so it starts on a new line :))
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.
Initialy i wrote it in a newline after the clang formating it moved to the same line.
cfb8a21
to
3d7c81c
Compare
3d7c81c
to
3bdcb43
Compare
|
1 similar comment
|
|
1 similar comment
|
Ticket
Fix #891, Fix #503
Problem description
Add MLIR lowering for cumsum op
What's changed