2002-10-29 20:51:29 +00:00
|
|
|
//===-- llvm/Target/TargetMachineImpls.h - Target Descriptions --*- C++ -*-===//
|
2003-10-20 20:19:47 +00:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2001-09-14 03:37:52 +00:00
|
|
|
//
|
2002-10-29 20:51:29 +00:00
|
|
|
// This file defines the entry point to getting access to the various target
|
|
|
|
// machine implementations available to LLVM.
|
2001-09-14 03:37:52 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2001-07-21 12:39:03 +00:00
|
|
|
|
2002-10-29 20:51:29 +00:00
|
|
|
#ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H
|
|
|
|
#define LLVM_TARGET_TARGETMACHINEIMPLS_H
|
2001-07-21 12:39:03 +00:00
|
|
|
|
2003-11-11 22:41:34 +00:00
|
|
|
namespace llvm {
|
2004-03-04 19:16:23 +00:00
|
|
|
/// Command line options shared between TargetMachine implementations -
|
|
|
|
/// these should go in their own header eventually.
|
|
|
|
///
|
|
|
|
extern bool PrintMachineCode;
|
2003-11-11 22:41:34 +00:00
|
|
|
|
2003-12-28 09:48:17 +00:00
|
|
|
class TargetMachine;
|
|
|
|
class Module;
|
|
|
|
class IntrinsicLowering;
|
|
|
|
|
2004-02-13 23:36:03 +00:00
|
|
|
// 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);
|
|
|
|
|
2004-02-25 19:08:12 +00:00
|
|
|
// allocateSparcV9TargetMachine - Allocate and return a subclass of
|
2004-02-28 19:54:16 +00:00
|
|
|
// TargetMachine that implements the 64-bit Sparc backend. This takes
|
|
|
|
// ownership of the IntrinsicLowering pointer, deleting it when the target
|
|
|
|
// machine is destroyed.
|
2003-12-28 09:48:17 +00:00
|
|
|
//
|
2004-02-25 19:08:12 +00:00
|
|
|
TargetMachine *allocateSparcV9TargetMachine(const Module &M,
|
2003-12-28 09:48:17 +00:00
|
|
|
IntrinsicLowering *IL = 0);
|
|
|
|
|
2004-02-28 19:54:16 +00:00
|
|
|
// allocateSparcV8TargetMachine - Allocate and return a subclass of
|
|
|
|
// TargetMachine that implements the 32-bit Sparc backend. This takes
|
|
|
|
// ownership of the IntrinsicLowering pointer, deleting it when the target
|
|
|
|
// machine is destroyed.
|
|
|
|
//
|
|
|
|
TargetMachine *allocateSparcV8TargetMachine(const Module &M,
|
|
|
|
IntrinsicLowering *IL = 0);
|
|
|
|
|
2003-12-28 09:48:17 +00:00
|
|
|
// 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);
|
2004-02-02 19:05:08 +00:00
|
|
|
|
|
|
|
// 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);
|
2003-11-11 22:41:34 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2001-07-21 12:39:03 +00:00
|
|
|
#endif
|