This is an archive of the discontinued LLVM Phabricator instance.

Add missing builtins to the PPC back end for ABI compliance (vol. 2)
ClosedPublic

Authored by nemanjai on Jul 1 2015, 10:34 AM.

Details

Summary

Back end portion of the second round of additions to altivec.h.

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai updated this revision to Diff 28878.Jul 1 2015, 10:34 AM
nemanjai retitled this revision from to Add missing builtins to the PPC back end for ABI compliance (vol. 2).
nemanjai updated this object.
nemanjai edited the test plan for this revision. (Show Details)
nemanjai set the repository for this revision to rL LLVM.
nemanjai added a subscriber: Unknown Object (MLST).
wschmidt accepted this revision.Jul 1 2015, 10:44 AM
wschmidt edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jul 1 2015, 10:44 AM
echristo accepted this revision.Jul 1 2015, 10:49 AM
echristo edited edge metadata.

One inline comment and then LGTM.

-eric

test/CodeGen/PowerPC/vsx-elementary-arith.ll
121–136

Hrm. I'd suggest running this through the optimizer but since it's just using locals that don't have external visibility it might not work. Though if the instruction selector ever does any DCE on allocas then there's going to be a problem here. Might want to have it take arguments and return something?

nemanjai added inline comments.Jul 1 2015, 2:06 PM
test/CodeGen/PowerPC/vsx-elementary-arith.ll
121–136

OK, I'll split this up into two functions that return the result of the call to the builtin. Please let me know if you agree with that approach.

Sure. Sounds good.

-eric

nemanjai closed this revision.Jul 4 2015, 11:36 PM

Committed revision 241398.