[llvm-commits] [PATCH] Remove "llvm/TargetTransformInfo.h" in llvm/Target/TargetMachine.h
NAKAMURA Takumi
geek4civic at gmail.com
Mon Dec 10 21:34:37 PST 2012
Hi nadav,
This patch reduces dependencies to Intrinsics.td introduced in r169711.
Tests are passing here;
http://bb.pgr.jp/builders/clang-3stage-x86_64-linux/builds/239
http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/588
http://bb.pgr.jp/builders/cmake-clang-i686-msvc10/builds/418
http://llvm-reviews.chandlerc.com/D202
Files:
clang/lib/CodeGen/BackendUtil.cpp
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/Target/MBlaze/InstPrinter/CMakeLists.txt
llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt
llvm/lib/Target/Mips/InstPrinter/CMakeLists.txt
llvm/tools/llc/llc.cpp
llvm/tools/lto/LTOCodeGenerator.cpp
llvm/tools/opt/opt.cpp
Index: clang/lib/CodeGen/BackendUtil.cpp
===================================================================
--- clang/lib/CodeGen/BackendUtil.cpp
+++ clang/lib/CodeGen/BackendUtil.cpp
@@ -22,6 +22,7 @@
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/TargetTransformInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/PrettyStackTrace.h"
Index: llvm/include/llvm/Target/TargetMachine.h
===================================================================
--- llvm/include/llvm/Target/TargetMachine.h
+++ llvm/include/llvm/Target/TargetMachine.h
@@ -18,8 +18,6 @@
#include "llvm/Pass.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetOptions.h"
-#include "llvm/Target/TargetTransformImpl.h"
-#include "llvm/TargetTransformInfo.h"
#include <cassert>
#include <string>
@@ -43,6 +41,8 @@
class TargetRegisterInfo;
class TargetSelectionDAGInfo;
class TargetSubtargetInfo;
+class ScalarTargetTransformInfo;
+class VectorTargetTransformInfo;
class formatted_raw_ostream;
class raw_ostream;
Index: llvm/lib/Target/MBlaze/InstPrinter/CMakeLists.txt
===================================================================
--- llvm/lib/Target/MBlaze/InstPrinter/CMakeLists.txt
+++ llvm/lib/Target/MBlaze/InstPrinter/CMakeLists.txt
@@ -5,4 +5,4 @@
MBlazeInstPrinter.cpp
)
-add_dependencies(LLVMMBlazeAsmPrinter intrinsics_gen MBlazeCommonTableGen)
+add_dependencies(LLVMMBlazeAsmPrinter MBlazeCommonTableGen)
Index: llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt
===================================================================
--- llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt
+++ llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt
@@ -4,4 +4,4 @@
MSP430InstPrinter.cpp
)
-add_dependencies(LLVMMSP430AsmPrinter intrinsics_gen MSP430CommonTableGen)
+add_dependencies(LLVMMSP430AsmPrinter MSP430CommonTableGen)
Index: llvm/lib/Target/Mips/InstPrinter/CMakeLists.txt
===================================================================
--- llvm/lib/Target/Mips/InstPrinter/CMakeLists.txt
+++ llvm/lib/Target/Mips/InstPrinter/CMakeLists.txt
@@ -4,4 +4,4 @@
MipsInstPrinter.cpp
)
-add_dependencies(LLVMMipsAsmPrinter intrinsics_gen MipsCommonTableGen)
+add_dependencies(LLVMMipsAsmPrinter MipsCommonTableGen)
Index: llvm/tools/llc/llc.cpp
===================================================================
--- llvm/tools/llc/llc.cpp
+++ llvm/tools/llc/llc.cpp
@@ -24,6 +24,7 @@
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/PassManager.h"
+#include "llvm/TargetTransformInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
Index: llvm/tools/lto/LTOCodeGenerator.cpp
===================================================================
--- llvm/tools/lto/LTOCodeGenerator.cpp
+++ llvm/tools/lto/LTOCodeGenerator.cpp
@@ -29,6 +29,7 @@
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/TargetTransformInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/Host.h"
Index: llvm/tools/opt/opt.cpp
===================================================================
--- llvm/tools/opt/opt.cpp
+++ llvm/tools/opt/opt.cpp
@@ -30,6 +30,7 @@
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/TargetTransformInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/IRReader.h"
#include "llvm/Support/ManagedStatic.h"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D202.1.patch
Type: text/x-patch
Size: 3653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121210/e238f6d0/attachment.bin>
More information about the llvm-commits
mailing list