diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-07-24 12:09:31 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-06 17:41:03 -0400 |
commit | 704a6b594877fee52aea5ddd3dbdb7356f74f759 (patch) | |
tree | 1562622d74f17596887bf0573b96c54dc4435582 /src | |
parent | a9ec7186525e4fc3616dcb95c1de059211425f3c (diff) |
ac: add ac_atomic_inc_wrap / ac_atomic_dec_wrap support
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 2 | ||||
-rw-r--r-- | src/amd/common/ac_llvm_build.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 0943d0364dd..24970769b87 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -2580,6 +2580,8 @@ static const char *get_atomic_name(enum ac_atomic_op op) case ac_atomic_and: return "and"; case ac_atomic_or: return "or"; case ac_atomic_xor: return "xor"; + case ac_atomic_inc_wrap: return "inc"; + case ac_atomic_dec_wrap: return "dec"; } unreachable("bad atomic op"); } diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index e460d14e177..082201fb048 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -516,6 +516,8 @@ enum ac_atomic_op { ac_atomic_and, ac_atomic_or, ac_atomic_xor, + ac_atomic_inc_wrap, + ac_atomic_dec_wrap, }; enum ac_image_dim { |