Skip to content

libclc: no constant/generic variants of math functions like frexp #54608

Open
@djdeath

Description

@djdeath

The frexp function has 3 variants in the current libclc : https://github.com/llvm/llvm-project/blob/main/libclc/generic/include/clc/math/frexp.inc : global, local, private

The SPIR specification page 17 says that are 5 different address space qualifiers :

  • 0 – private
  • 1 – global
  • 2 – constant
  • 3 – local
  • 4 – generic

If some SPIR module was generated using the generic address space qualifier, what version should it use from libclc?
Should the constant & generic variant of the existing functions be added to libclc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    libclclibclc OpenCL library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions