Skip to content

Conversation

@badumbatish
Copy link
Contributor

@badumbatish badumbatish commented Sep 18, 2025

Related to #1898
This PR adds to the implementation of maybeEmitThunks in clang/lib/CIR/CodeGen/CIRGenVTables.cpp .

Newly declared/defined functions are ported from OG.

Some missings are Type::canLosslesslyBitCastTo and setDLLStorageClass.

No tests are added since the implementation is not finished yet.

@badumbatish badumbatish changed the title [CIR] Adding implementation and support skeleton for maybeEmitThunks [CIR] Add implementation and support skeleton for maybeEmitThunks Sep 18, 2025
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like all paths lead to an assert, and the rest is same as codegen, LGTM

@bcardosolopes bcardosolopes merged commit ecb3678 into llvm:main Sep 18, 2025
10 checks passed
@badumbatish badumbatish deleted the thunking_1 branch September 29, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants