Add architecture definition files for Qualcomm Hexagon Vector Extension (HVX)

This commit is contained in:
cheng wang
2023-08-01 17:47:57 +00:00
committed by Antonio Sánchez
parent 2af700aa40
commit 66e8f38891
5 changed files with 611 additions and 0 deletions

View File

@@ -54,6 +54,8 @@
#elif defined(__AVX__)
// 32 bytes static alignment is preferred only if really required
#define EIGEN_IDEAL_MAX_ALIGN_BYTES 32
#elif defined __HVX__ && (__HVX_LENGTH__ == 128)
#define EIGEN_IDEAL_MAX_ALIGN_BYTES 128
#else
#define EIGEN_IDEAL_MAX_ALIGN_BYTES 16
#endif
@@ -417,6 +419,12 @@
#include <msa.h>
#endif
#elif defined __HVX__ && (__HVX_LENGTH__ == 128)
#define EIGEN_VECTORIZE
#define EIGEN_VECTORIZE_HVX
#include <hexagon_types.h>
#endif
#endif