Commit 58d95aec authored by Kunshan Wang's avatar Kunshan Wang

Loosen requirement of "id_of" and "name_of".

So that the micro VM implementation does not have to record the IDs and
names for many local things, such as instruction results and clauses.
These things are numerous, but the API cannot do anything on them. Not
forcing the micro VM to record their IDs/names can save much space.
parent 39b629ad
......@@ -261,8 +261,13 @@ The ``newcontext`` function creates a new client context.
MuName (*name_of)(MuVM *mvm, MuID id);
The ``id_of`` function looks up the corresponding ID by a name. The ``name_of``
function looks up the name by an ID. Looking up names or IDs that do not exist
has undefined behaviour.
function looks up the name by an ID.
Looking up names or IDs that do not exist has undefined behaviour.
It has implementation-defined behaviour to look up names or IDs of entities
other than *top-level entities*, *function versions* and *OSR-point
instructions*.
::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment