[LLVMdev] signext on function parameters and return.

Steve King steve at metrokings.com
Thu Jul 23 13:25:35 PDT 2015


On Thu, Jul 23, 2015 at 3:59 AM, Daniel Sanders
<Daniel.Sanders at imgtec.com> wrote:
>
> The target hook is classifyArgumentType() and classifyReturnType() in tools/clang/lib/CodeGen/TargetInfo.cpp and returning ABIArgInfo::getExtend() causes the signext/zeroexts to be emitted appropriately for the type.

Thanks for the great help.  Should these classify calls be moved down
into the ABIInfo base class?  They also are not marked virtual yet
targets are expected override as needed.



More information about the llvm-dev mailing list