This is an archive of the discontinued LLVM Phabricator instance.

[IRBuilder] Make createCallHelper a member function. NFC.
ClosedPublic

Authored by foad on Jul 29 2022, 2:34 AM.

Details

Summary

This just avoids explicitly passing in 'this' as an argument in a bunch
of places.

Diff Detail

Event Timeline

foad created this revision.Jul 29 2022, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2022, 2:34 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
foad requested review of this revision.Jul 29 2022, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2022, 2:34 AM
nikic added a subscriber: nikic.Jul 29 2022, 8:32 AM
nikic added inline comments.
llvm/lib/IR/IRBuilder.cpp
148

As far as I can tell, most of these should just use CreateCall, rather than createCallHelper. The only thing createCallHelper adds is copying FMF, and most of these usages don't specify an FMFSource.

foad updated this revision to Diff 448641.Jul 29 2022, 8:44 AM

Change most users to use CreateCall instead of createCallHelper.

foad added a reviewer: nikic.Jul 29 2022, 8:45 AM
foad marked an inline comment as done.
nikic accepted this revision.Jul 29 2022, 12:33 PM

LG

llvm/lib/IR/IRBuilder.cpp
538

Can leave off the (default) empty name here.

This revision is now accepted and ready to land.Jul 29 2022, 12:33 PM
This revision was landed with ongoing or failed builds.Jul 29 2022, 1:23 PM
This revision was automatically updated to reflect the committed changes.