[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)
Zibi Sarbinowski via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 06:37:19 PDT 2024
================
@@ -224,6 +252,19 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo {
std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
return std::make_pair(256, 256);
}
+
+ uint64_t getPointerWidthV(LangAS AddrSpace) const override {
+ unsigned TargetAddrSpace = getTargetAddressSpace(AddrSpace);
+ return (TargetAddrSpace == ptr32 && getTriple().isOSzOS() &&
+ getTriple().isArch64Bit())
----------------
zibi2 wrote:
```suggestion
return (getTriple().isOSzOS() && getTriple().isArch64Bit() &&
getTargetAddressSpace(AddrSpace) == ptr32)
```
https://github.com/llvm/llvm-project/pull/96063
More information about the cfe-commits
mailing list