[PATCH] D124667: [flang][driver] Add support for consuming LLVM IR/BC files

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 03:50:05 PDT 2022


awarzynski created this revision.
awarzynski added reviewers: rovka, kiranchandramohan, Leporacanthicus, unterumarmung, ekieri.
Herald added a subscriber: mgorny.
Herald added a reviewer: sscalpone.
Herald added projects: Flang, All.
awarzynski requested review of this revision.
Herald added subscribers: cfe-commits, jdoerfert, MaskRay.
Herald added a project: clang.

This change is mostly about making sure that Flang's driver recognises
LLVM IR and BC as supported as supported file formats. To this end,
`isFortran` is extended and renamed as `isSupportedByFlang` (the latter
better reflects the new functionality).

Some new tests are added to verify that the target triple is overridden
by the frontend driver's default or the value specified with `-triple`.
Strictly speaking, this is not a functionality that's added here.
However, this patch enables us to write such tests and hence I'm
including them here.

Depends on D124664 <https://reviews.llvm.org/D124664>
Depends on D124665 <https://reviews.llvm.org/D124665>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124667

Files:
  clang/include/clang/Driver/Types.h
  clang/lib/Driver/Driver.cpp
  clang/lib/Driver/Types.cpp
  flang/lib/Frontend/CMakeLists.txt
  flang/lib/Frontend/FrontendActions.cpp
  flang/lib/Frontend/FrontendOptions.cpp
  flang/test/Driver/emit-asm-from-llvm-bc.ll
  flang/test/Driver/emit-asm-from-llvm.ll
  flang/test/Driver/missing-triple.ll
  flang/test/Driver/override-triple.ll
  flang/test/lit.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124667.426011.patch
Type: text/x-patch
Size: 7964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220429/cdf2208f/attachment-0001.bin>


More information about the cfe-commits mailing list