This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Add IR translation support for the @llvm.log10 intrinsic
ClosedPublic

Authored by paquette on Dec 6 2018, 3:30 PM.

Details

Summary

This adds support for @llvm.log10 and updates relevant tests.

Basically identical to the existing log intrinsics.

Diff Detail

Event Timeline

paquette created this revision.Dec 6 2018, 3:30 PM
aemerson accepted this revision.Dec 7 2018, 10:40 AM

LGTM.

This revision is now accepted and ready to land.Dec 7 2018, 10:40 AM

Thanks. This patch looks good. Would be nice if there's test to make sure the G_FLOG10 is being selected as well.

The patch title should probably say adding IR translation support instead of selection support. If we're adding selection support too then we should have a test case, otherwise it can be in a later patch.

paquette retitled this revision from [GlobalISel] Add instruction selection support for the @llvm.log10 intrinsic to [GlobalISel] Add IR translation support for the @llvm.log10 intrinsic.Dec 7 2018, 2:03 PM

@aemerson is right here. I got mixed up because I was just working through -Rpass-missed=gisel-select remarks in a test.