[clang] __builtin_verbose_trap should optionally also accept an immediate to emit
Open
clang:frontend
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
This would allow identifying where the trap came from even when no debug information is available. This would provide the same functionality that `__builtin_arm_trap` provides, but to `__builtin_verbose_trap`.
Contributor guide
Research direction
Start by locating the implementation and tests for __builtin_verbose_trap, then compare how __builtin_arm_trap handles an immediate argument. Add coverage for the optional immediate and verify that the resulting trap can identify its origin without debug information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100