Skip to content

merge queue: checking #2390 + #2407 together on master (7957539) - #2468

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/f9a2d43ca9
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/f9a2d43ca9

Conversation

@mergify

@mergify mergify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch wistful-fondue-szlgel of the changes queue, to test #2390 and #2407 before they merge into master. Pushing to this branch or closing this pull request removes them from the queue.

What this draft tests

Mergify checks that #2390 and #2407 still pass CI on top of master. CI runs on this draft's code, built in this order:

  1. master at 7957539
  2. #2390 + #2407, the pull requests of this batch, tested together as one tip

🎉 Where it stands: checks passed

CI passed on this draft.

Follow the changes queue in the dashboard

What happens next

  • Mergify merges #2390 and #2407 into master and closes this draft.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 7957539dc7e4c5862f72ba13dba495eb085f5072
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2390
    scopes:
      - core
  - number: 2407
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#2390 [⛓️ feat(sv): implement enumerated type methods #2390]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
Required conditions to stay in the queue

tignear and others added 4 commits October 29, 2026 00:58
Enum-typed expressions accept `first`, `last`, `next(N)`, `prev(N)`, `num`
and `name` (IEEE 1800-2023 6.19.5), with or without parentheses (6.19.5.7),
on variables, array and container elements, class properties, static
properties, function and method results, casts, enum constants and the
results of other enum methods.

Types now carry the members of an enumeration with their names, base
width, signedness and state count. The methods bind to a new
`Callee::Lookup` IR call that evaluates its selector once and returns the
value of the first key it matches by case equality, else a default; the
frontend lowers it to multiplexers whose selector copies share one node.
A receiver with side effects therefore runs once, and only designs that
call these methods pay for them.

`next`/`prev` wrap around and take the count modulo the number of
members; a value that is no member, including one with unknown bits,
gives the base type's default initial value ('x for a 4-state base,
Table 6-7). `name` returns the empty string for such a value (6.19.5.6).

Change-Id: Icf20fb1bef13ec48958bd50e14f82790e72f516a
A static local of a process may now have a run-time initializer, such as
`string s = v.name();` or `C h = new;`. IEEE 1800-2023 6.8 allows any
run-time expression and runs it once, before any initial or always
procedure starts; Celox runs it, in declaration order, in the existing
time-zero initializer process, and keeps the local (and every static local
it reads) as module storage. An initializer that reads an automatic
variable could only run on each entry and is still rejected, as are
non-constant initializers of function statics.

IEEE 1800-2023 6.21 says that "an explicit static keyword shall be
required when an initialization value is specified as part of a static
variable's declaration". Celox already accepts the keyword-less form with
a constant initializer, and existing sources (including the sv-tests case
6.19.5.6) omit it, so a keyword-less run-time initializer is accepted in a
procedure that runs once, such as `initial`, where running it at time zero
instead of on entry cannot repeat. In an `always` procedure it stays
rejected, because its author likely meant it to run on every entry; the
`static` keyword states the intent there.

sv-tests: 6.19.5.6 enum_name, 8.7 constructor and 8.7 constructor_param
now pass in both state modes.

Change-Id: I99990f956dd5985eb2d1087631ae1f918f2bbd0a
@mergify mergify Bot closed this Oct 28, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/f9a2d43ca9 branch October 28, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant