Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] QIR and opaque pointers #16

Open
schweitzpgi opened this issue Mar 22, 2023 · 3 comments
Open

[RFC] QIR and opaque pointers #16

schweitzpgi opened this issue Mar 22, 2023 · 3 comments
Assignees
Labels
needs more information Questions that need more information RFC Request for Comments

Comments

@schweitzpgi
Copy link
Collaborator

schweitzpgi commented Mar 22, 2023

Overview

The QIR specification has opaque (typed) pointers such a %Qubit *. These typed pointer may be in use in target backends and their translators.

As of LLVM 17, typed pointers are no longer supported. All pointers must be "opaque", that is they will no longer carry any type annotation as to what the pointed-to object's type is or may be.

CUDA Quantum will need some resolution on this situation in order to remain current with the tip of LLVM/Clang/MLIR development.

@schweitzpgi
Copy link
Collaborator Author

We still need a plan for opaque pointers and QIR. Remaining stuck at an arbitrary LLVM commit will continue to add technical debt the farther we fall behind.

@bettinaheim
Copy link
Collaborator

Workstream definition for the QIR spec: qir-alliance/.github#42

@schweitzpgi schweitzpgi added RFC Request for Comments critical This issue or pull request needs attention needs more information Questions that need more information labels Nov 28, 2023
@bettinaheim
Copy link
Collaborator

Currently, we are working on a prototype for using target extension types to confirm the feasibility for the spec update.

@bettinaheim bettinaheim removed the critical This issue or pull request needs attention label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Questions that need more information RFC Request for Comments
Projects
None yet
Development

No branches or pull requests

2 participants