================ @@ -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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
