bytecodealliance / target-lexicon

Target "triple" support
Apache License 2.0
48 stars 41 forks source link

Add a different calling-convention for Mac Aarch64 #69

Closed bnjbvr closed 3 years ago

bnjbvr commented 3 years ago

MacOS Aarch64 uses the same ARM64 calling convention with tweaks: https://developer.apple.com/documentation/xcode/writing_arm64_code_for_apple_platforms

Returning a different default CallingConvention for this triple would be a nice way to signal users that they might require handling it particularly.

sunfishcode commented 3 years ago

Makes sense! I've now submitted #70 to implement this.