Rename new crates

This commit is contained in:
Andrzej Janik 2024-08-21 20:00:22 +02:00
commit 71e025845c
9 changed files with 20 additions and 18 deletions

View file

@ -1,12 +1,13 @@
[package]
name = "ptx_parser"
version = "0.1.0"
version = "0.0.0"
authors = ["Andrzej Janik <vosen@vosen.pl>"]
edition = "2021"
[dependencies]
logos = "0.14"
winnow = { version = "0.6.18" }
gen = { path = "../gen" }
ptx_parser_macros = { path = "../ptx_parser_macros" }
thiserror = "1.0"
bitflags = "1.2"
rustc-hash = "2.0.0"

View file

@ -1,11 +1,10 @@
use std::cmp::Ordering;
use super::{
AtomSemantics, MemScope, RawRoundingMode, RawSetpCompareOp, ScalarType, SetpBoolPostOp,
StateSpace, VectorPrefix,
};
use crate::{PtxError, PtxParserState};
use bitflags::bitflags;
use std::cmp::Ordering;
pub enum Statement<P: Operand> {
Label(P::Ident),
@ -14,7 +13,7 @@ pub enum Statement<P: Operand> {
Block(Vec<Statement<P>>),
}
gen::generate_instruction_type!(
ptx_parser_macros::generate_instruction_type!(
pub enum Instruction<T: Operand> {
Mov {
type: { &data.typ },
@ -1448,5 +1447,5 @@ pub enum DivFloatKind {
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct FlushToZero {
pub flush_to_zero: bool
pub flush_to_zero: bool,
}

View file

@ -1,5 +1,5 @@
use gen::derive_parser;
use logos::Logos;
use ptx_parser_macros::derive_parser;
use rustc_hash::FxHashMap;
use std::fmt::Debug;
use std::mem;