[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:42 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
179.596 [627/64/2946] Linking CXX static library lib/libLLVMX86AsmParser.a
179.610 [626/64/2947] Linking CXX static library lib/libLLVMWebAssemblyDisassembler.a
179.657 [625/64/2948] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreLowerThreadLocal.cpp.o
179.714 [624/64/2949] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreMachineFunctionInfo.cpp.o
179.769 [623/64/2950] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreMCInstLower.cpp.o
179.831 [622/64/2951] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreRegisterInfo.cpp.o
179.898 [621/64/2952] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreSubtarget.cpp.o
181.127 [620/64/2953] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsTargetTransformInfo.cpp.o
181.198 [619/64/2954] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetObjectFile.cpp.o
182.807 [618/64/2955] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-dev-x86-64-b1/build/lib/Target/AMDGPU -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -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/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                                             ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope; did you mean ‘getInterestingMemoryOperands’?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                                             ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  187 |     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  190 |     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  193 |     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  196 |     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  214 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:233:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  233 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, TrueMask,
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:259:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  259 |       Interesting.emplace_back(I, PtrOpNo, IsWrite, Ty, Alignment,
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:272:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’

```

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


More information about the llvm-commits mailing list