[llvm] [AMDGPU][True16][CodeGen] FLAT_load using D16 pseudo instruction (PR #114500)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 08:10:42 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `llvm` at step 5 "compile-openmp".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (compile-openmp) failure: build (failure)
...
88.240 [476/32/3853] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUCallLowering.cpp.o
88.290 [475/32/3854] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUHSAMetadataStreamer.cpp.o
89.597 [474/32/3855] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULowerModuleLDSPass.cpp.o
89.799 [473/32/3856] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsmPrinter.cpp.o
89.823 [472/32/3857] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
90.665 [471/32/3858] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUCodeGenPrepare.cpp.o
90.720 [470/32/3859] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSwLowerLDS.cpp.o
90.742 [469/32/3860] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyMetadata.cpp.o
91.608 [468/32/3861] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULowerBufferFatPointers.cpp.o
92.482 [467/32/3862] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.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/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/lib/Target/AMDGPU -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/include -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/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/AMDGPUMCInstLower.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.o -c /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp: In member function ‘void AMDGPUMCInstLower::lowerT16D16Helper(const llvm::MachineInstr*, llvm::MCInst&) const’:
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:126: error: ‘OPERAND_LAST’ is not a member of ‘llvm::AMDGPU::OpName’
  126 |   uint16_t OpName = AMDGPU::OpName::OPERAND_LAST;
      | 
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:129: error: cannot convert ‘llvm::AMDGPU::OpName’ to ‘uint16_t’ {aka ‘short unsigned int’} in assignment
  129 |       OpName = llvm::AMDGPU::OpName::vdst;
      | 
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:131: error: cannot convert ‘llvm::AMDGPU::OpName’ to ‘uint16_t’ {aka ‘short unsigned int’} in assignment
  131 |       OpName = llvm::AMDGPU::OpName::data0;
      | 
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:136: error: cannot convert ‘llvm::AMDGPU::OpName’ to ‘uint16_t’ {aka ‘short unsigned int’} in assignment
  135 |     OpName = AMDGPU::hasNamedOperand(Opcode, llvm::AMDGPU::OpName::vdata)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  136 |                  ? llvm::AMDGPU::OpName::vdata
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  137 |                  : llvm::AMDGPU::OpName::vdst;
      | 
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:141: error: cannot convert ‘uint16_t’ {aka ‘short unsigned int’} to ‘llvm::AMDGPU::OpName’
  141 |   int VDstOrVDataIdx = AMDGPU::getNamedOperandIdx(Opcode, OpName);
      | 
In file included from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:24,
                 from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/SIInstrInfo.h:20,
                 from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/GCNSubtarget.h:22,
                 from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h:17,
                 from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:18,
                 from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15:
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc:135914: note:   initializing argument 2 of ‘int16_t llvm::AMDGPU::getNamedOperandIdx(uint16_t, llvm::AMDGPU::OpName)’
135914 | int16_t getNamedOperandIdx(uint16_t Opcode, OpName Name);
       | 
93.347 [467/31/3863] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPURegBankLegalizeHelper.cpp.o
96.039 [467/30/3864] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUISelLowering.cpp.o
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp: In member function ‘llvm::SDValue llvm::AMDGPUTargetLowering::lowerFEXP10Unsafe(llvm::SDValue, const llvm::SDLoc&, llvm::SelectionDAG&, llvm::SDNodeFlags) const’:
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp:2974: warning: enumeral mismatch in conditional expression: ‘llvm::AMDGPUISD::NodeType’ vs ‘llvm::ISD::NodeType’ [-Wenum-compare]
 2974 |   const unsigned Exp2Op = VT == MVT::f32 ? AMDGPUISD::EXP : ISD::FEXP2;
      | 
96.345 [467/29/3865] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetObjectFile.cpp.o
96.378 [467/28/3866] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.o

```

</details>

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


More information about the llvm-commits mailing list