Skip to main content

Module parser

Module parser 

Source
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§

FunctionDef
Function definition (non-entry)
GlobalDecl
Global declaration
Instruction
PTX Instruction
KernelDef
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
RegisterDecl
Register declaration
SharedMemDecl
Shared memory declaration
SourceLocation
Source location for error reporting
Token
A token in the PTX source

Enums§

Directive
Directive within body
Operand
Instruction operand
ParseError
Parse error types
Statement
Statement in a kernel/function body
TokenKind
Token kinds for PTX lexing