You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Fix a lot of llvm_unreachable("Invalid address space") errors
Currently, CLang doesn't support the generic address space. Sema treats
the generic address space as LangAS::Default:
/// If this is an OpenCL address space attribute, returns its SYCL
/// representation in LangAS, otherwise returns default address space.
LangAS asSYCLLangAS() const {
switch (getKind()) {
...
case ParsedAttr::AT_OpenCLGenericAddressSpace:
default:
return LangAS::Default;
}
}
and then this LangAS::Default leads to an invocation of
llvm_unreachable:
if (ASIdx == LangAS::Default)
llvm_unreachable("Invalid address space");
As a temporal solution, I've defined `__OPENCL_GENERIC_AS__` as an
empty string for host as well as for device.
0 commit comments