LLVM API Documentation

X86.h

Go to the documentation of this file.
00001 //===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains the entry points for global functions defined in the x86
00011 // target library, as used by the LLVM JIT.
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #ifndef TARGET_X86_H
00016 #define TARGET_X86_H
00017 
00018 namespace llvm {
00019 
00020 class X86TargetMachine;
00021 class FunctionPass;
00022 class MachineCodeEmitter;
00023 class raw_ostream;
00024 
00025 /// createX86ISelDag - This pass converts a legalized DAG into a 
00026 /// X86-specific DAG, ready for instruction scheduling.
00027 ///
00028 FunctionPass *createX86ISelDag(X86TargetMachine &TM, bool Fast);
00029 
00030 /// createX86FloatingPointStackifierPass - This function returns a pass which
00031 /// converts floating point register references and pseudo instructions into
00032 /// floating point stack references and physical instructions.
00033 ///
00034 FunctionPass *createX86FloatingPointStackifierPass();
00035 
00036 /// createX87FPRegKillInserterPass - This function returns a pass which
00037 /// inserts FP_REG_KILL instructions where needed.
00038 ///
00039 FunctionPass *createX87FPRegKillInserterPass();
00040 
00041 /// createX86CodePrinterPass - Returns a pass that prints the X86
00042 /// assembly code for a MachineFunction to the given output stream,
00043 /// using the given target machine description.
00044 ///
00045 FunctionPass *createX86CodePrinterPass(raw_ostream &o, X86TargetMachine &tm);
00046 
00047 /// createX86CodeEmitterPass - Return a pass that emits the collected X86 code
00048 /// to the specified MCE object.
00049 FunctionPass *createX86CodeEmitterPass(X86TargetMachine &TM,
00050                                        MachineCodeEmitter &MCE);
00051 
00052 /// createX86EmitCodeToMemory - Returns a pass that converts a register
00053 /// allocated function into raw machine code in a dynamically
00054 /// allocated chunk of memory.
00055 ///
00056 FunctionPass *createEmitX86CodeToMemory();
00057 
00058 /// createX86MaxStackAlignmentCalculatorPass - This function returns a pass which
00059 /// calculates maximal stack alignment required for function
00060 ///
00061 FunctionPass *createX86MaxStackAlignmentCalculatorPass();
00062 
00063 } // End llvm namespace
00064 
00065 // Defines symbolic names for X86 registers.  This defines a mapping from
00066 // register name to register number.
00067 //
00068 #include "X86GenRegisterNames.inc"
00069 
00070 // Defines symbolic names for the X86 instructions.
00071 //
00072 #include "X86GenInstrNames.inc"
00073 
00074 #endif



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.