Expand description
PTX Parser Module
Provides lexing and parsing of PTX source code into a typed AST.
Re-exports§
pub use types::AddressSpace;pub use types::Modifier;pub use types::Opcode;pub use types::PtxType;pub use types::SmTarget;
Modules§
- types
- PTX Type System definitions
Structs§
- Function
Def - Function definition (non-entry)
- Global
Decl - Global declaration
- Instruction
- PTX Instruction
- Kernel
Def - Kernel definition
- Lexer
- PTX Lexer
- Param
- Parameter declaration
- Parser
- PTX Parser - constructs AST from token stream
- Predicate
- Predicate for conditional execution
- PtxModule
- PTX Module - top-level AST node
- Register
Decl - Register declaration
- Shared
MemDecl - Shared memory declaration
- Source
Location - Source location for error reporting
- Token
- A token in the PTX source
Enums§
- Directive
- Directive within body
- Operand
- Instruction operand
- Parse
Error - Parse error types
- Statement
- Statement in a kernel/function body
- Token
Kind - Token kinds for PTX lexing