[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h TargetMachineRegistry.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 22 21:41:53 PST 2006
Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.61 -> 1.62
TargetMachineRegistry.h updated: 1.7 -> 1.8
---
Log message:
Eliminate IntrinsicLowering from TargetMachine.
---
Diffs of the changes: (+4 -15)
TargetMachine.h | 17 +++--------------
TargetMachineRegistry.h | 2 +-
2 files changed, 4 insertions(+), 15 deletions(-)
Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.61 llvm/include/llvm/Target/TargetMachine.h:1.62
--- llvm/include/llvm/Target/TargetMachine.h:1.61 Mon Mar 13 17:17:42 2006
+++ llvm/include/llvm/Target/TargetMachine.h Wed Mar 22 23:41:41 2006
@@ -33,7 +33,6 @@
class FunctionPassManager;
class PassManager;
class Pass;
-class IntrinsicLowering;
// Relocation model types.
namespace Reloc {
@@ -54,28 +53,24 @@
class TargetMachine {
const std::string Name;
const TargetData DataLayout; // Calculates type size & alignment
- IntrinsicLowering *IL; // Specifies how to lower intrinsic calls
TargetMachine(const TargetMachine&); // DO NOT IMPLEMENT
void operator=(const TargetMachine&); // DO NOT IMPLEMENT
protected: // Can only create subclasses...
- TargetMachine(const std::string &name, IntrinsicLowering *IL,
- bool LittleEndian = false,
+ TargetMachine(const std::string &name, bool LittleEndian = false,
unsigned char PtrSize = 8, unsigned char PtrAl = 8,
unsigned char DoubleAl = 8, unsigned char FloatAl = 4,
unsigned char LongAl = 8, unsigned char IntAl = 4,
unsigned char ShortAl = 2, unsigned char ByteAl = 1,
unsigned char BoolAl = 1);
- TargetMachine(const std::string &name, IntrinsicLowering *IL,
- const TargetData &TD);
+ TargetMachine(const std::string &name, const TargetData &TD);
/// This constructor is used for targets that support arbitrary TargetData
/// layouts, like the C backend. It initializes the TargetData to match that
/// of the specified module.
///
- TargetMachine(const std::string &name, IntrinsicLowering *IL,
- const Module &M);
+ TargetMachine(const std::string &name, const Module &M);
/// getSubtargetImpl - virtual method implemented by subclasses that returns
/// a reference to that target's TargetSubtarget-derived member variable.
@@ -99,12 +94,6 @@
const std::string &getName() const { return Name; }
- /// getIntrinsicLowering - This method returns a reference to an
- /// IntrinsicLowering instance which should be used by the code generator to
- /// lower unknown intrinsic functions to the equivalent LLVM expansion.
- ///
- IntrinsicLowering &getIntrinsicLowering() const { return *IL; }
-
// Interfaces to the major aspects of target machine information:
// -- Instruction opcode and operand information
// -- Pipelines and scheduling information
Index: llvm/include/llvm/Target/TargetMachineRegistry.h
diff -u llvm/include/llvm/Target/TargetMachineRegistry.h:1.7 llvm/include/llvm/Target/TargetMachineRegistry.h:1.8
--- llvm/include/llvm/Target/TargetMachineRegistry.h:1.7 Wed Mar 22 23:27:34 2006
+++ llvm/include/llvm/Target/TargetMachineRegistry.h Wed Mar 22 23:41:41 2006
@@ -80,7 +80,7 @@
}
private:
static TargetMachine *Allocator(const Module &M, const std::string &FS) {
- return new TargetMachineImpl(M, 0, FS);
+ return new TargetMachineImpl(M, FS);
}
};
More information about the llvm-commits
mailing list