Open acl-cqc opened 1 week ago
Attention: Patch coverage is 85.77406%
with 34 lines
in your changes missing coverage. Please review.
Project coverage is 87.03%. Comparing base (
320a9a7
) to head (79da288
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
closes #388
much less pain than the previous attempt #734 but there is still some pain for FuncDefn's (as there was always going to be) - that's #1237.
Includes adding new variants of
block_builder
,entry_builder
,simple_entry_builder
andconditional_builder
: the default version omits the extension set parameter, the_exts
variant takes an extra parameter (being an ExtensionSet).simple_block_builder
is untouched (as it takes a FunctionType, so can useft1
/ft2
)exts: impl Into<Option<ExtensionSet>>
. This would mean we'd writeNone
for inference, rather than (in this PR) an extra_exts
when we don't want inference.Into<Option<ExtensionSet>>
) would allow us to provideimpl<T: Into<ExtensionSet>> OurExtensionSetTrait for T
so we can use the usefulInto<ExtensionSet>
s that we have, alongsideimpl OurExtensionSetTrait for Option
so we could still writeNone
.exts: impl Into<ExtensionSet>
and define some top-levelconst INFER
of a type that implsInto<ExtensionSet>
(producingExtensionSet::singleton(TO_BE_INFERRED)
). Then for inference you'd writeINFER
._exts
is a good trade, writing nothing at all beats writingNone
orINFER
We'll need similar updates to
cfg_builder
,tail_loop_builder
,ConditionalBuilder::new
andTailLoopBuilder::new
but I'll leave those for another PR, there's quite enough here ;)BREAKING CHANGE: (1) container-node extension-deltas will need to be enlarged to include ops therein; for FuncDefn this will have to be manually specified but TO_BE_INFERRED (or
ft1
/ft2
from #1219) works for other containers. (2)block_builder
,entry_builder
,simple_entry_builder
andconditional_builder
no longer take an ExtensionSet; either drop the argument or use the..._exts
variant.