diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-11 04:15:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-11 04:15:52 +0000 |
commit | 635ffcdf58f9bdc35c4ad4969fb35dc3659cf384 (patch) | |
tree | 44883fd261fa1b4967d08de47074a109dc632330 /include | |
parent | 988a1a0c664daf3dd85a3bfdbe6e867371f2f3ee (diff) | |
download | external_llvm-635ffcdf58f9bdc35c4ad4969fb35dc3659cf384.zip external_llvm-635ffcdf58f9bdc35c4ad4969fb35dc3659cf384.tar.gz external_llvm-635ffcdf58f9bdc35c4ad4969fb35dc3659cf384.tar.bz2 |
Delete the allocate*TargetMachine functions. Move options to a header file
that makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetMachineImpls.h | 62 | ||||
-rw-r--r-- | include/llvm/Target/TargetOptions.h | 30 |
2 files changed, 30 insertions, 62 deletions
diff --git a/include/llvm/Target/TargetMachineImpls.h b/include/llvm/Target/TargetMachineImpls.h deleted file mode 100644 index e70c9b7..0000000 --- a/include/llvm/Target/TargetMachineImpls.h +++ /dev/null @@ -1,62 +0,0 @@ -//===-- llvm/Target/TargetMachineImpls.h - Target Descriptions --*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the entry point to getting access to the various target -// machine implementations available to LLVM. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H -#define LLVM_TARGET_TARGETMACHINEIMPLS_H - -namespace llvm { - /// Command line options shared between TargetMachine implementations - - /// these should go in their own header eventually. - /// - extern bool PrintMachineCode; - extern bool NoFramePointerElim; - - class TargetMachine; - class Module; - class IntrinsicLowering; - - // allocateCTargetMachine - Allocate and return a subclass of TargetMachine - // that implements emits C code. This takes ownership of the - // IntrinsicLowering pointer, deleting it when the target machine is - // destroyed. - // - TargetMachine *allocateCTargetMachine(const Module &M, - IntrinsicLowering *IL = 0); - - // allocateSparcV9TargetMachine - Allocate and return a subclass of - // TargetMachine that implements the 64-bit Sparc backend. This takes - // ownership of the IntrinsicLowering pointer, deleting it when the target - // machine is destroyed. - // - TargetMachine *allocateSparcV9TargetMachine(const Module &M, - IntrinsicLowering *IL = 0); - - // allocateX86TargetMachine - Allocate and return a subclass of TargetMachine - // that implements the X86 backend. This takes ownership of the - // IntrinsicLowering pointer, deleting it when the target machine is - // destroyed. - // - TargetMachine *allocateX86TargetMachine(const Module &M, - IntrinsicLowering *IL = 0); - - // allocatePowerPCTargetMachine - Allocate and return a subclass - // of TargetMachine that implements the PowerPC backend. This takes - // ownership of the IntrinsicLowering pointer, deleting it when - // the target machine is destroyed. - // - TargetMachine *allocatePowerPCTargetMachine(const Module &M, - IntrinsicLowering *IL = 0); -} // End llvm namespace - -#endif diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h new file mode 100644 index 0000000..b3668e2 --- /dev/null +++ b/include/llvm/Target/TargetOptions.h @@ -0,0 +1,30 @@ +//===-- llvm/Target/TargetOptions.h - Target Options ------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines command line option flags that are shared across various +// targets. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TARGET_TARGETOPTIONS_H +#define LLVM_TARGET_TARGETOPTIONS_H + +namespace llvm { + /// PrintMachineCode - This flag is enabled when the -print-machineinstrs + /// option is specified on the command line, and should enable debugging + /// output from the code generator. + extern bool PrintMachineCode; + + /// NoFramePointerElim - This flag is enabled when the -disable-fp-elim is + /// specified on the command line. If the target supports the frame pointer + /// elimination optimization, this option should disable it. + extern bool NoFramePointerElim; +} // End llvm namespace + +#endif |