[llvm-dev] target ABI: call parameters handling

Ulrich Weigand via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 6 09:14:55 PDT 2021



"Reid Kleckner" <rnk at google.com> wrote on 06.10.2021 04:31:15:

> Well, the annotation isn't strictly necessary. The backend can
> choose to emit an extension for short integer arguments in the
> absence of annotations.

As I commented in another mail, unfortunately this is not true.
To ensure correct codegen in all cases, we need to know *which*
extension the callee expects: zero- or sign-extension.  The
backend cannot know this without being told by the frontend.


Bye,
Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211006/fda601d0/attachment.html>


More information about the llvm-dev mailing list