-
Notifications
You must be signed in to change notification settings - Fork 55
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][OpenMP] Extend do concurrent
mapping to device.
#50
Changes from 5 commits
62423e1
b854076
1c8ad61
1347e2f
1bd0d48
b2a7d51
71a1fa0
2ed6040
476fffe
3bb1152
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ struct OmpMapMemberIndicesData { | |
}; | ||
|
||
mlir::omp::MapInfoOp | ||
createMapInfoOp(fir::FirOpBuilder &builder, mlir::Location loc, | ||
createMapInfoOp(mlir::OpBuilder &builder, mlir::Location loc, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not against changing this to the more generic mlir::OpBuilder, but I am wondering if we should just keep it the same as most of the other flang utilities to keep it somewhat standardized, but I'll leave that up to you! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That will come a small additional cost of having to replicate |
||
mlir::Value baseAddr, mlir::Value varPtrPtr, std::string name, | ||
mlir::ArrayRef<mlir::Value> bounds, | ||
mlir::ArrayRef<mlir::Value> members, | ||
|
@@ -102,6 +102,8 @@ void genObjectList(const ObjectList &objects, | |
Fortran::lower::AbstractConverter &converter, | ||
llvm::SmallVectorImpl<mlir::Value> &operands); | ||
|
||
mlir::Value calculateTripCount(fir::FirOpBuilder &builder, mlir::Location loc, | ||
const mlir::omp::CollapseClauseOps &ops); | ||
ergawy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} // namespace omp | ||
} // namespace lower | ||
} // namespace Fortran | ||
|
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: I suppose moving flang/include/Lower/OpenMP.h to flang/include/Lower/OpenMP/OpenMP.h would be in order as well (just to keep things consistent between the lib/ and include/ directories). If you do, remember to update the include guard on that file.
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.
To reduce the pain for anyone merging from upstream, I prefer to avoid doing that for now. Maybe we should replicate the header reorganization upstream first?