-
Notifications
You must be signed in to change notification settings - Fork 168
[CIR][CIRGen][NFC] Handle PragmaComment
in emitTopLevelDecl
#1521
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
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
@bcardosolopes I've done some work on |
Thanks for working on this, awesome!
I see, https://llvm.org/docs/LangRef.html#dependent-libs-named-metadata is indeed not available yet. So you'll need to add support in LLVM dialect to lower it. I'm fine if you add without LLVM support for now and file an issue to tackle lowering later (because we don't yet have the feature available). I've been making lots of similar changes to LLVM dialect upstream, you can look to them as examples if you'd like to send a PR to upstream MLIR (I can help review too). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You either need to add a testcase or convey that this PR is a NFC change. The testcase would need to exercise PCK_Compiler, PCK_ExeStr and PCK_User because they are not asserting right now, so classify as a introduced feature.
clang/lib/CodeGen/CodeGenModule.cpp
Outdated
@@ -7149,7 +7149,6 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { | |||
case Decl::ObjCCompatibleAlias: | |||
ObjCRuntime->RegisterAlias(cast<ObjCCompatibleAliasDecl>(D)); | |||
break; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't change files outside CIR dir without a good reason, formatting is specially bad for rebasing, so you need to remove the changes to this file.
PragmaComment
in emitTopLevelDecl
PragmaComment
in emitTopLevelDecl
Pragma comments other than |
Decl::PragmaComment
#70This is not very useful now, as both branches of interest are NYI. I will try to implement the real features in subsequent patches.