<commit_before>//===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
//
// This file contains the entry points for global functions defined in the x86
// target library, as used by the LLVM JIT.
//
// FIXME: This file will be dramatically changed in the future
//
//===----------------------------------------------------------------------===//

#ifndef TARGET_X86_H
#define TARGET_X86_H

#include <iosfwd>
class MachineFunction;
class Function;

/// X86PrintCode - Print out the specified machine code function to the
/// specified stream.  This function should work regardless of whether or not
/// the function is in SSA form or not.
///
void X86PrintCode(const MachineFunction *MF, std::ostream &O);

/// X86SimpleInstructionSelection - This function converts an LLVM function into
/// a machine code representation is a very simple peep-hole fashion.  The
/// generated code sucks but the implementation is nice and simple.
///
MachineFunction *X86SimpleInstructionSelection(Function &F);

/// X86SimpleRegisterAllocation - This function converts the specified machine
/// code function from SSA form to use explicit registers by spilling every
/// register.  Wow, great policy huh?
///
inline void X86SimpleRegisterAllocation(MachineFunction *MF) {}

/// X86EmitCodeToMemory - This function converts a register allocated function
/// into raw machine code in a dynamically allocated chunk of memory.  A pointer<commit_msg>Be compatible with sparc backend<commit_after>//===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
//
// This file contains the entry points for global functions defined in the x86
// target library, as used by the LLVM JIT.
//
// FIXME: This file will be dramatically changed in the future
//
//===----------------------------------------------------------------------===//

#ifndef TARGET_X86_H
#define TARGET_X86_H

#include <iosfwd>
class MachineFunction;
class Function;
class TargetMachine;

/// X86PrintCode - Print out the specified machine code function to the
/// specified stream.  This function should work regardless of whether or not
/// the function is in SSA form or not.
///
void X86PrintCode(const MachineFunction *MF, std::ostream &O);

/// X86SimpleInstructionSelection - This function converts an LLVM function into
/// a machine code representation is a very simple peep-hole fashion.  The
/// generated code sucks but the implementation is nice and simple.
///
MachineFunction *X86SimpleInstructionSelection(Function &F, TargetMachine &TM);

/// X86SimpleRegisterAllocation - This function converts the specified machine
/// code function from SSA form to use explicit registers by spilling every
/// register.  Wow, great policy huh?
///
inline void X86SimpleRegisterAllocation(MachineFunction *MF) {}

/// X86EmitCodeToMemory - This function converts a register allocated function
/// into raw machine code in a dynamically allocated chunk of memory.  A pointer
{'fraction_non_alphanumeric': 0.13977770293027955, 'fraction_numerical': 0.016167059616032334, 'mean_word_length': 3.0629274965800275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6470517', 'n_tokens_mistral': 750, 'n_tokens_neox': 721, 'n_words': 337}