Skip to content

[TableGen] Add explicit symbol visibility macros to code generated #107873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

fsfod
Copy link
Contributor

@fsfod fsfod commented Sep 9, 2024

Update llvm's TableGen to emit new explicit symbol visibility macros I added in #96630 to the function declarations it creates
The generated functions need to be exported from llvm's shared library for Clang and some OpenMP tests. @compnerd

@fsfod fsfod changed the title [TableGen] Update TableGen to add explicit symbol visibility macros to function declarations it creates [TableGen] Add explicit symbol visibility macros to code generated Sep 10, 2024
Update llvm's TableGen to add explicit symbol visibility macros to function declarations it creates
The symbols need to be export from llvm's shared library for Clang and some OpenMP tests
@fsfod fsfod force-pushed the exported-api/tablegen branch from 47466b4 to f602bb4 Compare September 10, 2024 15:11
@fsfod
Copy link
Contributor Author

fsfod commented Sep 10, 2024

I've rebased and fixed the conflict

@tstellar
Copy link
Collaborator

Is this patch NFC since we aren't yet compiling with -fvisibility=hidden?

@fsfod
Copy link
Contributor Author

fsfod commented Sep 11, 2024

I would think so, but an in an offline chat with @compnerd he wondered why do we need to export this instead of clang and tests getting there own copy of the functions.

Copy link
Contributor

@kparzysz kparzysz left a comment

Choose a reason for hiding this comment

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

LGTM

@vgvassilev
Copy link
Contributor

LGTM

@kparzysz, could you merge this as iiuc @fsfod does not have commit access.

@fsfod, you will be doing a lot of these PRs, could you ask for commit access?

@tstellar tstellar merged commit 283c2c8 into llvm:main Sep 19, 2024
8 checks passed
tmsri pushed a commit to tmsri/llvm-project that referenced this pull request Sep 19, 2024
…lvm#107873)

Update llvm's TableGen to emit new explicit symbol visibility macros I
added in llvm#96630 to the function
declarations it creates
The generated functions need to be exported from llvm's shared library
for Clang and some OpenMP tests. @compnerd
@fsfod fsfod deleted the exported-api/tablegen branch September 20, 2024 21:50
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.

4 participants