summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetSubtarget.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-07-12 01:41:54 +0000
committerNate Begeman <natebegeman@mac.com>2005-07-12 01:41:54 +0000
commitf26625e1de0290de5e340e0ccbd25c6ad320cdc9 (patch)
tree04cd419b00f425b7932d9dd43a0671e4a7eaaace /llvm/lib/Target/TargetSubtarget.cpp
parent83b492b83c43f8d52326d0bcfd57699cbf5a4beb (diff)
downloadbcm5719-llvm-f26625e1de0290de5e340e0ccbd25c6ad320cdc9.tar.gz
bcm5719-llvm-f26625e1de0290de5e340e0ccbd25c6ad320cdc9.zip
Implement Subtarget support
Implement the X86 Subtarget. This consolidates the checks for target triple, and setting options based on target triple into one place. This allows us to convert the asm printer and isel over from being littered with "forDarwin", "forCygwin", etc. into just having the appropriate flags for each subtarget feature controlling the code for that feature. This patch also implements indirect external and weak references in the X86 pattern isel, for darwin. Next up is to convert over the asm printers to use this new interface. llvm-svn: 22389
Diffstat (limited to 'llvm/lib/Target/TargetSubtarget.cpp')
-rw-r--r--llvm/lib/Target/TargetSubtarget.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSubtarget.cpp b/llvm/lib/Target/TargetSubtarget.cpp
new file mode 100644
index 00000000000..ebb13084752
--- /dev/null
+++ b/llvm/lib/Target/TargetSubtarget.cpp
@@ -0,0 +1,22 @@
+//===-- TargetSubtarget.cpp - General Target Information -------------------==//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Nate Begeman and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file describes the general parts of a Subtarget.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Target/TargetSubtarget.h"
+using namespace llvm;
+
+//---------------------------------------------------------------------------
+// TargetSubtarget Class
+//
+TargetSubtarget::TargetSubtarget(const Module &M) {}
+
+TargetSubtarget::~TargetSubtarget() {}
OpenPOWER on IntegriCloud