This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by awarzynski on Nov 2 2021, 8:03 AM.

Details

Summary

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

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

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

awarzynski created this revision.Nov 2 2021, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2021, 8:03 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
awarzynski requested review of this revision.Nov 2 2021, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2021, 8:03 AM
clementval accepted this revision.Nov 2 2021, 8:13 AM
This revision is now accepted and ready to land.Nov 2 2021, 8:13 AM
schweitz accepted this revision.Nov 2 2021, 9:22 AM