llvm / llvm/llvm-project

Complete VTable class name for types

Open
#163,601 25 comments 0 reactions 0 assignees View on GitHub
ClangIR good first issue
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Currently, in the RTTI Builder `vTableClassNameForType`, we return the VTable Class name for each type. This task's scope is to complete the support for the NYI types and add a test for that.

- In the [VTableClassNameForType](https://github.com/llvm/llvm-project/blob/d60d0381b41ee814c270ccee0e764b84096f8171/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp#L898) function, check branches with NYI error and choose one type.
- Find and return the correct VTableClass name, either from the ClangIR repository or the classical codegen.
- Write a test that emits RTTI for that type (Hint: One way is to throw expr with that type).

Notes:
- Please mention what type you will work on in this issue.
- Please keep it one PR per type.
- Check `Throws.cpp` and `CIRGenItaniumCXXAPI.cpp` changes for reference in #163078.
- If the type is handled by you, see no test for it, feel free to add one.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.