This is an archive of the discontinued LLVM Phabricator instance.

[Mips] Implement shouldSignExtI32Param hook.
AbandonedPublic

Authored by koriakin on Jun 28 2016, 11:10 AM.

Details

Summary

On Mips, i32 parameters corresponding to C-level int or unsigned int
need signext attribute. Fill the hook so that LLVM passes inserting
library calls with such parameters know to use the attribute.

Diff Detail

Repository
rL LLVM

Event Timeline

koriakin retitled this revision from to [Mips] Implement shouldSignExtI32Param hook..
koriakin updated this object.
koriakin added a reviewer: dsanders.
koriakin set the repository for this revision to rL LLVM.
koriakin added a subscriber: llvm-commits.
dsanders accepted this revision.Jun 29 2016, 2:35 AM
dsanders edited edge metadata.

As I mentioned on the original patch, the parameter side of it looks correct but the return side looks wrong to me. However, you're right that the returns match the current behaviour of clang so I'll give this an LGTM and if my suspicion about clang's behaviour being wrong turns out to be correct then we can fix both of these at the same time.

This revision is now accepted and ready to land.Jun 29 2016, 2:35 AM
koriakin abandoned this revision.Nov 23 2016, 6:16 AM

Abandoning in favor of D21739.