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
Do no pollute the top level namespace #3374
Comments
That is bad, not sure why I named |
Users are supposed to use the wrapper ac_* types (ac_int, ac_fixed etc). We can move ap_int into a namespace. This will impact the ac_* type headers and also: the spirv_ops.hpp header. So these changes must occur together. |
It looks like it is only used from https://github.com/intel/llvm/blob/sycl/sycl/include/CL/__spirv/spirv_ops.hpp so it should be simple to fix. |
@MrSidims it seems at least one of our code samples is still using the sycl:: namespace version. Once that is updated I think it's safe to deprecate the old namespace. |
Just to clarify: we are talking about |
It's about |
We need to make progress on this and it has been blocking triSYCL/sycl#125 by a side effect for too long. |
Updated the PR. Regarding Old namespace for pipes will be removed shortly. |
While playing with FPGA libraries we got some compiling conflicts with some
::ap_int
type.It happens that while https://github.com/intel/llvm/blob/sycl/sycl/include/CL/__spirv/spirv_types.hpp declares things inside
::__spv
there are also some random declarations at the end of the file, likeRPipeTy
,WPipeTy
,ConstantPipeStorage
,ap_int
.If these declarations are useful, they should go into some detail or extension namespaces.
There are some other top-level declarations in
__spirv
but they are starting with__
which is OK since it is a kind of private implementation world in C/C++ provided there is some collaborative damage control.The text was updated successfully, but these errors were encountered: