Skip to content

opencl.ocl.version can not reflect opencl cpp source #91912

Closed
@haonanya

Description

@haonanya

the option -cl-std=cl3.0 emits same metadata as -cl-std=clc++2021 and -cl-std=cl2.0 emits same metadata as -cl-std=clc++. In llvm-spirv, spirv.Source metadata is determined by opencl.ocl.version, which results in unexpected spirv.Source metadata for opencl cpp source https://github.com/KhronosGroup/SPIRV-Headers/blob/main/include/spirv/unified1/spirv.hpp#L67,L68.
@svenvh, @AnastasiaStulova, @MrSidims, @VyacheslavLevytskyy

Metadata

Metadata

Assignees

No one assigned

    Labels

    OpenCLclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions