|
| 1 | +set(CMAKE_CXX_STANDARD 17) |
1 | 2 | llvm_singlesource() |
2 | | -set_property(TARGET runtime-checks PROPERTY CXX_STANDARD 17) |
3 | | -set_property(TARGET early-exit PROPERTY CXX_STANDARD 17) |
4 | 3 |
|
5 | 4 | # The VPlan-native path is specific to llvm. |
6 | 5 | if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang") |
7 | 6 | add_subdirectory(VPlanNativePath) |
| 7 | + |
| 8 | + set(BASE_CXXFLAGS ${CXXFLAGS}) |
| 9 | + |
| 10 | + # Add targets for all tests with forced tail folding. |
| 11 | + list(APPEND CXXFLAGS |
| 12 | + "-mllvm" "-prefer-predicate-over-epilogue=predicate-dont-vectorize" |
| 13 | + "-mllvm" "-force-tail-folding-style=data" |
| 14 | + ) |
| 15 | + llvm_singlesource(PREFIX "tfactivelanemask-") |
| 16 | + |
| 17 | + # Add targets for all tests with forced tail folding using data without lane mask. |
| 18 | + set(CXXFLAGS ${BASE_CXXFLAGS}) |
| 19 | + list(APPEND CXXFLAGS |
| 20 | + "-mllvm" "-prefer-predicate-over-epilogue=predicate-dont-vectorize" |
| 21 | + "-mllvm" "-force-tail-folding-style=data-without-lane-mask" |
| 22 | + ) |
| 23 | + llvm_singlesource(PREFIX "tf-") |
| 24 | + |
| 25 | + # Add targets with instruction cost forced to 1. |
| 26 | + set(CXXFLAGS ${BASE_CXXFLAGS}) |
| 27 | + list(APPEND CXXFLAGS |
| 28 | + "-mllvm" "-force-target-instruction-cost=1" |
| 29 | + ) |
| 30 | + llvm_singlesource(PREFIX "ftic-") |
| 31 | + |
| 32 | + # Add targets with instruction cost forced to 1 and forced tail-folding. |
| 33 | + set(CXXFLAGS ${BASE_CXXFLAGS}) |
| 34 | + list(APPEND CXXFLAGS |
| 35 | + "-mllvm" "-force-target-instruction-cost=1" |
| 36 | + "-mllvm" "-prefer-predicate-over-epilogue=predicate-dont-vectorize" |
| 37 | + "-mllvm" "-force-tail-folding-style=data" |
| 38 | + ) |
| 39 | + llvm_singlesource(PREFIX "tfactivelanemask-ftic-") |
| 40 | + |
| 41 | + # Add targets with instruction cost forced to 1 and forced tail-folding without lane mask. |
| 42 | + set(CXXFLAGS ${BASE_CXXFLAGS}) |
| 43 | + list(APPEND CXXFLAGS |
| 44 | + "-mllvm" "-force-target-instruction-cost=1" |
| 45 | + "-mllvm" "-prefer-predicate-over-epilogue=predicate-dont-vectorize" |
| 46 | + "-mllvm" "-force-tail-folding-style=data-without-lane-mask" |
| 47 | + ) |
| 48 | + llvm_singlesource(PREFIX "tf-ftic-") |
| 49 | + |
| 50 | + set(CXXFLAGS ${BASE_CXXFLAGS}) |
8 | 51 | endif() |
0 commit comments