Function attribute like hlsl.shader is not needed after DXILTranslateMetadata pass.
And it should be removed for DXIL.
So remove it once the information is collect.
Paths
| Differential D144659
[DirectX backend] remove hlsl.* FnAttr after use. Needs ReviewPublic Authored by python3kgae on Feb 23 2023, 11:04 AM.
Details
Diff Detail
Event Timeline
Revision Contents
Diff 504261 llvm/lib/Target/DirectX/DXILMetadata.cpp
llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
llvm/test/CodeGen/DirectX/hlsl_attr.ll
|
I'm not sure I understand this refactoring... It looks like you're trying to avoid looking up the attribute more than once, but it means you're keeping track of the Attribute and passing it around through layers... I'm not convinced that is beneficial.