[PATCH] D151022: [llvm-exegesis] Introduce SubprocessMemory Utility Class
Aiden Grossman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 23:06:33 PDT 2023
aidengrossman added inline comments.
================
Comment at: llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp:68-70
+ // fill the last section
+ memcpy(SharedMemoryMapping + CurrentByte, MemVal.Value.getRawData(),
+ MemVal.Size - CurrentByte);
----------------
courbet wrote:
> Is there a use case for fractions of the value size ?
There isn't any especially prominent use case that I had. In the original RFC I mentioned that we had decided on making memory definitions repeat until they filled the size of the definition, getting truncated if the quotient wasn't an integer. There wasn't any strong reason for this, but I figured the flexibility/ease of use improvements might come in handy for someone at some point.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151022/new/
https://reviews.llvm.org/D151022
More information about the llvm-commits
mailing list