[llvm] [Asan] Provide TTI hook to provide memory reference infromation of target intrinsics. (PR #97070)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 22:46:46 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/2944

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:16:7: note: scanning from here
entry:
      ^
<stdin>:17:2: note: possible intended match here
 %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:24:7: note: scanning from here
entry:
      ^
<stdin>:25:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:32:7: note: scanning from here
entry:
      ^
<stdin>:33:2: note: possible intended match here
 %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:40:7: note: scanning from here
entry:
      ^
<stdin>:41:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:180:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP0:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:48:7: note: scanning from here
...

```

https://github.com/llvm/llvm-project/pull/97070


More information about the llvm-commits mailing list