| Issue |
183083
|
| Summary |
[AMDGPU] Add Serialized Handles For All Kernel Descriptor Fields in `SIMachineFunctionInfo`
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
matinraayai
|
There are a few fields in AMD HSA's kernel descriptor that don't have a high-level handle in the `SIMachineFunctionInfo` and are only controllable through assembler directives. More specifically, in the following code that I wrote to create a new `Function`/`MachineFunction` handle by parsing a kernel descriptor, the fields that I've designated as "fixed after the assembly is printed" don't have a way to be controlled in the `SIMachineFunctionInfo`:
https://github.com/matinraayai/Luthier/blob/12abda43c676fd284239b2e96dd59eed955efce1/src/lib/ToolingCommon/CodeDiscoveryPass.cpp#L113-L396
It would be great if all fields in the KD have a direct handle in `SIMachineFunctionInfo` to be set. If there are cases the AMDGPU backend doesn't want to provide that handle in the `SIMachineFunctionInfo`, I can indeed fixup the kernel descriptor once I re-print the assembly.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs