[llvm] [SPIR-V] Add missing ScalarOpts library (PR #114384)
Sven van Haastregt via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 02:39:57 PDT 2024
https://github.com/svenvh created https://github.com/llvm/llvm-project/pull/114384
Fixes an "undefined reference to `llvm::createRegToMemWrapperPass()'" linker error introduced by cba70550ccf5 ("[SPIR-V] Fix BB ordering & register lifetime (#111026)", 2024-10-30).
>From d4bef0225cbf01092923a9b778e21fc9d7a79a06 Mon Sep 17 00:00:00 2001
From: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: Thu, 31 Oct 2024 09:35:16 +0000
Subject: [PATCH] [SPIR-V] Add missing ScalarOpts library
Fixes an "undefined reference to `llvm::createRegToMemWrapperPass()'"
linker error introduced by cba70550ccf5 ("[SPIR-V] Fix BB ordering &
register lifetime (#111026)", 2024-10-30).
---
llvm/lib/Target/SPIRV/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/SPIRV/CMakeLists.txt b/llvm/lib/Target/SPIRV/CMakeLists.txt
index 326343ae278148..aa83d997578fd5 100644
--- a/llvm/lib/Target/SPIRV/CMakeLists.txt
+++ b/llvm/lib/Target/SPIRV/CMakeLists.txt
@@ -56,6 +56,7 @@ add_llvm_target(SPIRVCodeGen
MC
SPIRVDesc
SPIRVInfo
+ ScalarOpts
SelectionDAG
Support
Target
More information about the llvm-commits
mailing list