[PATCH] D59467: [clang] Adding the Likely Attribute from C++2a to AST
Gauthier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 16:09:28 PDT 2019
Tyker updated this revision to Diff 191408.
Tyker added a comment.
Herald added a subscriber: jdoerfert.
added diagnostics for contradictory attributes like for if:
if (...) [[likely]]
return 1;
else [[likely]]
return 2;
handled the codegen for If to generate builtin_expect but i probably didn't do it the canonical way. i am awaiting advice of how to do it right.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59467/new/
https://reviews.llvm.org/D59467
Files:
clang/include/clang/AST/Stmt.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/ScopeInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaStmtAttr.cpp
clang/test/SemaCXX/cxx2a-likelihood-attr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59467.191408.patch
Type: text/x-patch
Size: 18504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190319/0334eb44/attachment-0001.bin>
More information about the cfe-commits
mailing list