[llvm] [InferAddressSpaces] Add a TTI hook for address space joins (PR #225161)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 11:55:23 PDT 2026
================
@@ -565,6 +565,11 @@ class TargetTransformInfo {
/// optimize away.
LLVM_ABI unsigned getFlatAddressSpace() const;
+ /// Return the most specific common address space containing AS1 and AS2.
+ /// Pointers from either input space must be convertible to the result with
+ /// addrspacecast.
----------------
AlexMaclean wrote:
Yes, I've updated the comment to include this.
https://github.com/llvm/llvm-project/pull/225161
More information about the llvm-commits
mailing list