[all-commits] [llvm/llvm-project] ccebf8: [Clang][OpenMP] Add support for compare capture in...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Feb 18 07:24:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccebf8ac8c61cbd46223abbeb4f29f4e1f7b490c
      https://github.com/llvm/llvm-project/commit/ccebf8ac8c61cbd46223abbeb4f29f4e1f7b490c
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/atomic_ast_print.cpp
    M clang/test/OpenMP/atomic_messages.cpp

  Log Message:
  -----------
  [Clang][OpenMP] Add support for compare capture in parser

This patch adds the support for `atomic compare capture` in parser and part of
sema. We don't create an AST node for this because the spec doesn't say `compare`
and `capture` clauses should be used tightly, so we cannot look one more token
ahead in the parser.

Reviewed By: ABataev

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




More information about the All-commits mailing list