| Issue |
233319
|
| Summary |
[LangRef] Document !call_target metadata
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
yqtian-se
|
The `!call_target` metadata kind is used on indirect call-like instructions, but it is not documented in the LLVM Language Reference.
Clang attaches a `DISubprogram` to indirect virtual calls, and CodeGen uses it when producing DWARF call-site information. The LangRef should document:
- which instructions may carry `!call_target`;
- the expected metadata operand and its meaning;
- how CodeGen uses the metadata; and
- the preservation or removal requirements for IR transformations and debug-info stripping.
The relevant implementation can be found in `clang/lib/CodeGen/CGDebugInfo.cpp`, `llvm/include/llvm/IR/FixedMetadataKinds.def`, and `llvm/lib/CodeGen/MachineFunction.cpp`.
This documentation gap was noticed during review of #233151 by @Michael137.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs