Skip to content

Commit 8efe84c

Browse files
committed
feat: add to different passes
1 parent 1a142d1 commit 8efe84c

36 files changed

Lines changed: 890 additions & 906 deletions

libs/@local/hashql/eval/src/context.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ impl<'ctx, 'heap, A: Allocator> CodeGenerationContext<'ctx, 'heap, A> {
8080
Source::Ctor(_)
8181
| Source::Closure(_, _)
8282
| Source::Thunk(_, _)
83-
| Source::Intrinsic(_) => continue,
83+
| Source::Intrinsic(_)
84+
| Source::Synthetic(_) => continue,
8485
Source::GraphReadFilter(_) => {}
8586
}
8687

libs/@local/hashql/eval/tests/ui/postgres/comparison-no-cast.aux.mir

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/dict-construction.aux.mir

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/entity-archived-check.stdout

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/list-construction.aux.mir

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/mixed-sources-filter.stdout

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/opaque-passthrough.aux.mir

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/struct-construction.aux.mir

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/eval/tests/ui/postgres/tuple-construction.aux.mir

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/@local/hashql/mir/src/body/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ pub enum Source<'heap> {
7878
/// operation is handled directly by the compiler or runtime.
7979
Intrinsic(Intrinsic),
8080

81+
/// A compiler-synthesized wrapper that makes a non-first-class operation callable as a
82+
/// closure value.
83+
///
84+
/// The [`Symbol`] identifies the canonical path of the wrapped operation
85+
/// (e.g. `::core::math::add`). The body takes the operation's parameters (with a unit
86+
/// environment as the first argument per the fat closure ABI) and performs the operation.
87+
///
88+
/// Synthetic bodies are always inlined and participate in administrative reduction.
89+
Synthetic(Symbol<'heap>),
90+
8191
/// A filter closure for graph read operations.
8292
///
8393
/// This variant represents MIR generated from a closure expression used to

0 commit comments

Comments
 (0)