-
Notifications
You must be signed in to change notification settings - Fork 128
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
Possible bug in OpenMP implementation #502
Comments
The second line of the CIR error output gives the position of the error: clangir/clang/lib/CIR/CodeGen/CIRGenerator.cpp Lines 162 to 165 in b26f21d
Basically this code checks whether we have Note that this code only gets executed when we meet a If you are not sure what to do at here, a good reference is always the original clang CodeGen module. The corresponding part in the clang CodeGen is: clangir/clang/lib/CodeGen/ModuleBuilder.cpp Lines 258 to 268 in b26f21d
You can start by understanding what the original clang CodeGen is doing and port it to CIRGen accordingly. |
Thanks for the detailed explanation @Lancern. @eZWALT another possibility is to mock the relevant constructs out of |
Great explanation @Lancern , thanks for all the time invested, after implementing the task construct I will be checking this out! |
I am seeking insights regarding an issue encountered during testing. When including the <omp.h> library in the test code as shown below (Bearing in mind that this simplified #pragma omp parallel is already implemented):
I observed unusual exceptions. This inclusion leads to the CIRGenerator.cpp file reaching a conditional statement that terminates with a llvm_unreachable. While I understand this may be expected behavior, I lack sufficient context to fully comprehend the issue. Could someone explain why the code functions without the inclusion of <omp.h> but raises an exception when included?
This is the most relevant part of the error, if it helps:
Thank you for your support and efforts!
The text was updated successfully, but these errors were encountered: