This is an archive of the discontinued LLVM Phabricator instance.

[X86] Custom emit __builtin_rdtscp so we can emit an explicit store for the out parameter
ClosedPublic

Authored by craig.topper on Sep 7 2018, 11:02 AM.

Details

Summary

This is the clang side of D51803. The llvm intrinsic now returns two results. So we need to emit an explicit store in IR for the out parameter. This is similar to addcarry/subborrow/rdrand/rdseed.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Sep 7 2018, 11:02 AM
RKSimon accepted this revision.Sep 7 2018, 11:42 AM

LGTM - The lack of existing tests is worrying.....

This revision is now accepted and ready to land.Sep 7 2018, 11:42 AM
This revision was automatically updated to reflect the committed changes.