aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetMachineImpls.h
blob: 5e10c5c951ca06311078273ca20a467ef5b851cb (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
//===-- llvm/Target/TargetMachineImpls.h - Target Descriptions --*- C++ -*-===//
//
// 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 TM {
  enum {
    PtrSizeMask  = 1,
    PtrSize32    = 0,
    PtrSize64    = 1,

    EndianMask   = 2,
    LittleEndian = 0,
    BigEndian    = 2,
  };
}

class TargetMachine;

// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
// that implements the Sparc backend.
//
TargetMachine *allocateSparcTargetMachine(unsigned Configuration =
                                          TM::PtrSize64|TM::BigEndian);

// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
// that implements the X86 backend.  The X86 target machine can run in
// "emulation" mode, where it is capable of emulating machines of larger pointer
// size and different endianness if desired.
//
TargetMachine *allocateX86TargetMachine(unsigned Configuration =
                                        TM::PtrSize32|TM::LittleEndian);

#endif