mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
e8e60bf45f
llvm-svn: 12893
70 lines
2.3 KiB
C++
70 lines
2.3 KiB
C++
//===- X86.td - Target definition file for the Intel X86 arch ---*- 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 is a target description file for the Intel i386 architecture, refered to
|
|
// here as the "X86" architecture.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Get the target-independent interfaces which we are implementing...
|
|
//
|
|
include "../Target.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Register File Description
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "X86RegisterInfo.td"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Instruction Descriptions
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "X86InstrInfo.td"
|
|
|
|
def X86InstrInfo : InstrInfo {
|
|
let PHIInst = PHI;
|
|
|
|
// Define how we want to layout our TargetSpecific information field... This
|
|
// should be kept up-to-date with the fields in the X86InstrInfo.h file.
|
|
let TSFlagsFields = ["FormBits",
|
|
"hasOpSizePrefix",
|
|
"Prefix",
|
|
"MemTypeBits",
|
|
"ImmTypeBits",
|
|
"FPFormBits",
|
|
"printImplicitUsesAfter",
|
|
"printImplicitUsesBefore",
|
|
"printImplicitDefsBefore",
|
|
"printImplicitDefsAfter",
|
|
"Opcode"];
|
|
let TSFlagsShifts = [0,
|
|
5,
|
|
6,
|
|
10,
|
|
13,
|
|
15,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22];
|
|
}
|
|
|
|
def X86 : Target {
|
|
// Specify the callee saved registers.
|
|
let CalleeSavedRegisters = [ESI, EDI, EBX, EBP];
|
|
|
|
// Yes, pointers are 32-bits in size.
|
|
let PointerType = i32;
|
|
|
|
// Information about the instructions...
|
|
let InstructionSet = X86InstrInfo;
|
|
}
|