[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp X86Subtarget.h X86TargetMachine.cpp X86TargetMachine.h
Jim Laskey
jlaskey at apple.com
Thu Sep 1 14:38:38 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86Subtarget.cpp updated: 1.5 -> 1.6
X86Subtarget.h updated: 1.4 -> 1.5
X86TargetMachine.cpp updated: 1.85 -> 1.86
X86TargetMachine.h updated: 1.29 -> 1.30
---
Log message:
1. Use SubtargetFeatures in llc/lli.
2. Propagate feature "string" to all targets.
3. Implement use of SubtargetFeatures in PowerPCTargetSubtarget.
---
Diffs of the changes: (+10 -5)
X86Subtarget.cpp | 2 +-
X86Subtarget.h | 4 +++-
X86TargetMachine.cpp | 6 ++++--
X86TargetMachine.h | 3 ++-
4 files changed, 10 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/X86/X86Subtarget.cpp
diff -u llvm/lib/Target/X86/X86Subtarget.cpp:1.5 llvm/lib/Target/X86/X86Subtarget.cpp:1.6
--- llvm/lib/Target/X86/X86Subtarget.cpp:1.5 Thu Aug 4 02:12:09 2005
+++ llvm/lib/Target/X86/X86Subtarget.cpp Thu Sep 1 16:38:21 2005
@@ -15,7 +15,7 @@
#include "llvm/Module.h"
using namespace llvm;
-X86Subtarget::X86Subtarget(const Module &M)
+X86Subtarget::X86Subtarget(const Module &M, const std::string &FS)
: TargetSubtarget(), stackAlignment(8),
indirectExternAndWeakGlobals(false), asmDarwinLinkerStubs(false),
asmLeadingUnderscore(false), asmAlignmentIsInBytes(false),
Index: llvm/lib/Target/X86/X86Subtarget.h
diff -u llvm/lib/Target/X86/X86Subtarget.h:1.4 llvm/lib/Target/X86/X86Subtarget.h:1.5
--- llvm/lib/Target/X86/X86Subtarget.h:1.4 Thu Aug 4 02:12:09 2005
+++ llvm/lib/Target/X86/X86Subtarget.h Thu Sep 1 16:38:21 2005
@@ -16,6 +16,8 @@
#include "llvm/Target/TargetSubtarget.h"
+#include <string>
+
namespace llvm {
class Module;
@@ -39,7 +41,7 @@
/// This constructor initializes the data members to match that
/// of the specified module.
///
- X86Subtarget(const Module &M);
+ X86Subtarget(const Module &M, const std::string &FS);
/// getStackAlignment - Returns the minimum alignment known to hold of the
/// stack frame on entry to the function and which must be maintained by every
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.85 llvm/lib/Target/X86/X86TargetMachine.cpp:1.86
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.85 Thu Aug 18 18:53:15 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Thu Sep 1 16:38:21 2005
@@ -90,9 +90,11 @@
/// X86TargetMachine ctor - Create an ILP32 architecture model
///
-X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL)
+X86TargetMachine::X86TargetMachine(const Module &M,
+ IntrinsicLowering *IL,
+ const std::string &FS)
: TargetMachine("X86", IL, true, 4, 4, 4, 4, 4),
- Subtarget(M),
+ Subtarget(M, FS),
FrameInfo(TargetFrameInfo::StackGrowsDown,
Subtarget.getStackAlignment(), -4),
JITInfo(*this) {
Index: llvm/lib/Target/X86/X86TargetMachine.h
diff -u llvm/lib/Target/X86/X86TargetMachine.h:1.29 llvm/lib/Target/X86/X86TargetMachine.h:1.30
--- llvm/lib/Target/X86/X86TargetMachine.h:1.29 Mon Jul 11 20:41:54 2005
+++ llvm/lib/Target/X86/X86TargetMachine.h Thu Sep 1 16:38:21 2005
@@ -30,7 +30,8 @@
TargetFrameInfo FrameInfo;
X86JITInfo JITInfo;
public:
- X86TargetMachine(const Module &M, IntrinsicLowering *IL);
+ X86TargetMachine(const Module &M, IntrinsicLowering *IL,
+ const std::string &FS);
virtual const X86InstrInfo *getInstrInfo() const { return &InstrInfo; }
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
More information about the llvm-commits
mailing list