Repository navigation
[xlscc] Use (item, valid) tuple type for masked non-blocking receives - #5540
Draft
copybara-service[bot] wants to merge 1 commit into
Draft
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
In `Translator::AddOpToChannel`, the masked path (taken for a channel op translated under a known-zero condition via `do_default_mask`, or while IO is masked, for example during the trial run that precedes a partially unrolled loop) constructed `op.input_value` using `channel->item_type` even for non-blocking receives, whose input value is the `(item, bool)` tuple. The `CValue` type check then aborted translation whenever a non-blocking read was masked. Build the masked `op.input_value` with `param_type`, matching the unmasked path below, and return `UnimplementedError` if a masked `OpType::kSharedCall` (which has a null channel) reaches `AddOpToChannel`. Add tests for a non-blocking read under a constant-false condition and under a runtime condition inside a trial-unrolled loop. Both abort with the previous item type. PiperOrigin-RevId: 1002542470
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[xlscc] Use (item, valid) tuple type for masked non-blocking receives
In
Translator::AddOpToChannel, the masked path (taken for a channelop translated under a known-zero condition via
do_default_mask, orwhile IO is masked, for example during the trial run that precedes a
partially unrolled loop) constructed
op.input_valueusingchannel->item_typeeven for non-blocking receives, whose input valueis the
(item, bool)tuple. TheCValuetype check then abortedtranslation whenever a non-blocking read was masked.
Build the masked
op.input_valuewithparam_type, matching theunmasked path below, and return
UnimplementedErrorif a maskedOpType::kSharedCall(which has a null channel) reachesAddOpToChannel.Add tests for a non-blocking read under a constant-false condition and
under a runtime condition inside a trial-unrolled loop. Both abort with
the previous item type.