[PATCH] D123878: [AMDGPU] Add remarks to output some resource usage

Vang Thao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 27 17:46:30 PDT 2022


vangthao updated this revision to Diff 440447.
vangthao added a comment.

Remove "--------" delimiter. Change ScratchSize [bytes/thread] to ScratchSize [bytes/lane]. Use lambda expression to emit remarks. Do not output yaml if specific remark is not enabled. Add indentation to make it easier to tell which resource usage remark belong to which kernel.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123878/new/

https://reviews.llvm.org/D123878

Files:
  clang/test/Frontend/amdgcn-machine-analysis-remarks.cl
  llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
  llvm/lib/Target/AMDGPU/SIProgramInfo.h
  llvm/test/CodeGen/AMDGPU/resource-optimization-remarks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123878.440447.patch
Type: text/x-patch
Size: 13753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220628/e11ce49c/attachment.bin>


More information about the cfe-commits mailing list