[llvm-branch-commits] [llvm] 6fe7c37 - BPF: Add LLVMTransformUtils in CMakefile LINK_COMPONENTS

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 3 16:48:49 PDT 2021


Author: Yonghong Song
Date: 2021-05-03T16:48:11-07:00
New Revision: 6fe7c3728d1e98e05c67ceb03f429cb04a30e151

URL: https://github.com/llvm/llvm-project/commit/6fe7c3728d1e98e05c67ceb03f429cb04a30e151
DIFF: https://github.com/llvm/llvm-project/commit/6fe7c3728d1e98e05c67ceb03f429cb04a30e151.diff

LOG: BPF: Add LLVMTransformUtils in CMakefile LINK_COMPONENTS

Commit 1959ead525b8 ("BPF: Implement TTI.getCmpSelInstrCost()
properly") introduced a dependency on LLVMTransformUtils
library. Let us encode this dependency explicitly in
CMakefile to avoid build error.

(cherry picked from commit 6d102f15a3af0a44cf2e26677e260bee425312f3)

Added: 
    

Modified: 
    llvm/lib/Target/BPF/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/BPF/CMakeLists.txt b/llvm/lib/Target/BPF/CMakeLists.txt
index 189a3a84c3df..2d804ca8a73e 100644
--- a/llvm/lib/Target/BPF/CMakeLists.txt
+++ b/llvm/lib/Target/BPF/CMakeLists.txt
@@ -47,6 +47,7 @@ add_llvm_target(BPFCodeGen
   SelectionDAG
   Support
   Target
+  TransformUtils
 
   ADD_TO_COMPONENT
   BPF


        


More information about the llvm-branch-commits mailing list