[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
Thu Aug 8 21:09:07 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-debian` running on `gribozavr4` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
57.324 [96/57/3774] Copying llvm-locstats into /b/1/llvm-clang-x86_64-expensive-checks-debian/build/./bin
57.341 [96/56/3775] Linking CXX executable bin/llvm-rtdyld
57.435 [96/55/3776] Linking CXX executable bin/sancov
57.440 [96/54/3777] Linking CXX executable bin/llvm-nm
57.486 [96/53/3778] Linking CXX executable bin/llvm-objdump
57.490 [95/53/3779] Generating ../../bin/llvm-otool
57.502 [95/52/3780] Linking CXX executable bin/llvm-debuginfo-analyzer
57.605 [95/51/3781] Linking CXX executable bin/llvm-cfi-verify
59.176 [95/50/3782] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o
61.235 [95/49/3783] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DEXPENSIVE_CHECKS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/lib/Target/AMDGPU -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include -U_GLIBCXX_DEBUG -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
61.669 [95/48/3784] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceUsingSimplifyCFG.cpp.o
62.013 [95/47/3785] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
62.905 [95/46/3786] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o
64.393 [95/45/3787] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o
64.539 [95/44/3788] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.o
65.084 [95/43/3789] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o
65.217 [95/42/3790] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
65.834 [95/41/3791] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o
65.890 [95/40/3792] Building CXX object tools/lld/ELF/CMakeFiles/lldELF.dir/LTO.cpp.o
66.110 [95/39/3793] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o
66.300 [95/38/3794] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
66.424 [95/37/3795] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o
66.728 [95/36/3796] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o
66.821 [95/35/3797] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
66.885 [95/34/3798] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
67.180 [95/33/3799] Building CXX object tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
67.190 [95/32/3800] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o
67.219 [95/31/3801] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/CrashDebugger.cpp.o
67.315 [95/30/3802] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o
67.508 [95/29/3803] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o
67.522 [95/28/3804] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/DriverUtils.cpp.o
67.661 [95/27/3805] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
67.730 [95/26/3806] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o
67.750 [95/25/3807] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
67.757 [95/24/3808] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/LTO.cpp.o

```

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


More information about the llvm-commits mailing list