Lines Matching refs:model
1 /* Prototypes of memory model helper functions.
26 /* Legacy sync operations set this upper flag in the memory model. This allows
32 /* Memory model without SYNC bit for targets/operations that do not care. */
35 /* Memory model types for the __atomic* builtins.
53 /* Return the memory model from a host integer. */
60 /* Return the base memory model from a host integer. */
67 /* Return TRUE if the memory model is RELAXED. */
69 is_mm_relaxed (enum memmodel model)
71 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELAXED;
74 /* Return TRUE if the memory model is CONSUME. */
76 is_mm_consume (enum memmodel model)
78 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_CONSUME;
81 /* Return TRUE if the memory model is ACQUIRE. */
83 is_mm_acquire (enum memmodel model)
85 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQUIRE;
88 /* Return TRUE if the memory model is RELEASE. */
90 is_mm_release (enum memmodel model)
92 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELEASE;
95 /* Return TRUE if the memory model is ACQ_REL. */
97 is_mm_acq_rel (enum memmodel model)
99 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQ_REL;
102 /* Return TRUE if the memory model is SEQ_CST. */
104 is_mm_seq_cst (enum memmodel model)
106 return (model & MEMMODEL_BASE_MASK) == MEMMODEL_SEQ_CST;
109 /* Return TRUE if the memory model is a SYNC variant. */
111 is_mm_sync (enum memmodel model)
113 return (model & MEMMODEL_SYNC);