Re: [PATCH][GCC][ARM] New helper functions to check atomicity requirements

2018-09-25 Thread Richard Earnshaw (lists)
On 24/09/18 10:22, Matthew Malcomson wrote: > A few places in the arm and aarch64 backends check whether an atomic > operation needs acquire or release semantics. > This is generally done with a check like > > (is_mm_relaxed (model) > || is_mm_consume (model) > || is_mm_release (model)) > > I

[PATCH][GCC][ARM] New helper functions to check atomicity requirements

2018-09-24 Thread Matthew Malcomson
A few places in the arm and aarch64 backends check whether an atomic operation needs acquire or release semantics. This is generally done with a check like (is_mm_relaxed (model) || is_mm_consume (model) || is_mm_release (model)) In this patch we introduce two helper functions to make things