From f26625e1de0290de5e340e0ccbd25c6ad320cdc9 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Tue, 12 Jul 2005 01:41:54 +0000 Subject: 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 --- llvm/lib/Target/TargetSubtarget.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 llvm/lib/Target/TargetSubtarget.cpp (limited to 'llvm/lib/Target/TargetSubtarget.cpp') 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() {} -- cgit v1.2.3