instance
instParseableTuple
{α : Type (max u_1 u_2)}
{β : Type (max u_1 u_2)}
[A : Cli.ParseableType α]
[B : Cli.ParseableType β]
:
Cli.ParseableType (α × β)
Parse a tuple
Equations
- One or more equations did not get rendered due to their size.
@[reducible, inline]
abbrev
MCom
(φ : ℕ)
:
Ctxt (InstCombine.MetaLLVM φ).Ty → EffectKind → (InstCombine.MetaLLVM φ).Ty → Type
Equations
- MCom φ = Com (InstCombine.MetaLLVM φ)
Instances For
@[reducible, inline]
abbrev
MExpr
(φ : ℕ)
(Γ : Ctxt (InstCombine.MetaLLVM φ).Ty)
(eff : EffectKind)
(ty : (InstCombine.MetaLLVM φ).Ty)
:
Equations
- MExpr φ = Expr (InstCombine.MetaLLVM φ)
Instances For
Equations
- name : Lean.Name
- mvars : ℕ
- context : MContext self.mvars
- ty : InstCombine.MTy self.mvars
- eff : EffectKind
- code : MCom self.mvars self.context self.eff self.ty
Instances For
def
CliTest.signature
(test : CliTest)
:
List (InstCombine.MTy test.mvars) × InstCombine.MTy test.mvars
Equations
- test.signature = (test.context, test.ty)
Instances For
Equations
- instParseableTypeNatParams = instParseableNatParams
Equations
- test.paramsParseable = instParseableNatParams
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- instDecidableConcrete = inferInstanceAs (DecidableEq ℕ) test.mvars 0
- name : Lean.Name
- context : Context
- ty : InstCombine.Ty
- code : MCom 0 self.context EffectKind.pure self.ty
Instances For
Equations
- InstCombine.MTy.cast_concrete mvars ty hMvars = hMvars ▸ ty
Instances For
Equations
- InstCombine.MTy.cast_concrete? mvars ty = if h : mvars = 0 then some (InstCombine.MTy.cast_concrete mvars ty h) else none
Instances For
def
MLIR.AST.Context.cast_concrete
(mvars : ℕ)
(ctxt : MContext mvars)
(hMVars : mvars = 0)
:
MContext 0
Equations
- MLIR.AST.Context.cast_concrete mvars ctxt hMVars = hMVars ▸ ctxt
Instances For
Equations
- MLIR.AST.Context.cast_concrete? mvars ctxt = if h : mvars = 0 then some (MLIR.AST.Context.cast_concrete mvars ctxt h) else none
Instances For
def
InstCombine.mkValuation
(ctxt : MContext 0)
(values : Mathlib.Vector (Option ℤ) (List.length ctxt))
:
Ctxt.Valuation ctxt
Equations
- InstCombine.mkValuation [] ⟨[], property⟩ = Ctxt.Valuation.nil
- InstCombine.mkValuation (InstCombine.MTy.bitvec (ConcreteOrMVar.concrete w) :: tys) ⟨val :: vals, hlen_2⟩ = (InstCombine.mkValuation tys ⟨vals, ⋯⟩::ᵥOption.map (BitVec.ofInt w) val)
Instances For
def
ConcreteCliTest.eval
(test : ConcreteCliTest)
(values : Mathlib.Vector (Option ℤ) (List.length test.context))
:
Equations
- test.eval values = pure (Com.denote test.code (InstCombine.mkValuation test.context values.reverse))
Instances For
def
ConcreteCliTest.parseableInputs
(test : ConcreteCliTest)
:
Cli.ParseableType (Mathlib.Vector ℤ (List.length test.context))
Equations
- test.parseableInputs = inferInstance
Instances For
Equations
- CocreteCliTest.signature test = (List.reverse test.context, test.ty)
Instances For
Equations
Instances For
Equations
- instToStringToTypeTyTy = { toString := match (motive := (x : InstCombine.Ty) → ⟦x⟧ → String) test.ty with | InstCombine.MTy.bitvec (ConcreteOrMVar.concrete w) => toString }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- termLlvmTests! = Lean.ParserDescr.node `termLlvmTests! 1024 (Lean.ParserDescr.symbol "llvmTests!")