Unverified Commit 86842e1f authored by Jun Wang's avatar Jun Wang Committed by GitHub
Browse files

[AMDGPU] New clang option for emitting a waitcnt instruction after each memory instruction (#79236)



This patch introduces a new command-line option for clang, namely,
amdgpu-precise-mem-op (or precise-memory in the backend). When this option is specified, a waitcnt
instruction is generated after each memory load/store instruction. The
counter values are always 0, but which counters are involved depends on
the memory instruction.

---------

Co-authored-by: default avatarJun Wang <jun.wang7@amd.com>
parent f27f3697
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment