[PATCH] D67833: [OpenMP 5.0] Codegen support to pass user-defined mapper functions to runtime
Joachim Protze via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 14:40:14 PDT 2020
protze.joachim added a comment.
I'm executing:
$ /usr/bin/python bin/llvm-lit -vv -a projects/openmp/libomptarget/test/offloading/target_depend_nowait.cpp
which executes:
"/dev/shm/jprotze/build-tsan-fiber-as/./bin/clang++" "-fopenmp" "-pthread" "-fno-experimental-isel" "-I" "/dev/shm/jprotze/llvm-project/openmp/libomptarget/test" "-I" "/dev/shm/jprotze/build-tsan-fiber-as/projects/openmp/libomptarget/../runtime/src" "-L" "/dev/shm/jprotze/build-tsan-fiber-as/lib" "-fopenmp-targets=x86_64-pc-linux-gnu" "/dev/shm/jprotze/llvm-project/openmp/libomptarget/test/offloading/target_depend_nowait.cpp" "-o" "/dev/shm/jprotze/build-tsan-fiber-as/projects/openmp/libomptarget/test/offloading/Output/target_depend_nowait.cpp.tmp-x86_64-pc-linux-gnu"
According to gdb, the segfault happens in 0x400fcf. %rcx is 0 at that time.
400f89: e8 62 fc ff ff callq 400bf0 <__kmpc_omp_target_task_alloc at plt>
400f8e: 45 31 c9 xor %r9d,%r9d
400f91: 31 c9 xor %ecx,%ecx
400f93: 48 8d 55 88 lea -0x78(%rbp),%rdx
400f97: 48 8b 75 e0 mov -0x20(%rbp),%rsi
400f9b: 48 89 70 28 mov %rsi,0x28(%rax)
400f9f: 48 8b 75 e8 mov -0x18(%rbp),%rsi
400fa3: 48 89 70 30 mov %rsi,0x30(%rax)
400fa7: 48 8b 75 d0 mov -0x30(%rbp),%rsi
400fab: 48 89 70 38 mov %rsi,0x38(%rax)
400faf: 48 8b 75 d8 mov -0x28(%rbp),%rsi
400fb3: 48 89 70 40 mov %rsi,0x40(%rax)
400fb7: 48 8b 34 25 40 1f 40 mov 0x401f40,%rsi
400fbe: 00
400fbf: 48 89 70 48 mov %rsi,0x48(%rax)
400fc3: 48 8b 34 25 48 1f 40 mov 0x401f48,%rsi
400fca: 00
400fcb: 48 89 70 50 mov %rsi,0x50(%rax)
> 400fcf: 48 8b 31 mov (%rcx),%rsi
400fd2: 48 89 70 58 mov %rsi,0x58(%rax)
400fd6: 48 8b 49 08 mov 0x8(%rcx),%rcx
400fda: 48 89 48 60 mov %rcx,0x60(%rax)
400fde: 48 b9 00 61 60 00 00 movabs $0x606100,%rcx
400fe5: 00 00 00
400fe8: 48 89 4d 88 mov %rcx,-0x78(%rbp)
400fec: 48 c7 45 90 04 00 00 movq $0x4,-0x70(%rbp)
400ff3: 00
400ff4: c6 45 98 03 movb $0x3,-0x68(%rbp)
400ff8: 48 c7 45 80 01 00 00 movq $0x1,-0x80(%rbp)
400fff: 00
401000: 48 8b 4d f8 mov -0x8(%rbp),%rcx
401004: 8b 31 mov (%rcx),%esi
401006: 48 b9 97 1f 40 00 00 movabs $0x401f97,%rcx
40100d: 00 00 00
401010: 48 89 4d b0 mov %rcx,-0x50(%rbp)
401014: 48 8d 7d a0 lea -0x60(%rbp),%rdi
401018: 48 89 95 18 fe ff ff mov %rdx,-0x1e8(%rbp)
40101f: 48 89 c2 mov %rax,%rdx
401022: b9 01 00 00 00 mov $0x1,%ecx
401027: 4c 8b 85 18 fe ff ff mov -0x1e8(%rbp),%r8
40102e: 48 c7 04 24 00 00 00 movq $0x0,(%rsp)
401035: 00
401036: e8 55 fb ff ff callq 400b90 <__kmpc_omp_task_with_deps at plt>
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67833/new/
https://reviews.llvm.org/D67833
More information about the llvm-commits
mailing list