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


llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
123.100 [670/64/2926] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreAllocateWWMRegs.cpp.o
123.136 [669/64/2927] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPeepholeSDWA.cpp.o
123.177 [668/64/2928] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPostRABundler.cpp.o
123.264 [667/64/2929] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreEmitPeephole.cpp.o
123.286 [666/64/2930] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIShrinkInstructions.cpp.o
123.300 [665/64/2931] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIRegisterInfo.cpp.o
123.302 [664/64/2932] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIWholeQuadMode.cpp.o
123.369 [663/64/2933] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIProgramInfo.cpp.o
132.154 [662/64/2934] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandReductions.cpp.o
136.511 [661/64/2935] 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++ -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-rel-x86-64-b1/build/lib/Target/AMDGPU -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-rel-x86-64-b1/build/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/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 -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-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/ml-opt-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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-rel-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