[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachineRegistry.h
Jim Laskey
jlaskey at apple.com
Thu Sep 1 14:38:37 PDT 2005
Changes in directory llvm/include/llvm/Target:
TargetMachineRegistry.h updated: 1.5 -> 1.6
---
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: (+7 -4)
TargetMachineRegistry.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/Target/TargetMachineRegistry.h
diff -u llvm/include/llvm/Target/TargetMachineRegistry.h:1.5 llvm/include/llvm/Target/TargetMachineRegistry.h:1.6
--- llvm/include/llvm/Target/TargetMachineRegistry.h:1.5 Thu Apr 21 15:53:44 2005
+++ llvm/include/llvm/Target/TargetMachineRegistry.h Thu Sep 1 16:38:20 2005
@@ -49,7 +49,8 @@
struct Entry {
const char *Name;
const char *ShortDesc;
- TargetMachine *(*CtorFn)(const Module &, IntrinsicLowering*);
+ TargetMachine *(*CtorFn)(const Module &, IntrinsicLowering*,
+ const std::string &);
unsigned (*ModuleMatchQualityFn)(const Module &M);
unsigned (*JITMatchQualityFn)();
@@ -57,7 +58,8 @@
protected:
Entry(const char *N, const char *SD,
- TargetMachine *(*CF)(const Module &, IntrinsicLowering*),
+ TargetMachine *(*CF)(const Module &, IntrinsicLowering*,
+ const std::string &),
unsigned (*MMF)(const Module &M), unsigned (*JMF)());
private:
const Entry *Next; // Next entry in the linked list.
@@ -80,8 +82,9 @@
&TargetMachineImpl::getJITMatchQuality) {
}
private:
- static TargetMachine *Allocator(const Module &M, IntrinsicLowering *IL) {
- return new TargetMachineImpl(M, IL);
+ static TargetMachine *Allocator(const Module &M, IntrinsicLowering *IL,
+ const std::string &FS) {
+ return new TargetMachineImpl(M, IL, FS);
}
};
More information about the llvm-commits
mailing list