-
v0.25.0
Stablereleased this
2026-09-01 23:56:22 -07:00 | 235 commits to master since this releaseStruct members —
s.field,reg2hw.ctrl.qand the anonymous
aggregates resolve.typedef struct packed {…} bus_t; bus_t s; s.fieldrecorded nothing.
The in-file gap was a single resolver gate: a struct typedef's member
scope already existed, hung off the typedef, and lookup simply never
entered it. Now any symbol whose child scope is a struct scope — a
typedef, an anonymousstruct {…} s;declarator, or an inline nested
field — answers member access with one rule, and fields carry their
own type sos.hdr.addrhops through a member. Unions are the same
node. Anonymousenum {A, B} x;variants land in the enclosing scope
exactly like typedef'd ones (the open handshake since types-decls).Across files, struct members are exported under the typedef's name,
and inline nested fields — the shape opentitan's generated register
packages use everywhere — under a synthesizedowner.fieldkey
carried as the field's type, sohw2reg.status.txfull.dlands on
txfull'sdand neverrxfull's two lines up (bare-name keys would
collide onq/d/qein every register package). Same-named struct
typedefs in two packages answer ambiguity, never a guess.FACTS_FORMAT
8 → 9 (older stores rebuild once);typeDefinitionworks inside a
typedef structbody.Unresolved names on the corpus fell 1 203 → 1 162; its store shrank
1.1 % (a resolved local fact encodes smaller than the external
candidate it replaced) while opentitan's register packages grow theirs
4.3 %. QA: 28 live opentitan probes across six IPs with three planted
sibling-field pairs, zero wrong answers, hover under 0.5 ms. Known
remaining shape: an indexed link mid-chain (reg2hw.key_share0[i].q),
pre-existing and filed.Downloads