Skip to content
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

[flang] Adopt NoRegionArguments (WhereOp) and ParentOneOf (ResultOp) traits #275

Merged
merged 2 commits into from Jul 16, 2020

Conversation

jurahul
Copy link

@jurahul jurahul commented Jul 16, 2020

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

@schweitzpgi
Copy link

I tried building this patch against fir-dev and get a number of compilation failures.

[ 90%] Building CXX object tools/flang/lib/Optimizer/CMakeFiles/obj.FIROptimizer.dir/Dialect/FIROps.cpp.o
/work/flang/lib/Optimizer/Dialect/FIROps.cpp: In function ?mlir::LogicalResult verify(fir::ResultOp)?:
/work/flang/lib/Optimizer/Dialect/FIROps.cpp:1033:57: error: a function-definition is not allowed here before ?{? token
 static constexpr llvm::StringRef getCompareOffsetAttr() {
                                                         ^
/work/flang/lib/Optimizer/Dialect/FIROps.cpp:1037:56: error: a function-definition is not allowed here before ?{? token
 static constexpr llvm::StringRef getTargetOffsetAttr() {
                                                        ^
/work/flang/lib/Optimizer/Dialect/FIROps.cpp:1041:1: error: a template declaration cannot appear at block scope
 template <typename A, typename... AdditionalArgs>
 ^~~~~~~~
/work/flang/lib/Optimizer/Dialect/FIROps.cpp:1063:68: error: a function-definition is not allowed here before ?{? token
 static unsigned denseElementsSize(mlir::DenseIntElementsAttr attr) {
                                                                    ^
...

@jurahul
Copy link
Author

jurahul commented Jul 16, 2020

Thanks. I have fixed it both here and on the LLVM Phabricator. But that means that the LLVM Phab review did not really build that change, which seems concerning. I have now verified by building locally.

@jurahul
Copy link
Author

jurahul commented Jul 16, 2020

I have filed: https://bugs.llvm.org/show_bug.cgi?id=46751 (to investigate the why LLVM Phabricator did not flag this build failure).

@schweitzpgi
Copy link

Quick work. Thank you. I'll try the new changes.

Also thanks for filing the bug.

Copy link

@schweitzpgi schweitzpgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for helping getting this upstreamed to fir-dev.

@schweitzpgi schweitzpgi merged commit b43f6bb into flang-compiler:fir-dev Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants