forked from OSchip/llvm-project
parent
996795b0dd
commit
0cc5907728
|
@ -22,6 +22,7 @@
|
|||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/Support/Visibility.h"
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
#include <iostream>
|
||||
using namespace llvm;
|
||||
|
@ -32,7 +33,7 @@ namespace {
|
|||
}
|
||||
|
||||
namespace {
|
||||
class Emitter : public MachineFunctionPass {
|
||||
class VISIBILITY_HIDDEN Emitter : public MachineFunctionPass {
|
||||
const X86InstrInfo *II;
|
||||
MachineCodeEmitter &MCE;
|
||||
std::vector<std::pair<MachineBasicBlock *, unsigned> > BBRefs;
|
||||
|
|
|
@ -16,10 +16,11 @@
|
|||
#include "X86TargetMachine.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/CodeGen/ELFWriter.h"
|
||||
#include "llvm/Support/Visibility.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class X86ELFWriter : public ELFWriter {
|
||||
class VISIBILITY_HIDDEN X86ELFWriter : public ELFWriter {
|
||||
public:
|
||||
X86ELFWriter(std::ostream &O, X86TargetMachine &TM) : ELFWriter(O, TM) {
|
||||
e_machine = 3; // EM_386
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Visibility.h"
|
||||
#include "llvm/ADT/DepthFirstIterator.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
@ -50,7 +51,7 @@ namespace {
|
|||
Statistic<> NumFXCH("x86-codegen", "Number of fxch instructions inserted");
|
||||
Statistic<> NumFP ("x86-codegen", "Number of floating point instructions");
|
||||
|
||||
struct FPS : public MachineFunctionPass {
|
||||
struct VISIBILITY_HIDDEN FPS : public MachineFunctionPass {
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||
|
||||
virtual const char *getPassName() const { return "X86 FP Stackifier"; }
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "llvm/CodeGen/SelectionDAGISel.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Visibility.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
|
@ -77,7 +78,7 @@ namespace {
|
|||
/// ISel - X86 specific code to select X86 machine instructions for
|
||||
/// SelectionDAG operations.
|
||||
///
|
||||
class X86DAGToDAGISel : public SelectionDAGISel {
|
||||
class VISIBILITY_HIDDEN X86DAGToDAGISel : public SelectionDAGISel {
|
||||
/// ContainsFPCode - Every instruction we select that uses or defines a FP
|
||||
/// register should set this to true.
|
||||
bool ContainsFPCode;
|
||||
|
|
Loading…
Reference in New Issue