Skip to content

Commit

Permalink
add ScheduledProgram::into_basic_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kalzoo committed Feb 10, 2024
1 parent f4fe902 commit 502629d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quil-rs/src/program/scheduling/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ impl<'a> ScheduledProgram<'a> {
pub fn basic_blocks(&self) -> &[ScheduledBasicBlock<'_>] {
self.basic_blocks.as_ref()
}

pub fn into_basic_blocks(self) -> Vec<ScheduledBasicBlock<'a>> {
self.basic_blocks
}
}

#[cfg(test)]
Expand Down

0 comments on commit 502629d

Please sign in to comment.