[PATCH] D84225: [CFE] Add nomerge function attribute to inline assembly.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 15 05:47:26 PST 2022
aaron.ballman added inline comments.
================
Comment at: clang/lib/Sema/SemaStmtAttr.cpp:186
void VisitCallExpr(const CallExpr *E) { FoundCallExpr = true; }
+ void VisitAsmStmt(const AsmStmt *S) { FoundCallExpr = true; }
----------------
xbolva00 wrote:
> pengfei wrote:
> > xbolva00 wrote:
> > > This is totally wrong, just big hack to smuggle it here.
> > Could you explain more? Is there any unexpect sideeffect by this?
> It looks unfortunate to have something like AsmStmt in "CallExprFinder" with CallExpr as reference to clang's CallExpr.
>
> Kinda surprised that your list of reviewers missed ALL known clang developers/code owner, in this case especially @aaron.ballman .
Yeah, I would have expected that something named `CallExprFinder` would only find call expressions, not use of inline assembly. The class now seems to be misnamed and that may be surprising to users. This is then being built on top of by things like https://reviews.llvm.org/D119061.
I'm not certain what a reasonable name for the class is given that we now want to use it for different purposes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84225/new/
https://reviews.llvm.org/D84225
More information about the cfe-commits
mailing list