[PATCH] D89210: [Sema, CodeGen] Implement [[likely]] and [[unlikely]] in SwitchStmt

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 10:06:36 PDT 2020


Mordante updated this revision to Diff 298176.
Mordante marked 3 inline comments as done.
Mordante added a comment.

Address review comments:

- Improved the documentation
- Enabled clang-format on the new code
- Added unit tests
- Removed some unneeded code from the unit tests due to -disable-llvm-passes
- Added information for the release notes


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89210/new/

https://reviews.llvm.org/D89210

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/AST/Stmt.h
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/lib/AST/Stmt.cpp
  clang/lib/CodeGen/CGStmt.cpp
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/test/CodeGenCXX/attr-likelihood-switch-branch-weights.cpp
  clang/test/Preprocessor/has_attribute.cpp
  clang/www/cxx_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89210.298176.patch
Type: text/x-patch
Size: 26472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201014/29fab342/attachment-0001.bin>


More information about the cfe-commits mailing list