* The available backends for matrix multiplication shown in this sample. */
| 26 | * The available backends for matrix multiplication shown in this sample. |
| 27 | */ |
| 28 | enum class Backend : uint8_t { |
| 29 | /// Auto-vectorization only. |
| 30 | kAutoVectorization = 0, |
| 31 | |
| 32 | /// C++ std::simd. |
| 33 | kCxxSimd = 1, |
| 34 | |
| 35 | /// Clang's arch-generic vector types. |
| 36 | kClangVector = 2, |
| 37 | |
| 38 | /// Clang's built-in matrix type. |
| 39 | kClangMatrix = 3, |
| 40 | |
| 41 | /// OpenMP SIMD. |
| 42 | kOpenMp = 4, |
| 43 | }; |
| 44 | |
| 45 | /// Errors returned by BenchmarkMatrixMultiplication. |
| 46 | enum class BenchmarkError : int8_t { |
nothing calls this directly
no outgoing calls
no test coverage detected