This is frontend patch for the issue : 62536 . This patch adds -p270:32:32-p271:32:32-p272:64:64 to the aarch64 data layout string, which are used in X86 for implementing mixed pointer sizes. This patch also changes the datalayout string in aarch64 backend target, because the datalayout specified in the frontend has to match the backend target datalayout.
Additionally, the patch adds changes to clang/basic/target/aarch64 for the correct size of the pointer and its address in the IR. The address spaces: 270,271 and 271 already choised in X86 platform.