Mercurial > hg > CbC > CbC_gcc
comparison gcc/memmodel.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Prototypes of memory model helper functions. | 1 /* Prototypes of memory model helper functions. |
2 Copyright (C) 2011-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2011-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
43 MEMMODEL_ACQ_REL = 4, | 43 MEMMODEL_ACQ_REL = 4, |
44 MEMMODEL_SEQ_CST = 5, | 44 MEMMODEL_SEQ_CST = 5, |
45 MEMMODEL_LAST = 6, | 45 MEMMODEL_LAST = 6, |
46 MEMMODEL_SYNC_ACQUIRE = MEMMODEL_ACQUIRE | MEMMODEL_SYNC, | 46 MEMMODEL_SYNC_ACQUIRE = MEMMODEL_ACQUIRE | MEMMODEL_SYNC, |
47 MEMMODEL_SYNC_RELEASE = MEMMODEL_RELEASE | MEMMODEL_SYNC, | 47 MEMMODEL_SYNC_RELEASE = MEMMODEL_RELEASE | MEMMODEL_SYNC, |
48 MEMMODEL_SYNC_SEQ_CST = MEMMODEL_SEQ_CST | MEMMODEL_SYNC | 48 MEMMODEL_SYNC_SEQ_CST = MEMMODEL_SEQ_CST | MEMMODEL_SYNC, |
49 /* Say that all the higher bits are valid target extensions. */ | |
50 MEMMODEL_MAX = INTTYPE_MAXIMUM (int) | |
49 }; | 51 }; |
50 | 52 |
51 /* Return the memory model from a host integer. */ | 53 /* Return the memory model from a host integer. */ |
52 static inline enum memmodel | 54 static inline enum memmodel |
53 memmodel_from_int (unsigned HOST_WIDE_INT val) | 55 memmodel_from_int (unsigned HOST_WIDE_INT val) |