diff options
author | Diana Picus <Diana-Magda.Picus@amd.com> | 2025-08-06 12:24:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-06 12:24:52 +0200 |
commit | 14cd1339318b16e08c1363ec6896bd7d1e4ae281 (patch) | |
tree | 1c66ebe7f415b4c9eccf0e910fb573240eac9a03 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | a5d85a6ab5daf67b67da654c90adc494d37833c8 (diff) | |
download | llvm-14cd1339318b16e08c1363ec6896bd7d1e4ae281.zip llvm-14cd1339318b16e08c1363ec6896bd7d1e4ae281.tar.gz llvm-14cd1339318b16e08c1363ec6896bd7d1e4ae281.tar.bz2 |
Revert "[AMDGPU] Intrinsic for launching whole wave functions" (#152286)
Reverts llvm/llvm-project#145859 because it broke a HIP test:
```
[34/59] Building CXX object External/HIP/CMakeFiles/TheNextWeek-hip-6.3.0.dir/workload/ray-tracing/TheNextWeek/main.cc.o
FAILED: External/HIP/CMakeFiles/TheNextWeek-hip-6.3.0.dir/workload/ray-tracing/TheNextWeek/main.cc.o
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/opt/botworker/llvm/External/hip/rocm-6.3.0 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -xhip -mfma -MD -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.3.0.dir/workload/ray-tracing/TheNextWeek/main.cc.o -MF External/HIP/CMakeFiles/TheNextWeek-hip-6.3.0.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -o External/HIP/CMakeFiles/TheNextWeek-hip-6.3.0.dir/workload/ray-tracing/TheNextWeek/main.cc.o -c /home/botworker/bbot/clang-hip-vega20/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
fatal error: error in backend: Cannot select: intrinsic %llvm.amdgcn.readfirstlane
```
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index d5b9040..d0815e9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7984,43 +7984,6 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, HasTailCall = true; return; } - case Intrinsic::amdgcn_call_whole_wave: { - TargetLowering::ArgListTy Args; - - // The first argument is the callee. Skip it when assembling the call args. - TargetLowering::ArgListEntry Arg; - for (unsigned Idx = 1; Idx < I.arg_size(); ++Idx) { - Arg.Node = getValue(I.getArgOperand(Idx)); - Arg.Ty = I.getArgOperand(Idx)->getType(); - Arg.setAttributes(&I, Idx); - Args.push_back(Arg); - } - - SDValue ConvControlToken; - if (auto Bundle = I.getOperandBundle(LLVMContext::OB_convergencectrl)) { - auto *Token = Bundle->Inputs[0].get(); - ConvControlToken = getValue(Token); - } - - TargetLowering::CallLoweringInfo CLI(DAG); - CLI.setDebugLoc(getCurSDLoc()) - .setChain(getRoot()) - .setCallee(CallingConv::AMDGPU_Gfx_WholeWave, I.getType(), - getValue(I.getArgOperand(0)), std::move(Args)) - .setTailCall(false) - .setIsPreallocated( - I.countOperandBundlesOfType(LLVMContext::OB_preallocated) != 0) - .setConvergent(I.isConvergent()) - .setConvergenceControlToken(ConvControlToken); - CLI.CB = &I; - - std::pair<SDValue, SDValue> Result = - lowerInvokable(CLI, /*EHPadBB=*/nullptr); - - if (Result.first.getNode()) - setValue(&I, Result.first); - return; - } case Intrinsic::ptrmask: { SDValue Ptr = getValue(I.getOperand(0)); SDValue Mask = getValue(I.getOperand(1)); |