[PATCH] D118632: [Clang]OpenMP] Add the codegen support for `atomic compare`

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 17 13:16:55 PST 2022


ABataev added inline comments.


================
Comment at: clang/test/OpenMP/atomic_compare_codegen.cpp:6
+
+// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -target-cpu core2 -fopenmp-simd -fopenmp-version=51 -x c -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
+// %clang_cc1 -fopenmp-simd -fopenmp-version=51 -x c -triple x86_64-apple-darwin10 -target-cpu core2 -emit-pch -o %t %s
----------------
tianshilei1992 wrote:
> CodeGen for `-fopen-simd` is wrong. It doesn't emit corresponding atomic operations. I'll fix it.
The logic behind -fopenmp-simd is to emit the code only for simd specific instructions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118632



More information about the cfe-commits mailing list