mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 23:16:20 +00:00
AMDGPU: Print more fields in comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e67289a03
commit
dc3ae09deb
@ -179,11 +179,22 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
OutStreamer->emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize),
|
OutStreamer->emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize),
|
||||||
false);
|
false);
|
||||||
|
|
||||||
const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
|
|
||||||
|
|
||||||
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:USER_SGPR: " +
|
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:USER_SGPR: " +
|
||||||
Twine(MFI->NumUserSGPRs),
|
Twine(G_00B84C_USER_SGPR(KernelInfo.ComputePGMRSrc2)),
|
||||||
false);
|
false);
|
||||||
|
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:TGID_X_EN: " +
|
||||||
|
Twine(G_00B84C_TGID_X_EN(KernelInfo.ComputePGMRSrc2)),
|
||||||
|
false);
|
||||||
|
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:TGID_Y_EN: " +
|
||||||
|
Twine(G_00B84C_TGID_Y_EN(KernelInfo.ComputePGMRSrc2)),
|
||||||
|
false);
|
||||||
|
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:TGID_Z_EN: " +
|
||||||
|
Twine(G_00B84C_TGID_Z_EN(KernelInfo.ComputePGMRSrc2)),
|
||||||
|
false);
|
||||||
|
OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: " +
|
||||||
|
Twine(G_00B84C_TIDIG_COMP_CNT(KernelInfo.ComputePGMRSrc2)),
|
||||||
|
false);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
|
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
|
||||||
OutStreamer->emitRawComment(
|
OutStreamer->emitRawComment(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user