diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 04:40:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 04:40:21 +0000 |
commit | eb26ddf559cf9ce2e198f7d9ea1241f2bbb6cf32 (patch) | |
tree | b777b2c79f6bf375b129cb0be69aba0bb2f574c8 /clang/test/OpenMP/atomic_codegen.cpp | |
parent | c63a98a662c257d5bf0ceb52003065658977ded5 (diff) | |
download | bcm5719-llvm-eb26ddf559cf9ce2e198f7d9ea1241f2bbb6cf32.tar.gz bcm5719-llvm-eb26ddf559cf9ce2e198f7d9ea1241f2bbb6cf32.zip |
Revert "[OPENMP] Improved code for generating debug info + generation of all OpenMP regions in termination scope Patch adds proper generation of debug info for all OpenMP regions. Also, all OpenMP regions are generated in a termination scope, because standard does not allow to throw exceptions out of structured blocks, associated with the OpenMP regions Differential Revision: http://reviews.llvm.org/D7935"
This reverts commit r231752.
It was failing to link with cmake:
lib64/libclangCodeGen.a(CGOpenMPRuntime.cpp.o):/home/espindola/llvm/llvm/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp:function clang::CodeGen::InlinedOpenMPRegionRAII::~InlinedOpenMPRegionRAII(): error: undefined reference to 'clang::CodeGen::EHScopeStack::popTerminate()'
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
llvm-svn: 231754
Diffstat (limited to 'clang/test/OpenMP/atomic_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/atomic_codegen.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/clang/test/OpenMP/atomic_codegen.cpp b/clang/test/OpenMP/atomic_codegen.cpp deleted file mode 100644 index 1ceb8638617..00000000000 --- a/clang/test/OpenMP/atomic_codegen.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp=libiomp5 -fexceptions -fcxx-exceptions -gline-tables-only -x c++ -emit-llvm %s -o - | FileCheck %s --check-prefix=TERM_DEBUG -// expected-no-diagnostics - -int a; -int &foo() { return a; } - -// TERM_DEBUG-LABEL: parallel_atomic -void parallel_atomic() { -#pragma omp parallel - { -#pragma omp atomic read - // TERM_DEBUG-NOT: __kmpc_global_thread_num - // TERM_DEBUG: invoke {{.*}}foo{{.*}}() - // TERM_DEBUG: unwind label %[[TERM_LPAD:.+]], - // TERM_DEBUG: load atomic i32, i32* @{{.+}} monotonic, {{.*}}!dbg [[READ_LOC:![0-9]+]] - foo() = a; -#pragma omp atomic write - // TERM_DEBUG-NOT: __kmpc_global_thread_num - // TERM_DEBUG: invoke {{.*}}foo{{.*}}() - // TERM_DEBUG: unwind label %[[TERM_LPAD:.+]], - // TERM_DEBUG-NOT: __kmpc_global_thread_num - // TERM_DEBUG: store atomic i32 {{%.+}}, i32* @{{.+}} monotonic, {{.*}}!dbg [[WRITE_LOC:![0-9]+]] - // TERM_DEBUG: [[TERM_LPAD]]: - // TERM_DEBUG: call void @__clang_call_terminate - // TERM_DEBUG: unreachable - a = foo(); - } -} -// TERM_DEBUG-DAG: [[READ_LOC]] = !MDLocation(line: 11, -// TERM_DEBUG-DAG: [[WRITE_LOC]] = !MDLocation(line: 17, |