10 changes: 10 additions & 0 deletions llvm/cmake/modules/LLVMDistributionSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ function(install_distribution_exports project)
COMPONENT ${target})
if(NOT LLVM_ENABLE_IDE)
add_custom_target(${target})
get_subproject_title(subproject_title)
set_target_properties(${target} PROPERTIES FOLDER "${subproject_title}/Distribution")
add_llvm_install_targets(install-${target} COMPONENT ${target})
endif()
endif()
Expand Down Expand Up @@ -260,6 +262,14 @@ function(llvm_distribution_add_targets)
add_custom_target(${distribution_target})
add_custom_target(install-${distribution_target})
add_custom_target(install-${distribution_target}-stripped)
get_subproject_title(subproject_title)
set_target_properties(
${distribution_target}
install-${distribution_target}
install-${distribution_target}-stripped
PROPERTIES
FOLDER "${subproject_title}/Distribution"
)

foreach(target ${distribution_components})
# Note that some distribution components may not have an actual target, but only an install-FOO target.
Expand Down
25 changes: 24 additions & 1 deletion llvm/cmake/modules/LLVMExternalProjectUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ endfunction()
# Use provided strip tool instead of the default one.
# TARGET_TRIPLE triple
# Optional target triple to pass to the compiler
# FOLDER
# For IDEs, the Folder to put the targets into.
# )
function(llvm_ExternalProject_Add name source_dir)
cmake_parse_arguments(ARG
"USE_TOOLCHAIN;EXCLUDE_FROM_ALL;NO_INSTALL;ALWAYS_CLEAN"
"SOURCE_DIR"
"SOURCE_DIR;FOLDER"
"CMAKE_ARGS;TOOLCHAIN_TOOLS;RUNTIME_LIBRARIES;DEPENDS;EXTRA_TARGETS;PASSTHROUGH_PREFIXES;STRIP_TOOL;TARGET_TRIPLE"
${ARGN})
canonicalize_tool_name(${name} nameCanon)
Expand Down Expand Up @@ -150,6 +152,9 @@ function(llvm_ExternalProject_Add name source_dir)
COMMENT "Clobbering ${name} build and stamp directories"
USES_TERMINAL
)
if (ARG_FOLDER)
set_target_properties(${name}-clear PROPERTIES FOLDER "${ARG_FOLDER}")
endif ()

# Find all variables that start with a prefix and propagate them through
get_cmake_property(variableNames VARIABLES)
Expand Down Expand Up @@ -252,6 +257,9 @@ function(llvm_ExternalProject_Add name source_dir)

add_custom_target(${name}-clobber
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${name}-clobber-stamp)
if (ARG_FOLDER)
set_target_properties(${name}-clobber PROPERTIES FOLDER "${ARG_FOLDER}")
endif ()

if(ARG_EXCLUDE_FROM_ALL)
set(exclude EXCLUDE_FROM_ALL 1)
Expand Down Expand Up @@ -358,6 +366,12 @@ function(llvm_ExternalProject_Add name source_dir)
USES_TERMINAL_INSTALL 1
LIST_SEPARATOR |
)
if (ARG_FOLDER)
set_target_properties(
${name} ${name}-clobber ${name}-build ${name}-configure
PROPERTIES FOLDER "${ARG_FOLDER}"
)
endif ()

if(ARG_USE_TOOLCHAIN)
set(force_deps DEPENDS ${TOOLCHAIN_BINS})
Expand All @@ -374,6 +388,9 @@ function(llvm_ExternalProject_Add name source_dir)
USES_TERMINAL 1
)
ExternalProject_Add_StepTargets(${name} clean)
if (ARG_FOLDER)
set_target_properties(${name}-clean PROPERTIES FOLDER "${ARG_FOLDER}")
endif ()

if(ARG_USE_TOOLCHAIN)
add_dependencies(${name}-clean ${name}-clobber)
Expand All @@ -388,6 +405,9 @@ function(llvm_ExternalProject_Add name source_dir)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
COMPONENT ${name})
if (ARG_FOLDER)
set_target_properties(install-${name} PROPERTIES FOLDER "${ARG_FOLDER}")
endif ()
endif()

