-
Notifications
You must be signed in to change notification settings - Fork 62
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
Enable precompiled headers #122
base: ocl-open-80
Are you sure you want to change the base?
Conversation
exceotions.h
Outdated
@@ -0,0 +1,25 @@ | |||
/*****************************************************************************\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this file was added to the commit by mistake. Please remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
@@ -0,0 +1,25 @@ | |||
/*****************************************************************************\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we need this custom exception class, because we never throw it, do we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We catch this in common_clang.cpp:346 as std::domain_error, do you mean this kind of exception will never be hit?
@@ -0,0 +1,16 @@ | |||
module cl12spir { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we re-use the existing module.modulemap
from clang/lib/Headers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically yes, but we have the motivation to split out the common built-ins which doesn't relate to cl12/cl20 version, to reduce the duplication in generated pcm. So it's better we have a customized modulemap in our own repo.
@@ -41,11 +85,30 @@ else() | |||
pack_to_obj(opencl-c.h opencl-c.h.cpp "PCM_OPENCL_C_H") | |||
list(APPEND CL_HEADERS_SRC | |||
opencl-c.h.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why opencl-c-base.h
is not here: it was added last year in llvm.org.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On release-80 branch, clang doesn't have opencl-c-base.h. In the pull request for ocl-open-90, 100, master branch, there is opencl-c-base.h.
No description provided.