[PATCH] D121171: [flang] Add ExternalNameConversionPass to flang-new pipeline

Eric Schweitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 08:18:40 PST 2022


schweitz added inline comments.


================
Comment at: flang/test/Lower/Intrinsics/abs.f90:2
 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
 ! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
 
----------------
awarzynski wrote:
> schweitz wrote:
> > Why does this test need to be run with flang?
> > 
> > We don't see the LLVM tests being driven by both opt and clang.
> > We don't see the LLVM tests being driven by both opt and clang.
> 
> That would require LLVM depending on Clang. Also, `opt` is for testing (and setting up) each LLVM pass individually. Clang neither needs nor supports this level of granularity. Instead, it operates at higher abstraction level, e.g. different optimisation pipelines. The situation with `flang-new` and `bbc` is very different.
BTW, something appears to be incorrect here.

Is `-emit-fir` on `flang` supposed to behave the same way as it always has with the lowering test tool, `bbc`? The //codegen// pass to convert symbols to some target for compatibility is not part of lowering and isn't reflected in the lowering output which is what `bbc -emit-fir` produces.

So it looks like `flang -emit-fir` and `bbc -emit-fir` have already diverged here. Is that the intention? If so, then `flang` certainly cannot replace `bbc`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121171/new/

https://reviews.llvm.org/D121171



More information about the llvm-commits mailing list