This patch simply replaces a `TODO` with a warning.
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>
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D127415
}
void genFIR(const Fortran::parser::CompilerDirective &) {
- TODO(toLocation(), "CompilerDirective lowering");
+ mlir::emitWarning(toLocation(), "ignoring all compiler directives");
}
void genFIR(const Fortran::parser::OpenACCConstruct &acc) {
--- /dev/null
+! RUN: bbc %s -o - 2>&1 | FileCheck %s
+! RUN: %flang_fc1 -emit-fir %s -o - 2>&1 | FileCheck %s
+
+! CHECK: ignoring all compiler directives
+
+MODULE test_mod
+ CONTAINS
+ SUBROUTINE foo()
+ REAL :: var
+ !DIR$ VECTOR ALIGNED
+ var = 1.
+ END SUBROUTINE foo
+END MODULE test_mod