[all-commits] [llvm/llvm-project] 08196e: Implements [[likely]] and [[unlikely]] in IfStmt.

mordante via All-commits all-commits at lists.llvm.org
Wed Sep 9 11:50:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 08196e0b2e1f8aaa8a854585335c17ba479114df
      https://github.com/llvm/llvm-project/commit/08196e0b2e1f8aaa8a854585335c17ba479114df
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/Stmt.h
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/Stmt.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Sema/SemaStmt.cpp
    M clang/lib/Sema/SemaStmtAttr.cpp
    A clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp
    M clang/test/Preprocessor/has_attribute.cpp
    A clang/test/Sema/attr-likelihood.c
    A clang/test/SemaCXX/attr-likelihood.cpp
    M clang/www/cxx_status.html
    M llvm/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
    M llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp

  Log Message:
  -----------
  Implements [[likely]] and [[unlikely]] in IfStmt.

This is the initial part of the implementation of the C++20 likelihood
attributes. It handles the attributes in an if statement.

Differential Revision: https://reviews.llvm.org/D85091




More information about the All-commits mailing list