ptx_parser/parser/instruction/
cp_async_bulk_commit_group.rs

1//! Original PTX specification:
2//!
3//! cp.async.bulk.commit_group;
4
5#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::parser::{PtxParseError, PtxParser, PtxTokenStream, Span};
9use crate::r#type::common::*;
10
11pub mod section_0 {
12    use super::*;
13    use crate::r#type::instruction::cp_async_bulk_commit_group::section_0::*;
14
15    impl PtxParser for CpAsyncBulkCommitGroup {
16        fn parse(stream: &mut PtxTokenStream) -> Result<Self, PtxParseError> {
17            stream.expect_string("cp")?;
18            stream.expect_string(".async")?;
19            let async_ = ();
20            stream.expect_complete()?;
21            stream.expect_string(".bulk")?;
22            let bulk = ();
23            stream.expect_complete()?;
24            stream.expect_string(".commit_group")?;
25            let commit_group = ();
26            stream.expect_complete()?;
27            stream.expect_complete()?;
28            stream.expect(&PtxToken::Semicolon)?;
29            Ok(CpAsyncBulkCommitGroup {
30                async_,
31                bulk,
32                commit_group,
33            })
34        }
35    }
36
37
38}
39