mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
434c86dd3f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5128 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//===-- 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();
|
|
|
|
// 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
|