Source port of Miri shims/{mod,foreign_items,alloc,env}.rs. OS-specific, compiler signature construction, allocation and host effects remain mandatory queries; dispatch, ABI checks, allocation policy and control ordering are here.
Instances For
- NeedsReturn : EmulateItemResult
- NeedsUnwind : EmulateItemResult
- AlreadyJumped : EmulateItemResult
- NotSupported : EmulateItemResult
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
- rust : AllocationKind
- c : AllocationKind
- miri : AllocationKind
- mmap : AllocationKind
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- unit : SignatureType
- usize : SignatureType
- isize : SignatureType
- i32 : SignatureType
- u32 : SignatureType
- pointer : SignatureType
- unitPointer : SignatureType
- alignment : SignatureType
- never : SignatureType
- u64 : SignatureType
- u8 : SignatureType
- bool : SignatureType
- byteSlice : SignatureType
- functionPointer : SignatureType
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- conv : ABI.CanonAbi
- args : Array SignatureType
- ret : SignatureType
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- Alloc : SpecialAllocatorMethod
- AllocZeroed : SpecialAllocatorMethod
- Dealloc : SpecialAllocatorMethod
- Realloc : SpecialAllocatorMethod
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- redirect {Instance : Type} (symbol : String) : AllocatorSymbol Instance
- special {Instance : Type} (method : SpecialAllocatorMethod) : AllocatorSymbol Instance
Instances For
Weak definitions lose to strong definitions; two equally weak definitions are an error, including two weak definitions. Compiler iteration order is kept.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- function : ExportKind
- associatedFunction : ExportKind
- staticItem : ExportKind
- other : ExportKind
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Compiler definition-kind checks precede MIR loading. A data export with a matching name must never become a callable fallback.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- family : Family
- os : String
- arch : String
- maximumSize : UInt64
- noAllocShimSymbol : String
- allocatorSymbol : String → M S (Option (AllocatorSymbol Instance))
- forceAllocation : D → M S MD
- returnToBlock : Option MIR.BasicBlockId → M S Unit
- unwindToBlock : MIR.UnwindAction → M S Unit
- nativeEnabled : Bool
- argumentCompat : ABI.ArgAbi MIR.TyId → ABI.ArgAbi MIR.TyId → M S Bool
- transmute : OpTy P → ABI.TyAndLayout MIR.TyId → M S (OpTy P)
- allocate : UInt64 → ABI.Align → Init → AllocationKind → M S Ptr
- specialDestination : D → M S MD
Instances For
Dispatch is separate from the nonrecursive source primitive dictionary. Portable/platform factories need only Core while constructing their bodies.
- allocatorSymbol : String → M S (Option (AllocatorSymbol Instance))
- lookupFunction : String → M S (Option (Body × Instance))
- forceAllocation : D → M S MD
- returnToBlock : Option MIR.BasicBlockId → M S Unit
- unwindToBlock : MIR.UnwindAction → M S Unit
- expectedAbi : Signature → M S (ABI.FnAbi MIR.TyId)
- argumentCompat : ABI.ArgAbi MIR.TyId → ABI.ArgAbi MIR.TyId → M S Bool
- checkSymbolClash : String → M S Unit
- readPointer : OpTy P → M S Ptr
- deallocate : Ptr → Option (UInt64 × ABI.Align) → AllocationKind → M S Unit
- reallocate : Ptr → Option (UInt64 × ABI.Align) → UInt64 → ABI.Align → AllocationKind → M S Ptr
- writePointer : Ptr → MD → M S Unit
- specialDestination : D → M S MD
Other top-level arms (memory/string/Miri diagnostics) are required typed operations; NotSupported is reserved for names absent from the source table.
Instances For
Compatibility entry points project the lawful nonrecursive dictionary.
Equations
- Miri.Interpreter.ForeignItems.checkAbi h caller callee = h.checkAbi caller callee
Instances For
Equations
- Miri.Interpreter.ForeignItems.checkSignature h name signature caller args = h.checkSignature name signature caller args
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
OS strings are supplied as already-decoded target strings. Unix byte encoding and Windows case rules belong to their separate OS modules.
Equations
- One or more equations did not get rendered due to their size.