Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Oct 1, 2024
1 parent a4c7630 commit 89a1af1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 85 deletions.
79 changes: 0 additions & 79 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions macro/src/dialect/operation/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use crate::dialect::{
operation::operation_field::OperationField,
utility::{generate_result_type, sanitize_snake_case_identifier},
};
use once_cell::sync::Lazy;
use proc_macro2::{Span, TokenStream};
use quote::quote;
use std::collections::HashMap;
use std::sync::LazyLock;
use syn::{parse_quote, Ident, Type};
use tblgen::{error::TableGenError, Record};

Expand All @@ -28,7 +28,7 @@ macro_rules! melior_attribute {
};
}

static ATTRIBUTE_TYPES: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| {
static ATTRIBUTE_TYPES: LazyLock<HashMap<&'static str, &'static str>> = LazyLock::new(|| {
let mut map = HashMap::new();

macro_rules! initialize_attributes {
Expand Down
4 changes: 2 additions & 2 deletions macro/src/utility.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use regex::{Captures, Regex};
use std::cell::LazyCell;
use std::sync::LazyLock;

static NAME_PATTERN: LazyCell<Regex> = LazyCell::new(|| {
static NAME_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(r#"(bf_16|f_16|f_32|f_64|i_8|i_16|i_32|i_64|float_8_e_[0-9]_m_[0-9](_fn)?)"#)
.unwrap()
});
Expand Down
2 changes: 0 additions & 2 deletions melior/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ keywords = ["mlir", "llvm"]
ods-dialects = []

[dependencies]
dashmap = "6.1.0"
melior-macro = { version = "0.12.0", path = "../macro" }
mlir-sys = "0.3.0"
once_cell = "1"

[dev-dependencies]
indoc = "2.0.5"
Expand Down

0 comments on commit 89a1af1

Please sign in to comment.