Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-134294: FixUop.replicated field definition and usage#134295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sobolevn wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromsobolevn:issue-134294
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletionsTools/cases_generator/analyzer.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,7 +182,7 @@ class Uop:
properties: Properties
_size: int = -1
implicitly_created: bool = False
replicated = 0
replicated: int = 0
replicates: "Uop | None" = None
# Size of the instruction(s), only set for uops containing the INSTRUCTION_SIZE macro
instruction_size: int | None = None
Expand DownExpand Up@@ -866,6 +866,11 @@ def make_uop(
inputs: list[parser.InputEffect],
uops: dict[str, Uop],
) -> Uop:
replicated = 0
for anno in op.annotations:
if anno.startswith("replicate"):
replicated = int(anno[10:-1])
break
result = Uop(
name=name,
context=op.context,
Expand All@@ -875,12 +880,9 @@ def make_uop(
local_stores=find_variable_stores(op),
body=op.block,
properties=compute_properties(op),
replicated=replicated,
)
for anno in op.annotations:
if anno.startswith("replicate"):
result.replicated = int(anno[10:-1])
break
else:
if result.replicated == 0:
return result
for oparg in range(result.replicated):
name_x = name + "_" + str(oparg)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp