blob: a2488b5fe844d82fe95d25404caa78503e363fb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//===-- 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 {
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);
// 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);
// 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
|