mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
GH-111485: Allow arbitrary annotations on instructions and micro-ops. (GH-111697)
This commit is contained in:
parent
13405ecffd
commit
931f4438c9
10 changed files with 114 additions and 63 deletions
|
|
@ -651,7 +651,10 @@ class Generator(Analyzer):
|
|||
expansions: list[tuple[str, int, int]] = [] # [(name, size, offset), ...]
|
||||
for part in parts:
|
||||
if isinstance(part, Component):
|
||||
# All component instructions must be viable uops
|
||||
# Skip specializations
|
||||
if "specializing" in part.instr.annotations:
|
||||
continue
|
||||
# All other component instructions must be viable uops
|
||||
if not part.instr.is_viable_uop():
|
||||
# This note just reminds us about macros that cannot
|
||||
# be expanded to Tier 2 uops. It is not an error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue