svbfloat16_t should only be defined if the __ARM_FEATURE_SVE_BF16
feature macro is enabled, similar to the scalar bfloat16_t type. Patch
also contains a fix for ld1ro intrinsic which should be guarded on
__ARM_FEATURE_SVE_BF16 rather than __ARM_FEATURE_BF16_SCALAR_ARITHMETIC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/utils/TableGen/SveEmitter.cpp | ||
---|---|---|
1094 | Can you also add an error if __ARM_FEATURE_SVE_BF16 is defined, but __ARM_FEATURE_BF16_SCALAR_ARITHMETIC isn't? #ifndef __ARM_FEATURE_BF16_SCALAR_ARITHMETIC #error "__ARM_FEATURE_BF16_SCALAR_ARITHMETIC must be defined when __ARM_FEATURE_SVE_BF16 is defined" #endif |
Comment Actions
Changes:
- Error if __ARM_FEATURE_BF16_SCALAR_ARITHMETIC not defined when defining __ARM_FEATURE_SVE_BF16.
clang/utils/TableGen/SveEmitter.cpp | ||
---|---|---|
1095 | Does it make sense to add a regression test to make sure this error is raised? |
Can you also add an error if __ARM_FEATURE_SVE_BF16 is defined, but __ARM_FEATURE_BF16_SCALAR_ARITHMETIC isn't?
something like: