This patch adds final clause to OpenMP IR Builder.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
629 | Please document the new parameter in the doxygen comment. | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
1259 | [style] LLVM naming conventions have parameters start with an upper case letter. Also I don't see the point of the Bool suffix. Consider IsFinal or Final. | |
1340 | [style] | |
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | ||
4845 | [style] | |
4866 | [👍] Great use of any_of |
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | ||
---|---|---|
4866 | Thank you! :) |
LGTM with a request to describe the llvm::Value argument more precisely.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
627 | Since IsFinal is not a bool, you cannot pass true/false like for Tied. What is passed is the llvm::Value that decides whether to create a (non-)final task at runtime. |
Thanks for pointing it out @Meinersbur. Somehow I mistook it for
a bool value while addressing comments earlier. Corrected the
description now.
Since IsFinal is not a bool, you cannot pass true/false like for Tied. What is passed is the llvm::Value that decides whether to create a (non-)final task at runtime.