# Add top-level targets
Expand All @@ -404,5 +424,8 @@ function(llvm_ExternalProject_Add name source_dir)
WORKING_DIRECTORY ${BINARY_DIR}
VERBATIM
USES_TERMINAL)
if (ARG_FOLDER)
set_target_properties(${target} PROPERTIES FOLDER "${ARG_FOLDER}")
endif ()
endforeach()
endfunction()
5 changes: 4 additions & 1 deletion llvm/cmake/modules/TableGen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ function(add_public_tablegen_target target)
if(LLVM_COMMON_DEPENDS)
add_dependencies(${target} ${LLVM_COMMON_DEPENDS})
endif()
set_target_properties(${target} PROPERTIES FOLDER "Tablegenning")
get_subproject_title(subproject_title)
set_target_properties(${target} PROPERTIES FOLDER "${subproject_title}/Tablegenning")
set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
endfunction()

Expand Down Expand Up @@ -217,6 +218,8 @@ macro(add_tablegen target project)
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)

add_custom_target(${target}-host DEPENDS ${${project}_TABLEGEN_EXE})
get_subproject_title(subproject_title)
set_target_properties(${target}-host PROPERTIES FOLDER "${subproject_title}/Native")
set(${project}_TABLEGEN_TARGET ${target}-host PARENT_SCOPE)

# If we're using the host tablegen, and utils were not requested, we have no
Expand Down
1 change: 1 addition & 0 deletions llvm/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ if (LLVM_ENABLE_DOXYGEN)
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating llvm doxygen documentation." VERBATIM)
set_target_properties(doxygen-llvm PROPERTIES FOLDER "LLVM/Docs")

if (LLVM_BUILD_DOCS)
add_dependencies(doxygen doxygen-llvm)
Expand Down
2 changes: 1 addition & 1 deletion llvm/examples/Kaleidoscope/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_custom_target(Kaleidoscope)
set_target_properties(Kaleidoscope PROPERTIES FOLDER Examples)
set_target_properties(Kaleidoscope PROPERTIES FOLDER "LLVM/Examples")

macro(add_kaleidoscope_chapter name)
add_dependencies(Kaleidoscope ${name})
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ set_source_files_properties("${version_inc}"
HEADER_FILE_ONLY TRUE)

add_custom_target(llvm_vcsrevision_h ALL DEPENDS "${generated_files}")
set_target_properties(llvm_vcsrevision_h PROPERTIES FOLDER "Misc")
set_target_properties(llvm_vcsrevision_h PROPERTIES FOLDER "LLVM/Resources")
1 change: 1 addition & 0 deletions llvm/lib/Support/BLAKE3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ else()
endif()

add_library(LLVMSupportBlake3 OBJECT EXCLUDE_FROM_ALL ${LLVM_BLAKE3_FILES})
set_target_properties(LLVMSupportBlake3 PROPERTIES FOLDER "LLVM/Libraries")
llvm_update_compile_flags(LLVMSupportBlake3)
23 changes: 23 additions & 0 deletions llvm/runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function(builtin_default_target compiler_rt_path)
SANITIZER
USE_TOOLCHAIN
TARGET_TRIPLE ${LLVM_TARGET_TRIPLE}
FOLDER "Compiler-RT"
${EXTRA_ARGS})
endfunction()

Expand Down Expand Up @@ -128,6 +129,7 @@ function(builtin_register_target compiler_rt_path name)
${COMMON_CMAKE_ARGS}
${${name}_extra_args}
USE_TOOLCHAIN
FOLDER "Compiler-RT"
${EXTRA_ARGS} ${ARG_EXTRA_ARGS})
endfunction()

Expand All @@ -148,6 +150,10 @@ if(compiler_rt_path)
add_custom_target(builtins)
add_custom_target(install-builtins)
add_custom_target(install-builtins-stripped)
set_target_properties(
builtins install-builtins install-builtins-stripped
PROPERTIES FOLDER "Compiler-RT"
)
endif()

foreach(target ${LLVM_BUILTIN_TARGETS})
Expand Down Expand Up @@ -263,6 +269,7 @@ function(runtime_default_target)
${SUB_INSTALL_TARGETS}
USE_TOOLCHAIN
TARGET_TRIPLE ${LLVM_TARGET_TRIPLE}
FOLDER "Runtimes"
${EXTRA_ARGS})
endfunction()

Expand Down Expand Up @@ -388,6 +395,7 @@ function(runtime_register_target name)
EXTRA_TARGETS ${${name}_extra_targets}
${${name}_test_targets}
USE_TOOLCHAIN
FOLDER "Runtimes"
${EXTRA_ARGS} ${ARG_EXTRA_ARGS})

add_dependencies(runtimes runtimes-${name})
Expand All @@ -401,14 +409,17 @@ function(runtime_register_target name)
foreach(runtime_name ${runtime_names})
if(NOT TARGET ${runtime_name})
add_custom_target(${runtime_name})
set_target_properties(${runtime_name} PROPERTIES FOLDER "${runtime_name}")
endif()
add_dependencies(${runtime_name} ${runtime_name}-${name})
if(NOT TARGET install-${runtime_name})
add_custom_target(install-${runtime_name})
set_target_properties(install-${runtime_name} PROPERTIES FOLDER "${runtime_name}")
endif()
add_dependencies(install-${runtime_name} install-${runtime_name}-${name})
if(NOT TARGET install-${runtime_name}-stripped)
add_custom_target(install-${runtime_name}-stripped)
set_target_properties(install-${runtime_name} PROPERTIES FOLDER "${runtime_name}")
endif()
add_dependencies(install-${runtime_name}-stripped install-${runtime_name}-${name}-stripped)
endforeach()
Expand Down Expand Up @@ -507,16 +518,28 @@ if(runtimes)
add_custom_target(runtimes-configure)
add_custom_target(install-runtimes)
add_custom_target(install-runtimes-stripped)
set_target_properties(
runtimes runtimes-configure install-runtimes install-runtimes-stripped
PROPERTIES FOLDER "Runtimes"
)
if(LLVM_INCLUDE_TESTS)
add_custom_target(check-runtimes)
add_custom_target(runtimes-test-depends)
set_target_properties(
check-runtimes runtimes-test-depends
PROPERTIES FOLDER "Runtimes"
)
set(test_targets "")
endif()
if(LLVM_RUNTIME_DISTRIBUTION_COMPONENTS)
foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
add_custom_target(${component})
add_custom_target(install-${component})
add_custom_target(install-${component}-stripped)
set_target_properties(
${component} install-${component} install-${component}-stripped
PROPERTIES FOLDER "${component}"
)
endforeach()
endif()
endif()
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ if (LLVM_INCLUDE_SPIRV_TOOLS_TESTS)
endif()

add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
set_target_properties(llvm-test-depends PROPERTIES FOLDER "LLVM/Tests")

if(LLVM_BUILD_TOOLS)
set(exclude_from_check_all "")
Expand All @@ -243,7 +243,7 @@ add_lit_testsuite(check-llvm "Running the LLVM regression tests"
${exclude_from_check_all}
DEPENDS ${LLVM_TEST_DEPENDS}
)
set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
set_target_properties(check-llvm PROPERTIES FOLDER "LLVM/Tests")

add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
${exclude_from_check_all}
Expand All @@ -254,4 +254,4 @@ add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
# Setup an alias for 'check-all'.
add_custom_target(check)
add_dependencies(check check-all)
set_target_properties(check PROPERTIES FOLDER "Tests")
set_target_properties(check PROPERTIES FOLDER "LLVM/Tests")
1 change: 1 addition & 0 deletions llvm/tools/opt-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ foreach (file ${files})
endforeach (file)

add_custom_target(opt-viewer DEPENDS ${files})
set_target_properties(opt-viewer PROPERTIES FOLDER "LLVM/Tools")
if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets("install-opt-viewer"
DEPENDS opt-viewer
Expand Down
3 changes: 1 addition & 2 deletions llvm/unittests/Analysis/InlineAdvisorPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ if (NOT WIN32 AND NOT CYGWIN)
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
)
set_target_properties(InlineAdvisorPlugin PROPERTIES FOLDER "Tests")
set_target_properties(InlineAdvisorPlugin PROPERTIES FOLDER "LLVM/Tests")

# The plugin depends on some of the output files of intrinsics_gen, so make sure
# it is built before the plugin.
add_dependencies(InlineAdvisorPlugin intrinsics_gen)
add_dependencies(AnalysisTests InlineAdvisorPlugin)
set_property(TARGET InlineAdvisorPlugin PROPERTY FOLDER "Tests/UnitTests/AnalysisTests")
endif()
1 change: 0 additions & 1 deletion llvm/unittests/Analysis/InlineOrderPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ if (NOT WIN32 AND NOT CYGWIN)
# it is built before the plugin.
add_dependencies(InlineOrderPlugin intrinsics_gen)
add_dependencies(AnalysisTests InlineOrderPlugin)
set_property(TARGET InlineOrderPlugin PROPERTY FOLDER "Tests/UnitTests/AnalysisTests")
endif()
2 changes: 1 addition & 1 deletion llvm/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_custom_target(UnitTests)
set_target_properties(UnitTests PROPERTIES FOLDER "Tests/UnitTests")
set_target_properties(UnitTests PROPERTIES FOLDER "LLVM/Tests")

function(add_llvm_unittest test_dirname)
add_unittest(UnitTests ${test_dirname} ${ARGN})
Expand Down
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/BTF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ add_llvm_unittest(DebugInfoBTFTests
)

target_link_libraries(DebugInfoBTFTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoBTFTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/CodeView/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ add_llvm_unittest(DebugInfoCodeViewTests
)

target_link_libraries(DebugInfoCodeViewTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoCodeViewTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/DWARF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ add_llvm_unittest(DebugInfoDWARFTests
)

target_link_libraries(DebugInfoDWARFTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoDWARFTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/GSYM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ add_llvm_unittest(DebugInfoGSYMTests
)

target_link_libraries(DebugInfoGSYMTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoGSYMTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/MSF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ add_llvm_unittest(DebugInfoMSFTests
)

target_link_libraries(DebugInfoMSFTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoMSFTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/DebugInfo/PDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ add_llvm_unittest_with_input_files(DebugInfoPDBTests
)

target_link_libraries(DebugInfoPDBTests PRIVATE LLVMTestingSupport)

set_property(TARGET DebugInfoPDBTests PROPERTY FOLDER "Tests/UnitTests/DebugInfoTests")
2 changes: 0 additions & 2 deletions llvm/unittests/ExecutionEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ list(FIND LLVM_TARGETS_WITH_JIT "${LLVM_NATIVE_ARCH}" jit_idx)
if (NOT build_idx LESS 0 AND NOT jit_idx LESS 0)
add_subdirectory(MCJIT)
endif()

set_property(TARGET ExecutionEngineTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests")
2 changes: 0 additions & 2 deletions llvm/unittests/ExecutionEngine/JITLink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ add_llvm_unittest(JITLinkTests
)

target_link_libraries(JITLinkTests PRIVATE LLVMTestingSupport)

set_property(TARGET JITLinkTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests")
2 changes: 0 additions & 2 deletions llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ add_llvm_unittest(MCJITTests
if(MINGW OR CYGWIN)
set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
endif()

set_property(TARGET MCJITTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests")
2 changes: 0 additions & 2 deletions llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@ target_link_libraries(OrcJITTests PRIVATE
LLVMTestingSupport
${ORC_JIT_TEST_LIBS})

set_property(TARGET OrcJITTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests")

export_executable_symbols(OrcJITTests)
4 changes: 0 additions & 4 deletions llvm/unittests/Support/CommandLineInit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ add_dependencies(${test_suite} ${test_name})
set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir})

get_target_property(test_suite_folder ${test_suite} FOLDER)
if (test_suite_folder)
set_property(TARGET ${test_name} PROPERTY FOLDER "${test_suite_folder}")
endif ()
4 changes: 2 additions & 2 deletions llvm/unittests/Support/DynamicLibrary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(LLVM_LINK_COMPONENTS Support)
add_library(DynamicLibraryLib STATIC
ExportedFuncs.cpp
)
set_target_properties(DynamicLibraryLib PROPERTIES FOLDER "Tests")
set_target_properties(DynamicLibraryLib PROPERTIES FOLDER "LLVM/Tests/Support")

# extract_symbols.py relies on all its library arguments being in the same
# directory, so we must set the output directory in the same way as if
Expand All @@ -25,7 +25,7 @@ function(dynlib_add_module NAME)
add_library(${NAME} MODULE
PipSqueak.cpp
)
set_target_properties(${NAME} PROPERTIES FOLDER "Tests")
set_target_properties(${NAME} PROPERTIES FOLDER "LLVM/Tests/Support")

set_output_directory(${NAME}
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
Expand Down
2 changes: 0 additions & 2 deletions llvm/unittests/Target/AArch64/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ add_llvm_target_unittest(AArch64Tests
AArch64SVESchedPseudoTest.cpp
Immediates.cpp
)

set_property(TARGET AArch64Tests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/AMDGPU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ add_llvm_target_unittest(AMDGPUTests
DwarfRegMappings.cpp
ExecMayBeModifiedBeforeAnyUse.cpp
)

set_property(TARGET AMDGPUTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/ARM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ add_llvm_target_unittest(ARMTests
MachineInstrTest.cpp
InstSizes.cpp
)

set_property(TARGET ARMTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
3 changes: 0 additions & 3 deletions llvm/unittests/Target/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ set(LLVM_LINK_COMPONENTS Core Target AllTargetsCodeGens AllTargetsDescs AllTarge
add_llvm_unittest(TargetMachineCTests
TargetMachineOptionsTest.cpp
)

set_property(TARGET TargetMachineCTests
PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/LoongArch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ add_llvm_target_unittest(LoongArchTests
InstSizes.cpp
MCInstrAnalysisTest.cpp
)

set_property(TARGET LoongArchTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/PowerPC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ set(LLVM_LINK_COMPONENTS
add_llvm_unittest(PowerPCTests
AIXRelocModelTest.cpp
)

set_property(TARGET PowerPCTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/RISCV/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ add_llvm_target_unittest(RISCVTests
MCInstrAnalysisTest.cpp
RISCVInstrInfoTest.cpp
)

set_property(TARGET RISCVTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/WebAssembly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ set(LLVM_LINK_COMPONENTS
add_llvm_target_unittest(WebAssemblyTests
WebAssemblyExceptionInfoTest.cpp
)

set_property(TARGET WebAssemblyTests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Target/X86/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ add_llvm_unittest(X86Tests
MachineSizeOptsTest.cpp
TernlogTest.cpp
)

set_property(TARGET X86Tests PROPERTY FOLDER "Tests/UnitTests/TargetTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Transforms/Coroutines/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ add_llvm_unittest(CoroTests
)

target_link_libraries(CoroTests PRIVATE LLVMTestingSupport)

set_property(TARGET CoroTests PROPERTY FOLDER "Tests/UnitTests/TransformTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Transforms/IPO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ add_llvm_unittest(IPOTests
AttributorTest.cpp
FunctionSpecializationTest.cpp
)

set_property(TARGET IPOTests PROPERTY FOLDER "Tests/UnitTests/TransformsTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Transforms/Scalar/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ target_link_libraries(ScalarTests PRIVATE LLVMTestingSupport)
if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
set_source_files_properties(LoopPassManagerTest.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-function)
endif()

set_property(TARGET ScalarTests PROPERTY FOLDER "Tests/UnitTests/TransformsTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Transforms/Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ add_llvm_unittest(UtilsTests
ValueMapperTest.cpp
ProfDataUtilTest.cpp
)

set_property(TARGET UtilsTests PROPERTY FOLDER "Tests/UnitTests/TransformsTests")
2 changes: 0 additions & 2 deletions llvm/unittests/Transforms/Vectorize/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ add_llvm_unittest(VectorizeTests
VPlanSlpTest.cpp
VPlanVerifierTest.cpp
)

set_property(TARGET VectorizeTests PROPERTY FOLDER "Tests/UnitTests/TransformsTests")
2 changes: 0 additions & 2 deletions llvm/unittests/tools/llvm-cfi-verify/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ add_llvm_unittest(CFIVerifyTests
GraphBuilder.cpp
)
target_link_libraries(CFIVerifyTests PRIVATE LLVMCFIVerify)

set_property(TARGET CFIVerifyTests PROPERTY FOLDER "Tests/UnitTests/ToolTests")
2 changes: 0 additions & 2 deletions llvm/unittests/tools/llvm-exegesis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ add_llvm_target_unittest(LLVMExegesisTests
${exegesis_sources}
)
target_link_libraries(LLVMExegesisTests PRIVATE ${exegesis_link_libraries})

set_property(TARGET LLVMExegesisTests PROPERTY FOLDER "Tests/UnitTests/ToolTests")
2 changes: 0 additions & 2 deletions llvm/unittests/tools/llvm-mca/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ include_directories(${mca_includes})
add_llvm_target_unittest(LLVMMCATests
${mca_sources}
)

set_property(TARGET LLVMMCATests PROPERTY FOLDER "Tests/UnitTests/ToolTests")
2 changes: 0 additions & 2 deletions llvm/unittests/tools/llvm-profdata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ add_llvm_unittest(LLVMProfdataTests
)

target_link_libraries(LLVMProfdataTests PRIVATE LLVMTestingSupport)

set_property(TARGET LLVMProfdataTests PROPERTY FOLDER "Tests/UnitTests/ToolTests")
2 changes: 0 additions & 2 deletions llvm/unittests/tools/llvm-profgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ add_llvm_unittest(LLVMProfgenTests
target_link_libraries(LLVMProfgenTests PRIVATE LLVMTestingSupport)

add_dependencies(LLVMProfgenTests intrinsics_gen)

set_property(TARGET LLVMProfgenTests PROPERTY FOLDER "Tests/UnitTests/ToolTests")
2 changes: 1 addition & 1 deletion llvm/utils/LLVMVisualizers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
set(LLVM_VISUALIZERS llvm.natvis)
add_custom_target(LLVMVisualizers SOURCES ${LLVM_VISUALIZERS})
set_target_properties(LLVMVisualizers PROPERTIES FOLDER "Utils")
set_target_properties(LLVMVisualizers PROPERTIES FOLDER "LLVM/Misc")
endif()
1 change: 0 additions & 1 deletion llvm/utils/TableGen/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ add_llvm_library(LLVMTableGenBasic OBJECT EXCLUDE_FROM_ALL
CodeGenIntrinsics.cpp
SDNodeProperties.cpp
)
set_target_properties(LLVMTableGenBasic PROPERTIES FOLDER "Tablegenning")

# Users may include its headers as "Basic/*.h"
target_include_directories(LLVMTableGenBasic
Expand Down
2 changes: 0 additions & 2 deletions llvm/utils/TableGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ add_tablegen(llvm-min-tblgen LLVM_HEADERS

PARTIAL_SOURCES_INTENDED
)
set_target_properties(llvm-min-tblgen PROPERTIES FOLDER "Tablegenning")

set(LLVM_LINK_COMPONENTS
CodeGenTypes
Expand Down Expand Up @@ -83,4 +82,3 @@ add_tablegen(llvm-tblgen LLVM
DEPENDS
intrinsics_gen # via llvm-min-tablegen
)
set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning")
1 change: 0 additions & 1 deletion llvm/utils/TableGen/Common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
vt_gen
intrinsics_gen
)
set_target_properties(LLVMTableGenCommon PROPERTIES FOLDER "Tablegenning")

# Users may include its headers as "Common/*.h"
target_include_directories(LLVMTableGenCommon
Expand Down
4 changes: 2 additions & 2 deletions llvm/utils/lit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ add_lit_testsuite(check-lit "Running lit's tests"
)

# For IDEs
set_target_properties(check-lit PROPERTIES FOLDER "Tests")
set_target_properties(prepare-check-lit PROPERTIES FOLDER "Tests")
set_target_properties(check-lit PROPERTIES FOLDER "LLVM/Tests")
set_target_properties(prepare-check-lit PROPERTIES FOLDER "LLVM/Tests")
2 changes: 1 addition & 1 deletion llvm/utils/llvm-locstats/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
if (NOT LLVM_BUILD_TOOLS)
set_target_properties(llvm-locstats PROPERTIES EXCLUDE_FROM_ALL ON)
endif()
set_target_properties(llvm-locstats PROPERTIES FOLDER "Tools")
set_target_properties(llvm-locstats PROPERTIES FOLDER "LLVM/Tools")
endif()
2 changes: 0 additions & 2 deletions llvm/utils/mlgo-utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ add_lit_testsuite(check-mlgo-utils "Running mlgo-utils tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS "FileCheck" "not" "count" "split-file" "yaml2obj" "llvm-objcopy"
)

set_target_properties(check-mlgo-utils PROPERTIES FOLDER "Tests")