This is an archive of the discontinued LLVM Phabricator instance.

[flang][CodeGen] Transform `fir.call` to `llvm.call`
ClosedPublic

Authored by awarzynski on Nov 5 2021, 7:06 AM.

Details

Summary

This patch extends the FIRToLLVMLowering pass in Flang by adding a
hook to transform fir.call to llvm.call.

This is part of the upstreaming effort from the fir-dev branch in [1].

[1] https://github.com/flang-compiler/f18-llvm-project

Patch originally written by:
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>

Diff Detail

Event Timeline

awarzynski created this revision.Nov 5 2021, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 7:06 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
awarzynski requested review of this revision.Nov 5 2021, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 7:06 AM
clementval accepted this revision.Nov 5 2021, 7:10 AM

LGTM. We can add tests with more complex arguments as we add their conversion in.

This revision is now accepted and ready to land.Nov 5 2021, 7:10 AM
kiranchandramohan accepted this revision.Nov 5 2021, 3:40 PM

LGTM.

flang/lib/Optimizer/CodeGen/CodeGen.cpp
82

micro NIT: fir.cal -> fir.call :)

This revision was automatically updated to reflect the committed changes.