Lines Matching +full:built +full:- +full:docs

11 # Check if MLIR is built as a standalone project.
38 # DLL platform -- put DLLs into bin.
43 set(LLVM_LIT_ARGS "-sv" CACHE STRING "Default options for lit")
67 # -BSymbolic is incompatible with TypeID
68 if("${CMAKE_SHARED_LINKER_FLAGS}" MATCHES "-Bsymbolic[^-]")
69 message(FATAL_ERROR " MLIR does not support `-Bsymbolic` (see http://llvm.org/pr51420 ),"
70 " try `-Bsymbolic-functions` instead.")
75 check_c_compiler_flag("-Werror=implicit-function-declaration" C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_DECLARATION)
76 append_if(C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_DECLARATION "-Werror=implicit-function-declaration" CMAKE_C_FLAGS)
79 # `mlir-config.h` or similar is missing.
80 check_c_compiler_flag("-Wundef" C_SUPPORTS_WUNDEF)
81 append_if(C_SUPPORTS_WUNDEF "-Wundef" CMAKE_C_FLAGS)
82 append_if(C_SUPPORTS_WUNDEF "-Wundef" CMAKE_CXX_FLAGS)
87 check_c_compiler_flag("-Werror=mismatched-tags" C_SUPPORTS_WERROR_MISMATCHED_TAGS)
88 append_if(C_SUPPORTS_WERROR_MISMATCHED_TAGS "-Werror=mismatched-tags" CMAKE_C_FLAGS)
89 append_if(C_SUPPORTS_WERROR_MISMATCHED_TAGS "-Werror=mismatched-tags" CMAKE_CXX_FLAGS)
92 # Silence a false positive GCC -Wunused-but-set-parameter warning in
96 check_cxx_compiler_flag("-Wno-unused-but-set-parameter" CXX_SUPPORTS_WNO_UNUSED_BUT_SET_PARAMETER)
97 append_if(CXX_SUPPORTS_WNO_UNUSED_BUT_SET_PARAMETER "-Wno-unused-but-set-parameter" CMAKE_CXX_FLAGS)
99 # Silence a false positive GCC -Wdeprecated-copy warning in cases where
102 check_cxx_compiler_flag("-Wno-deprecated-copy" CXX_SUPPORTS_WNO_DEPRECTAED_COPY)
103 append_if(CXX_SUPPORTS_WNO_DEPRECTAED_COPY "-Wno-deprecated-copy" CMAKE_CXX_FLAGS)
107 # Installing the headers and docs needs to depend on generating any public
109 # mlir-generic-headers are dialect-independent.
110 add_custom_target(mlir-generic-headers)
111 set_target_properties(mlir-generic-headers PROPERTIES FOLDER "MLIR/Resources")
112 # mlir-headers may be dialect-dependent.
113 add_custom_target(mlir-headers)
114 set_target_properties(mlir-headers PROPERTIES FOLDER "MLIR/Resources")
115 add_dependencies(mlir-headers mlir-generic-headers)
116 add_custom_target(mlir-doc)
117 set_target_properties(mlir-doc PROPERTIES FOLDER "MLIR/Docs")
137 set(MLIR_ENABLE_SPIRV_CPU_RUNNER 0 CACHE BOOL "Enable building the MLIR SPIR-V cpu runner")
156 under lib/objects-{CMAKE_BUILD_TYPE}.")
158 set(MLIR_BUILD_MLIR_C_DYLIB 0 CACHE BOOL "Builds libMLIR-C shared library.")
164 ${MLIR_MAIN_INCLUDE_DIR}/mlir/Config/mlir-config.h.cmake
165 ${MLIR_INCLUDE_DIR}/mlir/Config/mlir-config.h)
167 #-------------------------------------------------------------------------------
170 # The pybind11 library can be found (set with -DPYBIND_DIR=...)
171 # The python executable is correct (set with -DPython3_EXECUTABLE=...)
175 #-------------------------------------------------------------------------------
187 python features. Super-projects that wish to control their own setup \
206 # Adding tools/mlir-tblgen here as calling add_tablegen sets some variables like
209 add_subdirectory(tools/mlir-linalg-ods-gen)
210 add_subdirectory(tools/mlir-pdll)
211 add_subdirectory(tools/mlir-tblgen)
212 add_subdirectory(tools/mlir-src-sharder)
222 # C API needs all dialects for registration, but should be built before tests.
226 add_definitions(-DMLIR_INCLUDE_TESTS)
241 # Python sources: built extensions come in via lib/Bindings/Python
249 option(MLIR_INCLUDE_DOCS "Generate build targets for the MLIR docs."
252 add_subdirectory(docs)
256 install(DIRECTORY include/mlir include/mlir-c
258 COMPONENT mlir-headers
267 install(DIRECTORY ${MLIR_INCLUDE_DIR}/mlir ${MLIR_INCLUDE_DIR}/mlir-c
269 COMPONENT mlir-headers
281 add_llvm_install_targets(install-mlir-headers
282 DEPENDS mlir-headers
283 COMPONENT mlir-headers)
288 add_custom_target(mlir-libraries)
289 set_target_properties(mlir-libraries PROPERTIES FOLDER "MLIR/Metatargets")
292 add_llvm_install_targets(install-mlir-libraries
293 DEPENDS mlir-libraries
294 COMPONENT mlir-libraries)
301 add_dependencies(mlir-libraries ${lib})
303 add_dependencies(install-mlir-libraries install-${lib})
304 add_dependencies(install-mlir-libraries-stripped install-${lib}-stripped)