-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] GISelShouldIgnore .td uses #90005
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added a new DAGISelShouldIgnore property to class Instruction in Target.td, similar to FastISelShouldIgnore. This allows one to avoid a record's DAGISel .td implementation and .inc generation.
This test ensures no .inc code is generated in the MatcherTable for the corresponding marked .td record.
…ble pattern imports in GISel Via `let ISelShouldIgnore = 1`, a Pattern record can be disabled to skip pattern warnings in GlobalISel.
This test ensures the MatchTable has no patterns marked with GISelShouldIgnore.
The intended usage of ShouldIgnore is to disable warnings. This test checks the .inc Emitter output of GISel only. So we can remove it here.
Otherwise, the DAG is affected.
Apply the new bit to Pattern records to avoid warnings from -warn-on-skipped-patterns. This still needs formatting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most or all of these shouldn't be added. The point is to silence the warnings for cases where we never want to import them. This is just hiding the useful warnings
It definitely isn't all because this applies ShouldIgnore to each (and every) skipped GI Pattern that we have. At least one Pattern'd be bound to require this (forever!)... will need to examine them more closely; you mentioned some time back that it should be only for patterns applied to scalars, correct? This commit is surely more than that, so will make the next one more precise and include only those. |
Nothing about scalars, it's about usage intent. I think there were some pseudos we bypass which we don't need the pattern. I haven't looked at the -warn-on-skipped patterns output in a while so I don't remember what the obvious cases are |
I see. Alright, let's see then... |
Probably should just abandon this. We definitely do not want to blindly throw this on everything that fails to import. This is reserved as a tool for whenever someone is aiming for 100% pattern coverage |
Okay, that is good thinking since we do not want to commit this actually; ... closed it. It can be used as a reference of all |
#88382 implements the new bit for
class Pattern
inTargetSelectionDAG.td
.This applies it to all affected Pattern records with a
warning: Skipped pattern:
from-warn-on-skipped-patterns
.