diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-02 05:53:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-02 05:53:25 +0000 |
commit | 36c2a0593509da714bea6457dd1b00a7417ce342 (patch) | |
tree | b654fb3d6a53d3a36ee9c2ac42d67576a05a932a /include/llvm/Target/TargetMachine.h | |
parent | 143e0ea43d042f1fe1bbe7130aa981a1a0d04386 (diff) | |
download | external_llvm-36c2a0593509da714bea6457dd1b00a7417ce342.zip external_llvm-36c2a0593509da714bea6457dd1b00a7417ce342.tar.gz external_llvm-36c2a0593509da714bea6457dd1b00a7417ce342.tar.bz2 |
Delete the V9 specific findOptimalStorageSize method, inlining it into all callers.
Substantially clean up all target implementations by having the OPTIONAL get*Info
methods return a pointer instead of a reference. This allows us to have default
implementations!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index cfefe34..1197830 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -71,15 +71,10 @@ public: // Interfaces to the major aspects of target machine information: // -- Instruction opcode and operand information // -- Pipelines and scheduling information - // -- Register information // -- Stack frame information - // -- Cache hierarchy information - // -- Machine-level optimization information (peephole only) // - virtual const TargetInstrInfo& getInstrInfo() const = 0; - virtual const TargetSchedInfo& getSchedInfo() const = 0; - virtual const TargetRegInfo& getRegInfo() const = 0; - virtual const TargetFrameInfo& getFrameInfo() const = 0; + virtual const TargetInstrInfo *getInstrInfo() const { return 0; } + virtual const TargetFrameInfo *getFrameInfo() const { return 0; } const TargetData &getTargetData() const { return DataLayout; } /// getRegisterInfo - If register information is available, return it. If @@ -93,11 +88,10 @@ public: /// virtual TargetJITInfo *getJITInfo() { return 0; } - // Data storage information. FIXME, this should be moved out to sparc - // specific code. - // - virtual unsigned findOptimalStorageSize(const Type* ty) const; - + // These are deprecated interfaces. + virtual const TargetSchedInfo *getSchedInfo() const { return 0; } + virtual const TargetRegInfo *getRegInfo() const { return 0; } + /// addPassesToEmitAssembly - Add passes to the specified pass manager to get /// assembly langage code emitted. Typically this will involve several steps /// of code generation. This method should return true if assembly emission |