6ed4152767e7bf3ea9f9630d5bc4b286c1a27a35
[oota-llvm.git] / include / llvm / Target / TargetMachineImpls.h
1 //===-- llvm/Target/TargetMachineImpls.h - Target Descriptions --*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the entry point to getting access to the various target
11 // machine implementations available to LLVM.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H
16 #define LLVM_TARGET_TARGETMACHINEIMPLS_H
17
18 namespace llvm {
19
20   class TargetMachine;
21   class Module;
22   class IntrinsicLowering;
23   
24   // allocateSparcTargetMachine - Allocate and return a subclass of
25   // TargetMachine that implements the Sparc backend.  This takes ownership of
26   // the IntrinsicLowering pointer, deleting it when the target machine is
27   // destroyed.
28   //
29   TargetMachine *allocateSparcTargetMachine(const Module &M,
30                                             IntrinsicLowering *IL = 0);
31   
32   // allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
33   // that implements the X86 backend.  This takes ownership of the
34   // IntrinsicLowering pointer, deleting it when the target machine is
35   // destroyed.
36   //
37   TargetMachine *allocateX86TargetMachine(const Module &M,
38                                           IntrinsicLowering *IL = 0);
39 } // End llvm namespace
40
41 #endif