Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Minor comments and overall fine approach. Could you update the test so I can accept it? Later I will assume changes like this are made before it is commited.
clang/lib/CodeGen/CGOpenMPRuntime.cpp | ||
---|---|---|
3882 | You can even move the code to the beginning of the function (see my comment below as well). Nit: I personally prefer conditionals to have braces in all parts or no braces at all. I get itchy when we have a branch with and one without. | |
llvm/include/llvm/Transforms/Utils/OpenMPIRBuilder.h | ||
81 ↗ | (On Diff #231043) | I think we settled on CreateXXX as naming scheme to match the IRBuilder for now. |
llvm/lib/Frontend/OpenMPIRBuilder.cpp | ||
250 ↗ | (On Diff #231043) | Can you adopt the scheme below (w/o assert for now) if (!updateToLocation(Loc)) return; I'm not certain why we support an "invalid" insertion point but the update method also sets the debug information properly. |
One more thing, I would not call this NFC, nor WIP for that matter (in the commit message).
@fghanim created a spreadsheet so we can coordinate our porting efforts:
https://docs.google.com/spreadsheets/d/1FvHPuSkGbl4mQZRAwCIndvQx9dQboffiD-xD0oqxgU0/edit?usp=sharing
please feel free to add directives there you intent to port.
Addressed review comments.
- Adding a test
- Change emitFlush to CreateFlush in OpenMPIRBuilder.cpp
- Use updateLoc
- Fixed formatting
You can even move the code to the beginning of the function (see my comment below as well).
Nit: I personally prefer conditionals to have braces in all parts or no braces at all. I get itchy when we have a branch with and one without.