[llvm] Revert "[SPIRV] Add radians intrinsic" (PR #111398)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 10:52:25 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `llvm` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
279.900 [3436/58/1822] Linking CXX static library lib/libLLVMFrontendOffloading.a
279.973 [3435/58/1823] Linking CXX static library lib/libLLVMAMDGPUDesc.a
280.048 [3434/58/1824] Linking CXX static library lib/libLLVMAggressiveInstCombine.a
280.371 [3433/58/1825] Linking CXX static library lib/libLLVMInstrumentation.a
280.514 [3432/58/1826] Linking CXX static library lib/libLLVMInstCombine.a
281.099 [3431/58/1827] Linking CXX static library lib/libLLVMVectorize.a
281.300 [3430/58/1828] Linking CXX static library lib/libLLVMObjCARCOpts.a
281.447 [3429/58/1829] Linking CXX static library lib/libLLVMScalarOpts.a
281.491 [3428/58/1830] Linking CXX static library lib/libLLVMHipStdPar.a
281.607 [3427/58/1831] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o
FAILED: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -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/build/buildbot/premerge-monolithic-linux/build/tools/clang/lib/CodeGen -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/include -I/build/buildbot/premerge-monolithic-linux/build/tools/clang/include -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o -MF tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o.d -o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:16:
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGHLSLRuntime.h:86:3: error: no member named 'spv_radians' in namespace 'llvm::Intrinsic'; did you mean 'dx_radians'?
  GENERATE_HLSL_INTRINSIC_FUNCTION(Radians, radians)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGHLSLRuntime.h:42:31: note: expanded from macro 'GENERATE_HLSL_INTRINSIC_FUNCTION'
      return llvm::Intrinsic::spv_##IntrinsicPostfix;                          \
             ~~~~~~~~~~~~~~~~~^
<scratch space>:29:1: note: expanded from here
spv_radians
^
/build/buildbot/premerge-monolithic-linux/build/include/llvm/IR/IntrinsicsDirectX.h:32:5: note: 'dx_radians' declared here
    dx_radians,                                // llvm.dx.radians
    ^
1 error generated.
281.622 [3427/57/1832] Linking CXX static library lib/libLLVMFuzzMutate.a
281.799 [3427/56/1833] Building CXX object tools/clang/tools/clang-linker-wrapper/CMakeFiles/clang-linker-wrapper.dir/ClangLinkerWrapper.cpp.o
281.844 [3427/55/1834] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestFromLLVMIRTranslation.dir/TestFromLLVMIRTranslation.cpp.o
281.999 [3427/54/1835] Building CXX object tools/mlir/lib/ExecutionEngine/CMakeFiles/MLIRJitRunner.dir/JitRunner.cpp.o
282.104 [3427/53/1836] Building CXX object tools/mlir/lib/ExecutionEngine/CMakeFiles/MLIRExecutionEngine.dir/ExecutionEngine.cpp.o
282.438 [3427/52/1837] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGLoopInfo.cpp.o
282.502 [3427/51/1838] Building CXX object tools/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/CMakeFiles/obj.MLIRLLVMIRToLLVMTranslation.dir/LLVMIRToLLVMTranslation.cpp.o
282.725 [3427/50/1839] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ABIInfo.cpp.o
282.924 [3427/49/1840] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDARuntime.cpp.o
282.938 [3427/48/1841] Linking CXX static library lib/libLLVMCodeGen.a
283.852 [3427/47/1842] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRImport.dir/ModuleImport.cpp.o
283.940 [3427/46/1843] Building CXX object tools/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/CMakeFiles/obj.MLIRLLVMToLLVMIRTranslation.dir/LLVMToLLVMIRTranslation.cpp.o
284.169 [3427/45/1844] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o
284.244 [3427/44/1845] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXX.cpp.o
284.498 [3427/43/1846] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXXABI.cpp.o
285.171 [3427/42/1847] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o
285.316 [3427/41/1848] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestToLLVMIRTranslation.dir/TestToLLVMIRTranslation.cpp.o
285.646 [3427/40/1849] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCoroutine.cpp.o
286.055 [3427/39/1850] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDANV.cpp.o
286.287 [3427/38/1851] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o
FAILED: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -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/build/buildbot/premerge-monolithic-linux/build/tools/clang/lib/CodeGen -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/include -I/build/buildbot/premerge-monolithic-linux/build/tools/clang/include -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o -MF tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o.d -o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGHLSLRuntime.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/clang/lib/CodeGen/CGHLSLRuntime.cpp:15:

```

</details>

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


More information about the llvm-commits mailing list