Skip to content

SPIR-V built-ins declarations rejected by the SYCL device compiler #1429

Closed
@bader

Description

@bader

@Naghasan, I have problem with building libdevice library with my version of the SYCL compiler. "My version" includes improved "deferred diagnostics" patch from https://reviews.llvm.org/D70172, which seems to enable diagnostics #1026 for the TableGen-emitted declarations. There seems to be a bug in existing implementation.

Am I right that SPIR-V built-ins are emitted w/o sycl_device attribute? If so, the SYCL device compiler is supposed to emit an error for declaration w/o definition and not explicitly annotated with SYCL_EXTERNAL macro (aka sycl_device attribute). NOTE: original header replaced by TableGen file included required annotations.

Can we add sycl_device attribute to SPIR-V built-ins if -fsycl-is-device language option is set?
Any other ideas how to fix libdevice build?
Let me know if you want me to share the compiler with fixed deferred diagnostics.

Tagging @s-kanaev, @erichkeane, @Fznamznon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions