Skip to content

Commit

Permalink
fixup diff nits
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Nov 1, 2023
1 parent 3a97602 commit c8a2d7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SSA/Core/Util/ConcreteOrMVar.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ inductive ConcreteOrMVar (α : Type u) (φ : Nat)

instance [ToString α] : ToString (ConcreteOrMVar α n) where
toString
| .concrete a => s!"wconcrete({a})"
| .mvar i => s!"wmvar({i})"
| .concrete a => s!"concrete({a})"
| .mvar i => s!"mvar({i})"
/-- A coercion from the concrete type `α` to the `ConcreteOrMVar` -/
instance : Coe α (ConcreteOrMVar α φ) := ⟨.concrete⟩

Expand Down
2 changes: 1 addition & 1 deletion SSA/Projects/MLIRSyntax/AST.lean
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def AttrDict.find_nat {φ} (attrs : AttrDict φ) (name : String) : Option Nat :=
| _ => .none

def AttrDict.find_int {φ} (attrs : AttrDict φ)
(name : String) : Option (Int × MLIRType φ) :=
(name : String): Option (Int × MLIRType φ) :=
match attrs.find name with
| .some (AttrValue.int i ty) => .some (i, ty)
| _ => .none
Expand Down

0 comments on commit c8a2d7d

Please sign in to comment.