Hi, In order to generate code for omp_atomic, I use force_gimple_operand which calls gimplify_omp_atomic; in some cases it calls gimplify_omp_atomic_pipeline, which expands the atomic operation to a cycle (implementing it using atomic compare-and-swap primitive). However, the cond_expr that is generated is structured, and needs to be lowered.
Any suggestions on how to create low gimple code for gimplify_omp_atomic_pipeline cases? Thanks, Razya