Documentation

Miri.Input.CallResolution

Internal reuse of actual rustc instance-resolution and FnAbi query results. Complete instance arguments and shared definition/type-constant tables are kept. Missing/ambiguous/conflicting queries remain errors. This is not a compiler instance solver or Miri's foreign-function/shim dispatcher.

@[reducible, inline]
Equations
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

        Immutable conversion memo tied to the exact runtime value and its exact shared-graph inputs. Its sole constructor proves the entries equal a fresh build, so callers cannot install fabricated ABI results.

        Instances For

          Prepare the memo for all shared-graph FnAbi candidates in this runtime.

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

            Prepare the memo for all shared-graph FnAbi candidates in this runtime.

            Equations
            Instances For

              Decode and convert a raw compiler FnAbi through the checked shared cache. Without a cache, retain the direct decoder/converter path for manually constructed runtime contexts.

              Equations
              Instances For
                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
                      Instances For
                        Instances For
                          Instances For

                            Prepare call-resolution tables using the already validated immutable runtime metadata for this program's unchanged ImportDocument. Compiler tables may grow during preparation, but CompilerGlobals.prepareProgram changes only the lowered bundle and leaves that document untouched.

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

                              Prepare call-resolution tables using validated runtime metadata.

                              Equations
                              Instances For

                                Standalone compatibility path: validate RuntimeMetadata before resolving instances or call-site queries, preserving the historical error order.

                                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

                                    Function operand identity is checked in addition to body and block. Source sites are compiler-table indices, never diagnostic span matches.

                                    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

                                        A loaded body carries the exact source table key. Equal MIR syntax does not make distinct root/template/promoted/instance body identities interchangeable.

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

                                          Compatibility syntax-only view of the exact loaded body. It retains the same unique-key and instantiation checks; equal bodies are not merged.

                                          Equations
                                          Instances For
                                            def Miri.Input.CallResolution.bindAbi {S P C E Other Extern : Type} (prepared : Prepared) (compatibility : CallCompatibility.Evidence S) (budget : Nat) (base : Interpreter.CallHooks P S C E Other Extern (ABI.FnAbi TypeId) (ABI.ArgAbi TypeId)) :

                                            Replace only ABI leaves with complete compiler records and source layout compatibility. Machine dispatch, target features, caller locations, pointer resolution and actual body interception remain required in the supplied hooks.

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