llvm-project/openmp/runtime/src
Dimitry Andric 87e7f895bb Use correct way to test for MIPS arch after rOMP355687
Summary:
I ran into some issues after rOMP355687, where __atomic_fetch_add was
being used incorrectly on x86, and this turns out to be caused by the
following added conditionals:

```
#if defined(KMP_ARCH_MIPS)
```

The problem is, these macros are always defined, and are either 0 or 1
depending on the architecture.  E.g. the correct way to test for MIPS
is:

```
#if KMP_ARCH_MIPS
```

Reviewers: petarj, jlpeyton, Hahnfeld, AndreyChurbanov

Reviewed By: petarj, AndreyChurbanov

Subscribers: AndreyChurbanov, sdardis, arichardson, atanasyan, jfb, jdoerfert, openmp-commits, llvm-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D60938

llvm-svn: 358911
2019-04-22 19:20:46 +00:00
..
i18n [OpenMP 5.0] Deprecate nest-var and associated features 2019-02-28 20:47:21 +00:00
include [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
thirdparty/ittnotify Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
CMakeLists.txt [OpenMP] Remove deprecated taskq 2019-03-15 18:24:59 +00:00
dllexports [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
exports_so.txt [OpenMP] Clean up load balancing dynamic mode 2019-04-08 17:50:02 +00:00
extractExternal.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp.h [OpenMP] Exchange code in asm file for inline assembly 2019-04-15 19:19:57 +00:00
kmp_affinity.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_affinity.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_alloc.cpp [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_atomic.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_atomic.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_barrier.cpp [OpenMP][OMPT] Distinguish different barrier kinds 2019-02-28 20:55:39 +00:00
kmp_cancel.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_config.h.cmake Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_csupport.cpp [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_debug.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_debug.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_debugger.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_debugger.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_dispatch.cpp [OpenMP][Stats] Fix stats gathering for distribute and team clause 2019-04-03 18:53:26 +00:00
kmp_dispatch.h [OpenMP] Make use of sched_yield optional in runtime 2019-02-28 19:11:29 +00:00
kmp_dispatch_hier.h [OpenMP] Add LLVM license header to file 2019-03-25 22:36:31 +00:00
kmp_environment.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_environment.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_error.cpp [OpenMP] Remove deprecated taskq 2019-03-15 18:24:59 +00:00
kmp_error.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_ftn_cdecl.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_ftn_entry.h [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_ftn_extra.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_ftn_os.h [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_ftn_stdcall.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_global.cpp [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_gsupport.cpp [OpenMP] Adding GOMP compatible cancellation 2019-02-19 18:47:57 +00:00
kmp_i18n.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_i18n.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_import.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_io.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_io.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_itt.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_itt.h [OpenMP] Make use of sched_yield optional in runtime 2019-02-28 19:11:29 +00:00
kmp_itt.inl Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_lock.cpp [OpenMP] Make use of sched_yield optional in runtime 2019-02-28 19:11:29 +00:00
kmp_lock.h [OpenMP] Make use of sched_yield optional in runtime 2019-02-28 19:11:29 +00:00
kmp_omp.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_os.h Use correct way to test for MIPS arch after rOMP355687 2019-04-22 19:20:46 +00:00
kmp_platform.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_runtime.cpp Fixed memory leak reported in Bugzilla: 2019-04-17 10:44:28 +00:00
kmp_safe_c_api.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_sched.cpp [OpenMP][Stats] Fix stats gathering for distribute and team clause 2019-04-03 18:53:26 +00:00
kmp_settings.cpp Fixed possible out of bound array access. 2019-04-11 15:03:44 +00:00
kmp_settings.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_stats.cpp [OpenMP][Stats] Fix stats gathering for distribute and team clause 2019-04-03 18:53:26 +00:00
kmp_stats.h [OpenMP][Stats] Fix stats gathering for distribute and team clause 2019-04-03 18:53:26 +00:00
kmp_stats_timing.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_stats_timing.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_str.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_str.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_stub.cpp [OpenMP] Implement 5.0 memory management 2019-04-08 17:59:28 +00:00
kmp_stub.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_taskdeps.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_taskdeps.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_tasking.cpp [OpenMP] Make use of sched_yield optional in runtime 2019-02-28 19:11:29 +00:00
kmp_taskq.cpp [OpenMP] Remove deprecated taskq 2019-03-15 18:24:59 +00:00
kmp_threadprivate.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_utility.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_version.cpp [OpenMP] Add Intel 19.0 to list of compilers in kmp_version.cpp 2019-03-25 22:31:00 +00:00
kmp_version.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_wait_release.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
kmp_wait_release.h [OpenMP] Clean up load balancing dynamic mode 2019-04-08 17:50:02 +00:00
kmp_wrapper_getpid.h Fix gettid warnings on FreeBSD 2019-03-25 18:37:14 +00:00
kmp_wrapper_malloc.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
libomp.rc.var Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
ompt-event-specific.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
ompt-general.cpp [OMPT] Make sure that OMPT is enabled when accessing internals of the runtime 2019-01-30 08:41:06 +00:00
ompt-internal.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
ompt-specific.cpp [OpenMP][OMPT] Distinguish different barrier kinds 2019-02-28 20:55:39 +00:00
ompt-specific.h [OpenMP][OMPT] Distinguish different barrier kinds 2019-02-28 20:55:39 +00:00
test-touch.c Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
tsan_annotations.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
tsan_annotations.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
z_Linux_asm.S [OpenMP] Exchange code in asm file for inline assembly 2019-04-15 19:19:57 +00:00
z_Linux_util.cpp [OpenMP] Clean up load balancing dynamic mode 2019-04-08 17:50:02 +00:00
z_Windows_NT-586_asm.asm Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
z_Windows_NT-586_util.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
z_Windows_NT_util.cpp [OpenMP] Clean up load balancing dynamic mode 2019-04-08 17:50:02 +00:00