llvm / llvm/llvm-project

[clang] __builtin_verbose_trap should optionally also accept an immediate to emit

Open
#218,477 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.