[PATCH] D27050: [X86] Add explicit regparm flag for X86-32 calling convention.

Michael Kuperstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 11:07:22 PST 2016


mkuper added a comment.

This is the most definitive description of the MCU ABI I'm aware of:
https://raw.githubusercontent.com/wiki/hjl-tools/x86-psABI/iamcu-psABI-0.7.pdf

See the example in table 2.5.
To the best of my understanding, -mregparm=3 should pass "s" on the stack, not in register.


https://reviews.llvm.org/D27050





More information about the llvm-commits mailing list