[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 1 15:14:27 PDT 2025
================
@@ -35,6 +38,13 @@ bool isValidFundamentalIntWidth(unsigned width);
/// void, or abstract types.
bool isSized(mlir::Type ty);
+//===----------------------------------------------------------------------===//
+// AddressSpace helpers
+//===----------------------------------------------------------------------===//
+
+/// Returns the integer value of a CIR address space for LLVM.
+unsigned getTargetAddrSpaceFromAttr(cir::TargetAddressSpaceAttr attr);
----------------
andykaylor wrote:
This isn't necessary. You can just retrieve the value directly from the attribute.
https://github.com/llvm/llvm-project/pull/161028
More information about the cfe-commits
mailing list