File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ endfunction()
39
39
add_subdirectory (Optimizer )
40
40
add_subdirectory (Decimal )
41
41
add_subdirectory (Evaluate )
42
+ add_subdirectory (Lower )
42
43
add_subdirectory (Runtime )
43
44
add_subdirectory (RuntimeGTest )
44
45
Original file line number Diff line number Diff line change 9
9
10
10
add_flang_unittest (FlangLoweringOpenMPTests
11
11
IntervalSet.cpp
12
- OpenMPLoweringTest.cpp
13
- RTBuilder.cpp
14
12
)
15
13
target_link_libraries (FlangLoweringOpenMPTests
16
14
PRIVATE
Original file line number Diff line number Diff line change 1
1
get_property (dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS )
2
2
3
3
set (LIBS
4
+ FIRCodeGen
4
5
FIRDialect
5
6
FIRSupport
6
7
${dialect_libs}
@@ -10,6 +11,7 @@ add_flang_unittest(FlangOptimizerTests
10
11
FIRContextTest.cpp
11
12
InternalNamesTest.cpp
12
13
KindMappingTest.cpp
14
+ RTBuilder.cpp
13
15
)
14
16
target_link_libraries (FlangOptimizerTests
15
17
PRIVATE
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " ../../lib/Lower/RTBuilder.h"
9
+ #include " flang/Optimizer/Builder/Runtime/RTBuilder.h"
10
+ #include " flang/Optimizer/Support/InitFIR.h"
10
11
#include " gtest/gtest.h"
11
- #include " flang/Optimizer/Dialect/FIRDialect.h"
12
12
#include < complex>
13
13
14
14
// Check that it is possible to make a difference between complex runtime
@@ -22,9 +22,9 @@ c_float_complex_t c99_cacosf(c_float_complex_t);
22
22
23
23
TEST (RTBuilderTest, ComplexRuntimeInterface) {
24
24
mlir::MLIRContext ctx;
25
- fir::registerAndLoadDialects (ctx);
25
+ fir::support::loadDialects (ctx);
26
26
mlir::Type c99_cacosf_signature{
27
- Fortran::lower ::RuntimeTableKey<decltype (c99_cacosf)>::getTypeModel ()(
27
+ fir::runtime ::RuntimeTableKey<decltype (c99_cacosf)>::getTypeModel ()(
28
28
&ctx)};
29
29
auto c99_cacosf_funcTy = c99_cacosf_signature.cast <mlir::FunctionType>();
30
30
EXPECT_EQ (c99_cacosf_funcTy.getNumInputs (), 1u );
You can’t perform that action at this time.
0 commit comments