This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][NFC] Gardening: Make translateSimpleUnaryIntrinsic general
ClosedPublic

Authored by paquette on Feb 11 2019, 3:12 PM.

Details

Summary

Instead of only having this code work for unary intrinsics, have it work for an arbitrary number of parameters.

Factor out the cases that fall under this (fma, pow).

This makes it a bit easier to add more intrinsics which don't require any special work.

Diff Detail

Repository
rL LLVM

Event Timeline

paquette created this revision.Feb 11 2019, 3:12 PM
arsenm accepted this revision.Feb 11 2019, 4:03 PM

LGTM

This revision is now accepted and ready to land.Feb 11 2019, 4:03 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2019, 9:38 AM