mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-30 22:28:53 +00:00
PTX parser rewrite (#267)
Replaces traditional LALRPOP-based parser with winnow-based parser to handle out-of-order instruction modifer. Generate instruction type and instruction visitor from a macro instead of writing by hand. Add separate compilation path using the new parser that only works in tests for now
This commit is contained in:
parent
872054ae40
commit
193eb29be8
34 changed files with 14776 additions and 55 deletions
17
ptx_parser_macros/Cargo.toml
Normal file
17
ptx_parser_macros/Cargo.toml
Normal file
|
@ -0,0 +1,17 @@
|
|||
[package]
|
||||
name = "ptx_parser_macros"
|
||||
version = "0.0.0"
|
||||
authors = ["Andrzej Janik <vosen@vosen.pl>"]
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
ptx_parser_macros_impl = { path = "../ptx_parser_macros_impl" }
|
||||
convert_case = "0.6.0"
|
||||
rustc-hash = "2.0.0"
|
||||
syn = "2.0.67"
|
||||
quote = "1.0"
|
||||
proc-macro2 = "1.0.86"
|
||||
either = "1.13.0"
|
1023
ptx_parser_macros/src/lib.rs
Normal file
1023
ptx_parser_macros/src/lib.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue