Unify FOLDER property of Polly targets
Put all Polly targets into a single "Polly" category (i.e. solution folder). Previously there was no recognizable scheme and most categories contained just one or two targets or targets didn't belong to any category. Reviewers: grosser llvm-svn: 242779
This commit is contained in:
		
							parent
							
								
									dec98e1c84
								
							
						
					
					
						commit
						6362f5aa0b
					
				| 
						 | 
				
			
			@ -162,10 +162,12 @@ add_custom_command( OUTPUT formatting COMMAND
 | 
			
		|||
  CLANG_FORMAT=${LLVM_BINARY_DIR}/bin/clang-format
 | 
			
		||||
  ${CMAKE_CURRENT_SOURCE_DIR}/utils/check_format.sh ${files})
 | 
			
		||||
add_custom_target(polly-check-format DEPENDS formatting)
 | 
			
		||||
set_target_properties(polly-check-format PROPERTIES FOLDER "Polly")
 | 
			
		||||
add_custom_command( OUTPUT formatting-update COMMAND
 | 
			
		||||
  CLANG_FORMAT=${LLVM_BINARY_DIR}/bin/clang-format
 | 
			
		||||
  ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_format.sh ${files})
 | 
			
		||||
add_custom_target(polly-update-format DEPENDS formatting-update)
 | 
			
		||||
set_target_properties(polly-update-format PROPERTIES FOLDER "Polly")
 | 
			
		||||
 | 
			
		||||
# Set the variable POLLY_LINK_LIBS in the llvm/tools/ dir.
 | 
			
		||||
set(POLLY_LINK_LIBS ${POLLY_LINK_LIBS} PARENT_SCOPE)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,6 +18,8 @@ macro(add_polly_library name)
 | 
			
		|||
    set(libkind)
 | 
			
		||||
  endif()
 | 
			
		||||
  add_library( ${name} ${libkind} ${srcs} )
 | 
			
		||||
  set_target_properties(${name} PROPERTIES FOLDER "Polly")
 | 
			
		||||
 | 
			
		||||
  if( LLVM_COMMON_DEPENDS )
 | 
			
		||||
    add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
 | 
			
		||||
  endif( LLVM_COMMON_DEPENDS )
 | 
			
		||||
| 
						 | 
				
			
			@ -54,6 +56,7 @@ macro(add_polly_loadable_module name)
 | 
			
		|||
  endif()
 | 
			
		||||
  set(MODULE TRUE)
 | 
			
		||||
  add_polly_library(${name} ${srcs})
 | 
			
		||||
  set_target_properties(${name} PROPERTIES FOLDER "Polly")
 | 
			
		||||
  if (GLOBAL_NOT_MODULE)
 | 
			
		||||
    unset (MODULE)
 | 
			
		||||
  endif()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -322,6 +322,7 @@ endif()
 | 
			
		|||
if (MSVC)
 | 
			
		||||
  # Add dummy target, because loadable modules are not supported on Windows
 | 
			
		||||
  add_custom_target(LLVMPolly)
 | 
			
		||||
  set_target_properties(LLVMPolly PROPERTIES FOLDER "Polly")
 | 
			
		||||
else ()
 | 
			
		||||
  add_polly_loadable_module(LLVMPolly
 | 
			
		||||
    Polly.cpp
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,6 +46,7 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
 | 
			
		|||
                    ${CMAKE_CURRENT_BINARY_DIR}/${testdir}
 | 
			
		||||
                    DEPENDS ${POLLY_TEST_DEPS}
 | 
			
		||||
                    COMMENT "Running Polly regression tests in ${testdir}")
 | 
			
		||||
      set_target_properties(polly-test-${testdir} PROPERTIES FOLDER "Polly")
 | 
			
		||||
    endforeach()
 | 
			
		||||
 | 
			
		||||
    add_custom_target(check-polly
 | 
			
		||||
| 
						 | 
				
			
			@ -56,6 +57,7 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
 | 
			
		|||
                  ${CMAKE_CURRENT_BINARY_DIR}
 | 
			
		||||
                  DEPENDS ${POLLY_TEST_DEPS}
 | 
			
		||||
                  COMMENT "Running Polly regression tests")
 | 
			
		||||
    set_target_properties(check-polly PROPERTIES FOLDER "Polly")
 | 
			
		||||
  endif()
 | 
			
		||||
 | 
			
		||||
else (NOT DEFINED LLVM_MAIN_SRC_DIR)
 | 
			
		||||
| 
						 | 
				
			
			@ -74,7 +76,7 @@ else (NOT DEFINED LLVM_MAIN_SRC_DIR)
 | 
			
		|||
    DEPENDS ${POLLY_TEST_DEPS}
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
  set_target_properties(check-polly PROPERTIES FOLDER "polly tests")
 | 
			
		||||
  set_target_properties(check-polly PROPERTIES FOLDER "Polly")
 | 
			
		||||
 | 
			
		||||
endif (NOT DEFINED LLVM_MAIN_SRC_DIR)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -84,4 +86,5 @@ configure_file(
 | 
			
		|||
 | 
			
		||||
# Add a legacy target spelling: polly-test
 | 
			
		||||
add_custom_target(polly-test)
 | 
			
		||||
set_target_properties(polly-test PROPERTIES FOLDER "Polly")
 | 
			
		||||
add_dependencies(polly-test check-polly)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue