[llvm] [RFC] Extend MemoryEffects to Support Target-Specific Memory Locations (PR #148650)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 29 01:56:40 PDT 2025


================
@@ -56,6 +56,11 @@ enum class ModRefInfo : uint8_t {
 /// Debug print ModRefInfo.
 LLVM_ABI raw_ostream &operator<<(raw_ostream &OS, ModRefInfo MR);
 
+enum class InaccessibleTargetMemLocation {
----------------
CarolineConcatto wrote:

Hi @antoniofrighetto,
I think your suggestion need me to change the way Memory Location is implemented.
However I did follow @nikic's solution(or I think I did) and create a generic name for the target memory locations, and they are printed according to Triple.  I think this makes It generic enough. 
Let me know what you think about the latest change. 
I have some follow up patches :
https://github.com/llvm/llvm-project/pull/154141
https://github.com/llvm/llvm-project/pull/154144
https://github.com/llvm/llvm-project/pull/155590
that I will rebase once this patch is merged.

https://github.com/llvm/llvm-project/pull/148650


More information about the llvm-commits mailing list