This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] add helper function to create arbitrary libcalls
ClosedPublic

Authored by gargaroff on Mar 26 2020, 7:07 AM.

Details

Summary

The existing helper function can only create a libcall to functions available in
RTLIB. Add a helper function that can create a libcall to a given function name
using the provided calling convention.

Diff Detail

Event Timeline

gargaroff created this revision.Mar 26 2020, 7:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2020, 7:07 AM

Our downstream target requires this function to lower llvm.trap to a libcall to abort.

arsenm accepted this revision.Mar 26 2020, 7:41 AM
This revision is now accepted and ready to land.Mar 26 2020, 7:41 AM