Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
MicroBenchmarks/LoopVectorization/CMakeLists.txt
# Only enable verification of results if neither 'benchmarking only' has been | # Only enable verification of results if neither 'benchmarking only' has been | ||||
# selected nor -ffast-math is passed. | # selected nor -ffast-math is passed. | ||||
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER) | string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER) | ||||
set(COMBINED_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} ${CPPFLAGS}") | set(COMBINED_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} ${CPPFLAGS}") | ||||
if (NOT TEST_SUITE_BENCHMARKING_ONLY AND | if (NOT TEST_SUITE_BENCHMARKING_ONLY AND | ||||
NOT ${COMBINED_CXX_FLAGS} MATCHES ".*-ffast-math.*") | NOT ${COMBINED_CXX_FLAGS} MATCHES ".*-ffast-math.*") | ||||
list(APPEND CPPFLAGS -DBENCH_AND_VERIFY) | list(APPEND CPPFLAGS -DBENCH_AND_VERIFY) | ||||
endif() | endif() | ||||
llvm_test_run() | llvm_test_run() | ||||
llvm_test_executable(LoopVectorizationBenchmarks | llvm_test_executable(LoopVectorizationBenchmarks | ||||
main.cpp | main.cpp | ||||
MathFunctions.cpp | MathFunctions.cpp | ||||
RuntimeChecks.cpp | RuntimeChecks.cpp | ||||
VectorOperations.cpp | |||||
) | ) | ||||
target_link_libraries(LoopVectorizationBenchmarks benchmark) | target_link_libraries(LoopVectorizationBenchmarks benchmark) |