Documentation

Miri.Interpreter.NativeAbi

Native mod.rs:367–435/444–490 direct ABI and closure preparation. Compiler queries are separated from memory operations; building a host trampoline never requires fabricated NativeHooks read/write callbacks.

Instances For
    Equations
    Instances For
      • build : C → Option (Array Native.FfiType × Native.FfiType) → Bool → RvalueM S Code

        Actual libffi Builder/closure/code pointer. Source intentionally leaks both data and closure until process exit, retaining its context interchange. For unsupported signatures the builder receives no descriptors and must install the source diagnostic-and-exit trampoline, not reject construction.

      Instances For
        def Miri.Interpreter.NativeAbi.buildClosure {S C Code : Type} (queries : Queries S C) (host : ClosureHost S C Code) (choice : C) (fuel : Nat) (inputs : Array MIR.TyId) (output : MIR.TyId) :
        RvalueM S Code

        Only source unsupported-signature errors choose the aborting descriptor. Missing compiler evidence, resource limits and machine failures propagate.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For