Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Dec 21, 2024
1 parent b922c64 commit 2d7143a
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 38 deletions.
1 change: 0 additions & 1 deletion arnoldc/src/arnold.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Result;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;
use xrcf::ir::APInt;
use xrcf::ir::Attribute;
use xrcf::ir::Block;
Expand Down
1 change: 0 additions & 1 deletion arnoldc/src/arnold_to_mlir.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::arnold;
use anyhow::Result;
use std::sync::Arc;
use std::sync::RwLock;
use xrcf::convert::apply_rewrites;
use xrcf::convert::ChangedOp;
use xrcf::convert::Pass;
Expand Down
3 changes: 1 addition & 2 deletions arnoldc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ mod tests {
use anyhow::Result;
use indoc::indoc;
use std::panic::Location;
use std::sync::Arc;
use std::sync::RwLock;

use xrcf::convert::RewriteResult;
use xrcf::shared::Shared;
use xrcf::tester::Tester;
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/canonicalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use crate::ir::Users;
use crate::shared::Shared;
use crate::shared::SharedExt;
use anyhow::Result;
use std::sync::Arc;
use std::sync::RwLock;

pub struct CanonicalizeOp;

Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/convert/cf_to_llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use crate::ir::Op;
use crate::shared::Shared;
use crate::shared::SharedExt;
use anyhow::Result;
use std::sync::Arc;
use std::sync::RwLock;

struct BranchLowering;

Expand Down
1 change: 0 additions & 1 deletion xrcf/src/convert/experimental_to_mlir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use dialect::experimental::PrintfOp;
use std::sync::Arc;
use std::sync::RwLock;

struct PrintLowering;

Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/convert/func_to_llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use crate::ir::Op;
use crate::shared::Shared;
use crate::shared::SharedExt;
use anyhow::Result;
use std::sync::Arc;
use std::sync::RwLock;

struct AddLowering;

Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/convert/mlir_to_llvmir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ use crate::shared::Shared;
use crate::shared::SharedExt;
use crate::targ3t;
use anyhow::Result;
use std::sync::Arc;
use std::sync::RwLock;

struct AddLowering;

Expand Down
1 change: 0 additions & 1 deletion xrcf/src/dialect/arith/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// The token kind used for variables in this dialect.
///
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/dialect/experimental/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

const TOKEN_KIND: TokenKind = TokenKind::PercentIdentifier;

Expand Down
1 change: 0 additions & 1 deletion xrcf/src/dialect/func/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

const TOKEN_KIND: TokenKind = TokenKind::PercentIdentifier;

Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/dialect/llvm/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use crate::parser::ParserDispatch;
use crate::shared::Shared;
use std::fmt::Formatter;
use std::fmt::Result;
use std::sync::Arc;
use std::sync::RwLock;

pub struct LinkageAttr {
value: String,
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/dialect/llvm/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

const TOKEN_KIND: TokenKind = TokenKind::PercentIdentifier;

Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/dialect/llvm/typ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// Represent an integer type such as i32 or i64.
///
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/dialect/scf/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ use crate::shared::Shared;
use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

const TOKEN_KIND: TokenKind = TokenKind::PercentIdentifier;

Expand Down
1 change: 0 additions & 1 deletion xrcf/src/ir/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use std::collections::HashMap;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// Attributes are known-constant values of operations (a variable is not allowed).
/// Attributes belong to operations and can be used to, for example, specify
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/ir/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

// See `include/mlir/IR/BuiltinOps.h` and goto definition of
// `mlir/IR/BuiltinOps.h.inc`.
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/ir/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// A specific operation.
///
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/ir/op_operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use anyhow::Result;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

pub struct OpOperand {
value: Shared<Value>,
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/ir/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ use anyhow::Result;
use std::default::Default;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

#[derive(Clone, PartialEq, Eq, Debug)]
pub struct OperationName {
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/ir/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use crate::shared::Shared;
use crate::shared::SharedExt;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// A list of blocks.
pub struct Region {
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/ir/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::shared::SharedExt;
use anyhow::Result;
use std::fmt::Display;
use std::sync::Arc;
use std::sync::RwLock;

pub enum BlockArgumentName {
/// Anonymous block arguments are used for functions without an implementation.
Expand Down
1 change: 0 additions & 1 deletion xrcf/src/targ3t/llvmir/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::shared::SharedExt;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

/// Display an operand LLVMIR style (e.g., `i32 8`, `i32 %0`, or `label %exit`).
fn display_operand(f: &mut Formatter<'_>, operand: &Shared<OpOperand>) -> std::fmt::Result {
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/targ3t/llvmir/typ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use crate::shared::Shared;
use crate::shared::SharedExt;
use std::fmt::Display;
use std::fmt::Formatter;
use std::sync::Arc;
use std::sync::RwLock;

#[derive(Clone)]
pub struct ArrayType {
Expand Down
2 changes: 0 additions & 2 deletions xrcf/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ use clap::ArgMatches;
use std::env::ArgsOs;
use std::fmt;
use std::fmt::Display;
use std::sync::Arc;
use std::sync::RwLock;
use tracing::subscriber::SetGlobalDefaultError;
use tracing::Level;
use tracing_subscriber;
Expand Down

0 comments on commit 2d7143a

Please sign in to comment.