File tree Expand file tree Collapse file tree 9 files changed +17
-6
lines changed
include/flang/Optimizer/Dialect Expand file tree Collapse file tree 9 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.20.0 )
2
+ set (LLVM_SUBPROJECT_TITLE "Flang" )
2
3
3
4
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
4
5
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -481,7 +482,7 @@ endif()
481
482
482
483
# Custom target to install Flang libraries.
483
484
add_custom_target (flang-libraries )
484
- set_target_properties (flang-libraries PROPERTIES FOLDER "Misc " )
485
+ set_target_properties (flang-libraries PROPERTIES FOLDER "Flang/Meta " )
485
486
486
487
if (NOT LLVM_ENABLE_IDE )
487
488
add_llvm_install_targets (install -flang-libraries
Original file line number Diff line number Diff line change @@ -94,13 +94,12 @@ function(add_flang_library name)
94
94
add_custom_target (${name} )
95
95
endif ()
96
96
97
- set_target_properties (${name} PROPERTIES FOLDER "Flang libraries " )
97
+ set_target_properties (${name} PROPERTIES FOLDER "Flang/Libraries " )
98
98
set_flang_windows_version_resource_properties (${name} )
99
99
endfunction (add_flang_library )
100
100
101
101
macro (add_flang_executable name )
102
102
add_llvm_executable (${name} ${ARGN} )
103
- set_target_properties (${name} PROPERTIES FOLDER "Flang executables" )
104
103
set_flang_windows_version_resource_properties (${name} )
105
104
endmacro (add_flang_executable )
106
105
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ if (LLVM_ENABLE_DOXYGEN)
79
79
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /doxygen.cfg
80
80
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
81
81
COMMENT "Generating flang doxygen documentation." VERBATIM )
82
-
82
+ set_target_properties ( doxygen-flang PROPERTIES FOLDER "Flang/Docs" )
83
83
if (LLVM_BUILD_DOCS )
84
84
add_dependencies (doxygen doxygen-flang )
85
85
endif ()
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ mlir_tablegen(CanonicalizationPatterns.inc -gen-rewriters)
33
33
add_public_tablegen_target (CanonicalizationPatternsIncGen )
34
34
35
35
add_custom_target (flang-doc )
36
+ set_target_properties (flang-doc PROPERTIES FOLDER "Flang/Docs" )
36
37
set (dialect_doc_filename "FIRLangRef" )
37
38
38
39
set (LLVM_TARGET_DEFINITIONS FIROps.td )
@@ -45,4 +46,5 @@ add_custom_command(
45
46
${GEN_DOC_FILE}
46
47
DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /${dialect_doc_filename}.md )
47
48
add_custom_target (${dialect_doc_filename} DocGen DEPENDS ${GEN_DOC_FILE} )
49
+ set_target_properties (${dialect_doc_filename} DocGen PROPERTIES FOLDER "Flang/Tablegenning/Docs" )
48
50
add_dependencies (flang-doc ${dialect_doc_filename} DocGen )
Original file line number Diff line number Diff line change @@ -271,21 +271,26 @@ else()
271
271
LINK_LIBS
272
272
FortranDecimal.static
273
273
INSTALL_WITH_TOOLCHAIN )
274
+ set_target_properties (FortranRuntime.static PROPERTIES FOLDER "Flang/Runtime Libraries" )
274
275
set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL )
275
276
add_flang_library (FortranRuntime.dynamic ${sources}
276
277
LINK_LIBS
277
278
FortranDecimal.dynamic
278
279
INSTALL_WITH_TOOLCHAIN )
280
+ set_target_properties (FortranRuntime.dynamic PROPERTIES FOLDER "Flang/Runtime Libraries" )
279
281
set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebug )
280
282
add_flang_library (FortranRuntime.static_dbg ${sources}
281
283
LINK_LIBS
282
284
FortranDecimal.static_dbg
283
285
INSTALL_WITH_TOOLCHAIN )
286
+ set_target_properties (FortranRuntime.static_dbg PROPERTIES FOLDER "Flang/Runtime Libraries" )
284
287
set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebugDLL )
285
288
add_flang_library (FortranRuntime.dynamic_dbg ${sources}
286
289
LINK_LIBS
287
290
FortranDecimal.dynamic_dbg
288
291
INSTALL_WITH_TOOLCHAIN )
292
+ set_target_properties (FortranRuntime.dynamic_dbg PROPERTIES FOLDER "Flang/Runtime Libraries" )
289
293
add_dependencies (FortranRuntime FortranRuntime.static FortranRuntime.dynamic
290
294
FortranRuntime.static_dbg FortranRuntime.dynamic_dbg )
291
295
endif ()
296
+ set_target_properties (FortranRuntime PROPERTIES FOLDER "Flang/Runtime Libraries" )
Original file line number Diff line number Diff line change @@ -83,13 +83,14 @@ if (LLVM_BUILD_EXAMPLES)
83
83
endif ()
84
84
85
85
add_custom_target (flang-test-depends DEPENDS ${FLANG_TEST_DEPENDS} )
86
+ set_target_properties (flang-test-depends PROPERTIES FOLDER "Flang/Meta" )
86
87
87
88
add_lit_testsuite (check-flang "Running the Flang regression tests"
88
89
${CMAKE_CURRENT_BINARY_DIR}
89
90
PARAMS ${FLANG_TEST_PARAMS}
90
91
DEPENDS ${FLANG_TEST_DEPENDS}
91
92
)
92
- set_target_properties (check-flang PROPERTIES FOLDER "Tests " )
93
+ set_target_properties (check-flang PROPERTIES FOLDER "Flang/Meta " )
93
94
94
95
# In case of standalone builds.
95
96
if (FLANG_STANDALONE_BUILD )
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ if (NOT CMAKE_CROSSCOMPILING)
96
96
endif ()
97
97
98
98
add_custom_target (module_files ALL DEPENDS ${MODULE_FILES} )
99
+ set_target_properties (module_files PROPERTIES FOLDER "Flang/Resources" )
99
100
100
101
# TODO Move this to a more suitable location
101
102
# Copy the generated omp_lib.h header file, if OpenMP support has been configured.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (FLANG_EXPERIMENTAL_CUDA_RUNTIME)
8
8
endif ()
9
9
10
10
add_custom_target (FlangUnitTests )
11
- set_target_properties (FlangUnitTests PROPERTIES FOLDER "Flang Unit Tests" )
11
+ set_target_properties (FlangUnitTests PROPERTIES FOLDER "Flang/ Tests" )
12
12
13
13
function (add_flang_unittest_offload_properties target )
14
14
# Set CUDA_RESOLVE_DEVICE_SYMBOLS.
@@ -55,6 +55,7 @@ function(add_flang_nongtest_unittest test_name)
55
55
endif ()
56
56
57
57
add_executable (${test_name}${suffix} ${test_name} .cpp )
58
+ set_target_properties (${test_name}${suffix} PROPERTIES FOLDER "Flang/Tests/Unit" )
58
59
59
60
if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB )
60
61
set (llvm_libs LLVM )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ add_library(FortranEvaluateTesting
3
3
testing.cpp
4
4
fp-testing.cpp
5
5
)
6
+ set_target_properties (FortranEvaluateTesting PROPERTIES FOLDER "Flang/Tests" )
6
7
if (LLVM_LINK_LLVM_DYLIB )
7
8
set (llvm_libs LLVM )
8
9
else ()
You can’t perform that action at this time.
0 commit comments