Improve Sema checking of 9 existing inline asm constraints (‘x’, ‘Y*’, ‘L’, ‘e’, ‘Z’, ‘s’).
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
LGTM with the small change to rename isValidAsmValue at least.
include/clang/Basic/TargetInfo.h | ||
---|---|---|
591 ↗ | (On Diff #27930) | This would be better named as isValidAsmImmediate. |
lib/Basic/Targets.cpp | ||
3357 ↗ | (On Diff #27930) | Might be nice to have the interface take an ArrayRef instead. |
test/Sema/inline-asm-validate-x86.c | ||
56 ↗ | (On Diff #27930) | Invalid perhaps (instead of NotValid). |
I don't see a test for the 'k' support or a few other things either. Can you split this out a bit into the various parts for checking the existing constraints, and adding individual ones?
-eric
All issues are fixed. I'll update the patch soon.
What documentation updates do you mean?
Backend support is necessary for ‘v’, ‘k’, and ‘Yk’ constraints. They are AVX-512 specific and as far as I know work for AVX512 backend support is still ongoing.
Sure, will do.
Removed code for adding individual constraints (separate patch will be submitted later), fixed several reported issues