This patch uses the DiagnosticPredicate for SVE predicate patterns
to improve their diagnostics, now giving a 'invalid operand' diagnostic
if the type is not an immediate or one of the expected pattern
labels.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM, this fixes some surprising error messages, where invalid predicate pattern was emitted for invalid operands (that are a valid predicate pattern, just not for this instruction or register operands). Thanks Sam for pointing that out in D47716