2002-10-26 00:55:53 +02:00
|
|
|
//===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
|
2005-04-22 01:38:14 +02:00
|
|
|
//
|
2003-10-21 17:17:13 +02:00
|
|
|
// 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.
|
2005-04-22 01:38:14 +02:00
|
|
|
//
|
2003-10-21 17:17:13 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2002-10-26 00:55:53 +02:00
|
|
|
//
|
|
|
|
// This file contains the entry points for global functions defined in the x86
|
|
|
|
// target library, as used by the LLVM JIT.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef TARGET_X86_H
|
|
|
|
#define TARGET_X86_H
|
|
|
|
|
|
|
|
#include <iosfwd>
|
2003-11-11 23:41:34 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2006-03-14 00:20:37 +01:00
|
|
|
class X86TargetMachine;
|
2006-09-04 06:14:57 +02:00
|
|
|
class FunctionPassManager;
|
2003-08-13 20:15:29 +02:00
|
|
|
class FunctionPass;
|
2005-07-11 07:17:48 +02:00
|
|
|
class MachineCodeEmitter;
|
2002-10-26 00:55:53 +02:00
|
|
|
|
2005-11-15 01:40:23 +01:00
|
|
|
/// createX86ISelDag - This pass converts a legalized DAG into a
|
|
|
|
/// X86-specific DAG, ready for instruction scheduling.
|
|
|
|
///
|
2006-08-29 20:28:33 +02:00
|
|
|
FunctionPass *createX86ISelDag(X86TargetMachine &TM, bool Fast);
|
2005-01-07 08:48:33 +01:00
|
|
|
|
2003-01-13 01:45:29 +01:00
|
|
|
/// createX86FloatingPointStackifierPass - This function returns a pass which
|
|
|
|
/// converts floating point register references and pseudo instructions into
|
|
|
|
/// floating point stack references and physical instructions.
|
2002-12-28 21:26:16 +01:00
|
|
|
///
|
2003-08-13 20:15:29 +02:00
|
|
|
FunctionPass *createX86FloatingPointStackifierPass();
|
2002-10-29 23:37:54 +01:00
|
|
|
|
2003-07-23 22:25:08 +02:00
|
|
|
/// createX86CodePrinterPass - Returns a pass that prints the X86
|
|
|
|
/// assembly code for a MachineFunction to the given output stream,
|
2005-07-11 07:17:48 +02:00
|
|
|
/// using the given target machine description.
|
2002-10-29 23:37:54 +01:00
|
|
|
///
|
2006-03-14 00:20:37 +01:00
|
|
|
FunctionPass *createX86CodePrinterPass(std::ostream &o, X86TargetMachine &tm);
|
2002-10-26 00:55:53 +02:00
|
|
|
|
2005-07-11 07:17:48 +02:00
|
|
|
/// createX86CodeEmitterPass - Return a pass that emits the collected X86 code
|
|
|
|
/// to the specified MCE object.
|
2006-07-25 22:40:54 +02:00
|
|
|
FunctionPass *createX86CodeEmitterPass(X86TargetMachine &TM,
|
|
|
|
MachineCodeEmitter &MCE);
|
2005-07-11 07:17:48 +02:00
|
|
|
|
2003-08-13 20:15:29 +02:00
|
|
|
/// createX86EmitCodeToMemory - Returns a pass that converts a register
|
|
|
|
/// allocated function into raw machine code in a dynamically
|
|
|
|
/// allocated chunk of memory.
|
2002-10-26 00:55:53 +02:00
|
|
|
///
|
2003-08-13 20:15:29 +02:00
|
|
|
FunctionPass *createEmitX86CodeToMemory();
|
2002-10-26 00:55:53 +02:00
|
|
|
|
2005-01-07 08:48:33 +01:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2003-08-03 17:48:55 +02:00
|
|
|
// Defines symbolic names for X86 registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
//
|
|
|
|
#include "X86GenRegisterNames.inc"
|
|
|
|
|
2003-08-03 23:57:05 +02:00
|
|
|
// Defines symbolic names for the X86 instructions.
|
|
|
|
//
|
|
|
|
#include "X86GenInstrNames.inc"
|
2002-10-26 00:55:53 +02:00
|
|
|
|
|
|
|
#endif
|