summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/InstrScheduling.h
blob: 1f04d02bc188d48a35726beb3fd8eb5d8cf28b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===-- InstrScheduling.h - Interface To Instruction Scheduling -*- C++ -*-===//
//
// This file defines a minimal, but complete, interface to instruction
// scheduling.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CODEGEN_INSTR_SCHEDULING_H
#define LLVM_CODEGEN_INSTR_SCHEDULING_H

class FunctionPass;
class TargetMachine;

//---------------------------------------------------------------------------
// Function: createScheduleInstructionsWithSSAPass(..)
// 
// Purpose:
//   Entry point for instruction scheduling on SSA form.
//   Schedules the machine instructions generated by instruction selection.
//   Assumes that register allocation has not been done, i.e., operands
//   are still in SSA form.
//---------------------------------------------------------------------------

FunctionPass *createInstructionSchedulingWithSSAPass(const TargetMachine &TM);

#endif