[llvm] r342706 - [MCA] Remove dependency on CodeGen.

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 20 18:54:09 PDT 2018


Author: dberris
Date: Thu Sep 20 18:54:08 2018
New Revision: 342706

URL: http://llvm.org/viewvc/llvm-project?rev=342706&view=rev
Log:
[MCA] Remove dependency on CodeGen.

Summary:
There isn't any actual dependency - there's one #include from CodeGen
but nothing from the header is actually used.

With this change we can use the MCA library from CodeGen without
circular dependencies (e.g. for scheduling).

Reviewers: andreadb

Reviewed By: andreadb

Authored By: orodley

Subscribers: mgorny, gbedwell, llvm-commits

Differential Revision: https://reviews.llvm.org/D52288

Modified:
    llvm/trunk/tools/llvm-mca/lib/CMakeLists.txt
    llvm/trunk/tools/llvm-mca/lib/LLVMBuild.txt
    llvm/trunk/tools/llvm-mca/lib/Pipeline.cpp

Modified: llvm/trunk/tools/llvm-mca/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/lib/CMakeLists.txt?rev=342706&r1=342705&r2=342706&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/lib/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-mca/lib/CMakeLists.txt Thu Sep 20 18:54:08 2018
@@ -24,7 +24,6 @@ add_library(LLVMMCA
 
 llvm_update_compile_flags(LLVMMCA)
 llvm_map_components_to_libnames(libs
-  CodeGen
   MC
   Support
   )

Modified: llvm/trunk/tools/llvm-mca/lib/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/lib/LLVMBuild.txt?rev=342706&r1=342705&r2=342706&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/lib/LLVMBuild.txt (original)
+++ llvm/trunk/tools/llvm-mca/lib/LLVMBuild.txt Thu Sep 20 18:54:08 2018
@@ -19,4 +19,4 @@
 type = Library
 name = MCA
 parent = Libraries
-required_libraries = CodeGen MC Support
+required_libraries = MC Support

Modified: llvm/trunk/tools/llvm-mca/lib/Pipeline.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/lib/Pipeline.cpp?rev=342706&r1=342705&r2=342706&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/lib/Pipeline.cpp (original)
+++ llvm/trunk/tools/llvm-mca/lib/Pipeline.cpp Thu Sep 20 18:54:08 2018
@@ -15,7 +15,6 @@
 
 #include "Pipeline.h"
 #include "HWEventListener.h"
-#include "llvm/CodeGen/TargetSchedule.h"
 #include "llvm/Support/Debug.h"
 
 namespace mca {




More information about the llvm-commits mailing list