Skip to main content

ptx_parser/type/instruction/
bra.rs

1//! Original PTX specification:
2//!
3//! bra{.uni}  tgt;           // tgt is a label
4//! bra{.uni}  tgt;           // unconditional branch
5
6#![allow(unused)]
7use crate::r#type::common::*;
8
9pub mod section_0 {
10    use crate::Spanned;
11    use crate::parser::Span;
12    use crate::r#type::common::*;
13
14    use serde::Serialize;
15
16    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
17    pub struct BraUni {
18        pub uni: bool,           // {.uni}
19        pub tgt: GeneralOperand, // tgt
20        pub span: Span,
21    }
22
23    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
24    pub struct BraUni1 {
25        pub uni: bool,           // {.uni}
26        pub tgt: GeneralOperand, // tgt
27        pub span: Span,
28    }
29}
30
31// Re-export types with section suffixes to avoid naming conflicts
32// e.g., Type0 for section_0::Type, Type1 for section_1::Type
33pub use section_0::BraUni;
34pub use section_0::BraUni1;