Documentation

Miri.Interpreter.Intrinsics

Source scalar/memory/pointer intrinsic dispatch from pinned core interpret/intrinsics.rs and Miri intrinsics/{mod,math}.rs. Unhandled names return false for source MIR fallback; recognized missing families fail visibly. No arithmetic branch delegates to a generic name-to-result callback.

Instances For

    Shared memory operations need no function instance, generic-constant queries, SIMD/atomic dispatcher, return destination or fallback dictionary.

    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Miri.Interpreter.Intrinsics.copyWith {P S C : Type} [Memory.PointerProvenance P] (h : MemoryIntrinsicHooks P S C) (choice : C) (source dest count : OpTy P) (nonoverlapping : Bool) :

        Source count read precedes pointee layout and multiplication; pointer reads and alignment checks follow, including for zero-length copies.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Miri.Interpreter.Intrinsics.copy {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (source dest count : OpTy P) (nonoverlapping : Bool) :
          Equations
          Instances For
            def Miri.Interpreter.Intrinsics.writeBytes {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (dest byte count : OpTy P) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Miri.Interpreter.Intrinsics.compareBytes {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (left right count : OpTy P) :
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Miri.Interpreter.Intrinsics.rawEq {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (left right : OpTy P) :
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Miri.Interpreter.Intrinsics.typedSwap {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (left right : OpTy P) :
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Miri.Interpreter.Intrinsics.pointerOffsetFrom {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (a b : OpTy P) (pointee : MIR.TyId) (unsigned : Bool) (dest : V) :

                    Core ptr_offset_from computes addresses only for address provenance, or common-allocation offsets otherwise; both directed ranges must be valid.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def Miri.Interpreter.Intrinsics.floatIntrinsic {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (name : String) (args : Array (OpTy P)) (dest : V) :

                      Portable suffixed float intrinsic families, including genuinely fused FMA. Only the machine's choice of fusion/equal operand/NaN remains effectful.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Miri.Interpreter.Intrinsics.eval {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (name : String) (types : Array MIR.TyId) (args : Array (OpTy P)) (dest : V) (ret : Option MIR.BasicBlockId) :

                        Source handled-result distinction: false permits the compiler's intrinsic MIR fallback. This never manufactures a successful result for an unknown name.

                        Instances For
                          def Miri.Interpreter.Intrinsics.arithmetic {P S C V : Type} [Memory.PointerProvenance P] (h : IntrinsicHooks P S C V) (choice : C) (op : MIR.BinOp) (left right : OpTy P) (dest : V) :

                          MIR fallback arithmetic uses the existing concrete scalar engine; intrinsic names that the pinned dispatcher does not intercept must enter that fallback rather than acquiring invented dispatcher behavior.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def Miri.Interpreter.Intrinsics.memoryCopyAdapter {K P E H PE : Type} {C : Sort u_1} [DecidableEq K] (target : ABI.TargetDataLayout) (hooks : Memory.MemoryCopyHooks P E K H PE) (classifyError : Memory.MemoryLifecycleError → StepError) (choice : C) (source dest : Memory.Pointer (Option P)) (size : ABI.Size) (nonoverlapping : Bool) :

                            Actual memory-copy primitive adapter, preserving updated memory and machine state even on failure. Error classification is an explicit required boundary.

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

                              Source statement intrinsics preserve operand evaluation order and UB.

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