[flang-commits] [flang] [flang] Inherit target specific code for BIND(C) types on Windows (PR #129579)
Markus Mützel via flang-commits
flang-commits at lists.llvm.org
Thu Mar 6 05:32:26 PST 2025
mmuetzel wrote:
Maybe, a relevant part:
> [__m128](https://learn.microsoft.com/en-us/cpp/cpp/m128?view=msvc-170) types, arrays, and strings are never passed by immediate value. Instead, a pointer is passed to memory allocated by the caller. Structs and unions of size 8, 16, 32, or 64 bits, and __m64 types, are passed as if they were integers of the same size. Structs or unions of other sizes are passed as a pointer to memory allocated by the caller. For these aggregate types passed as a pointer, including __m128, the caller-allocated temporary memory must be 16-byte aligned.
I don't think I'll be able to implement that (unless with a lot of hand-holding).
I'd very much appreciate if someone else could take that on. In which case, feel free to close this.
https://github.com/llvm/llvm-project/pull/129579
More information about the flang-commits
mailing list