This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC] Use CreateMemTransferInst more
ClosedPublic

Authored by urnathan on Aug 3 2023, 5:06 AM.

Details

Summary

Rather than have distinct implementations of memcpy.inline and memmove creators, just use the existing CreateMemTransferInst, which plain
memcpy already uses. The AMD backend already generates memmove from that function.

Replace the existing API with forwarding functions.

Guillaume, you seem to have touched these most recently?

Diff Detail

Event Timeline

urnathan created this revision.Aug 3 2023, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 5:06 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
urnathan requested review of this revision.Aug 3 2023, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 5:06 AM
gchatelet accepted this revision.Aug 3 2023, 6:09 AM

LGTM, thx for the cleanup Nathan!

This revision is now accepted and ready to land.Aug 3 2023, 6:09 AM
jroelofs accepted this revision.Aug 3 2023, 9:26 AM

LGTM

This revision was automatically updated to reflect the committed changes.