Issue 152567
Summary [LLParser] Better diagnostic for icmp by providing full comparison code
Labels new issue
Assignees
Reporter badumbatish
    This is just a minor issue but sometimes writing test of llvm-ir, it's helpful if when inputting the wrong code for icmp, I can see which option is available for icmp in the terminal instead of checking llvm lang ref.


Before and after
```diff
- ./build/bin/llc: error: ./build/bin/llc: <stdin>:81:15: error: expected icmp predicate (e.g. 'eq')
+ ./build/bin/llc: error: ./build/bin/llc: <stdin>:81:15: error: expected icmp predicate. (e.g 'eq', 'ne', 'slt', 'sgt', 'sle', 'sge', 'ult', 'ugt', 'ule', 'uge')
```

Same with fcmp
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to