Open
Conversation
This change introduces a new QIR profile, `Adaptive_RIFLA`, which targets the upcoming QIR v2.1 specification This profile builds from the Integer and Float computations supported by `Adaptive_RIF` and adds flags for Loops (backwards branching) and Arrays. Note that this PR does not include actual codegen support for these features, but the flags are specified in the template in advance of that work. `Adaptive_RIFLA` is intended to be in preview/experimental and is not configured as a default (opt-in only). This PR includes the following changes: - Adds the `Adaptive_RIFLA` profile to as a recognized profile for Q# and OpenQASM - Adds the profile to Python enum - Adds new v2 codegen for QIR that uses opaque pointers, updated LLVM pattterns, and updated module flags - Updates the RIR data structures to introduce new `AdvancedInstr` struct to capture instructions that are only supported in the new profile. - Adds `Load` and `Alloca` advanced instructions to complement the existing `Store` instruction - Adds an RIR pass that prunes most extraneous store instructions to identify the required set of variables and values - Adds an RIR pass that adds the necessary `Load` and `Alloca` instructions to support stack-based variable management - Adds test cases for new RIR passes, v2 instructions, and integration tests verifying QIR generation and execution via qir-runner.
964cde0 to
4d330f4
Compare
minestarks
reviewed
Mar 20, 2026
minestarks
reviewed
Mar 20, 2026
minestarks
reviewed
Mar 20, 2026
minestarks
reviewed
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change introduces a new QIR profile,
Adaptive_RIFLA, which targets the upcoming QIR v2.1 specification This profile builds from the Integer and Float computations supported byAdaptive_RIFand adds flags for Loops (backwards branching) and Arrays. Note that this PR does not include actual codegen support for these features, but the flags are specified in the template in advance of that work.Adaptive_RIFLAis intended to be in preview/experimental and is not configured as a default (opt-in only).This PR includes the following changes:
Adaptive_RIFLAprofile to as a recognized profile for Q# and OpenQASMAdvancedInstrstruct to capture instructions that are only supported in the new profile.LoadandAllocaadvanced instructions to complement the existingStoreinstructionLoadandAllocainstructions to support stack-based variable management