-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (30 loc) · 1.02 KB
/
CMakeLists.txt
File metadata and controls
39 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Only enable verification of results if neither 'benchmarking only' has been
# selected nor -ffast-math is passed.
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER)
set(COMBINED_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}} ${CPPFLAGS}")
if (NOT TEST_SUITE_BENCHMARKING_ONLY AND
NOT ${COMBINED_CXX_FLAGS} MATCHES ".*-ffast-math.*")
list(APPEND CPPFLAGS -DBENCH_AND_VERIFY)
endif()
llvm_test_run()
llvm_test_executable(LoopVectorizationBenchmarks
ControlFlowVectorization.cpp
ConditionalScalarAssignment.cpp
main.cpp
MathFunctions.cpp
RuntimeChecks.cpp
VectorOperations.cpp
)
target_link_libraries(LoopVectorizationBenchmarks benchmark)
llvm_test_run()
llvm_test_executable(LoopInterleavingBenchmarks
main.cpp
LoopInterleaving.cpp
)
target_link_libraries(LoopInterleavingBenchmarks benchmark)
llvm_test_run()
llvm_test_executable(LoopEpilogueVectorizationBenchmarks
main.cpp
EpilogueVectorization.cpp
)
target_link_libraries(LoopEpilogueVectorizationBenchmarks benchmark)