This is an archive of the discontinued LLVM Phabricator instance.

[Transforms] Add a emitBinaryFloatFnCall() version that fetches the function name from TLI
ClosedPublic

Authored by evandro on Aug 8 2019, 2:25 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

evandro created this revision.Aug 8 2019, 2:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2019, 2:25 PM
xbolva00 added a subscriber: xbolva00.

Looks fine

xbolva00 added inline comments.Aug 8 2019, 3:00 PM
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
1093 ↗(On Diff #214232)

getUnaryFloatFn.. is this ok?

evandro marked 2 inline comments as done.Aug 8 2019, 3:06 PM
evandro added inline comments.
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
1093 ↗(On Diff #214232)

It's a poorly named function. It's agnostic about the number of arguments of the function.

xbolva00 added inline comments.Aug 8 2019, 3:37 PM
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
1093 ↗(On Diff #214232)

Thanks.

Can you rename it as separate NFC patch?

bjope added a subscriber: bjope.Aug 9 2019, 2:21 AM
evandro marked 3 inline comments as done.Aug 9 2019, 9:40 AM
evandro added inline comments.
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
1093 ↗(On Diff #214232)

👍

evandro updated this revision to Diff 214393.Aug 9 2019, 9:41 AM
evandro marked an inline comment as done.
xbolva00 accepted this revision.Aug 9 2019, 9:42 AM
This revision is now accepted and ready to land.Aug 9 2019, 9:42 AM
This revision was automatically updated to reflect the committed changes.