[llvm-dev] [clang] sign extension of parameters
Craig Topper via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 19 10:21:11 PDT 2021
I believe it is done by calling ABIArgInfo::getExtend in the ABI handling
in clang/lib/CodeGen/TargetInfo.cpp. This will add a signext or zeroext
attribute to the argument in IR. The backend can use this to insert the
On Tue, Oct 19, 2021 at 10:14 AM Bagel via llvm-dev <llvm-dev at lists.llvm.org>
> My target is 64-bit only, it has no 32-bit operations other than LD/ST.
> Parameters need to be sign or zero extended. Where in clang does one
> that for a target?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev