[PATCH] D158462: [OMPIRBuilder] Fix shared clause for task construct
Prabhdeep Soni via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 09:57:28 PDT 2023
psoni2628 added a comment.
In D158462#4610370 <https://reviews.llvm.org/D158462#4610370>, @jdoerfert wrote:
> In D158462#4610257 <https://reviews.llvm.org/D158462#4610257>, @kiranchandramohan wrote:
>
>> In D158462#4610220 <https://reviews.llvm.org/D158462#4610220>, @psoni2628 wrote:
>>
>>>> As for the clang failures, it looks like they are related. I think I just need to update the CHECK lines, but I'm still figuring that out.
>>>
>>> The clang test failures are being caused by my addition of `kmp_task_t` to `OMPKinds.def`. It is conflicting with Clang's definition of `kmp_task_t` in `clang/lib/CodeGen/CGOpenMPRuntime.cpp`, so the struct gets renamed to `kmp_task_t.0` and `kmp_task_t.1`. I don't think it is that simple to update the usage of `kmp_task_t` in `clang/lib/CodeGen/CGOpenMPRuntime.cpp`. Should I rename my addition of `kmp_task_t` in `OMPKinds.def` to `kmp_task`, or should I just fix the tests to allow `kmp_task_t.0` and `kmp_task_t.1`?
>
> Can we make use of the new `kmp_task_t` in Clang? That would be the correct way to resolve this.
I am not sure how to go about doing that. I think the `kmp_task_t` struct is actually being created in `llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:initializeTypes` from the macro defined in `OMPKinds.def`. Do you know how I can refer to that struct in Clang?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158462/new/
https://reviews.llvm.org/D158462
More information about the llvm-commits
mailing list