This patch adds final clause to OpenMP IR Builder.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
60,280 ms | x64 debian > Clang.Driver::fsanitize.c |
Event Timeline
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
627 | 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 | ||
4590 | [style] | |
4611 | [👍] Great use of any_of |
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | ||
---|---|---|
4611 | 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.
Please document the new parameter in the doxygen comment.