Skip to content

What is the way to deprecate preview extensions? #3026

Open
@MrSidims

Description

@MrSidims

I'd like to discuss, what should be the way to deprecate extensions previously added to the translator as preview extension. A good example would be SPV_INTEL_token_type, which specification has never left intel/llvm#3788 . We (Intel SYCL compiler team) are quite sure, that we won't have problems with the deprecation, but we can't say for sure if there are no pre-generated SPIR-V modules 'in the wild' which would use the extension (some time ago I've noted, that there are several projects, that use llvm-spirv with --spirv-ext=+all , for example https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/HIPAMD.cpp#L178 ).

Right now I've created #3025 that would still support the extension during reverse translation (just in case), but will start emit an error in case if LLVM token type present in LLVM IR module during forward translation. Should the later be changed to a deprecation warning (note, right now the translator never emits warnings)?

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