This is an archive of the discontinued LLVM Phabricator instance.

[IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand().
ClosedPublic

Authored by craig.topper on Apr 26 2020, 12:28 PM.

Details

Summary

This method has been commented as deprecated for a while. Remove
it and replace all uses with the equivalent getCalledOperand().

I also made a few cleanups in here. For example, to removes use
of getElementType on a pointer when we could just use getFunctionType
from the call.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 26 2020, 12:28 PM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript
ftynse accepted this revision.Apr 27 2020, 2:03 AM

LGTM for MLIR

This revision is now accepted and ready to land.Apr 27 2020, 2:03 AM
dblaikie accepted this revision.Apr 27 2020, 7:26 PM

Looks great - thanks for the pointer type fixup(s) along the way too!

This revision was automatically updated to reflect the committed changes.