LLVM  8.0.1
Classes | Namespaces | Macros | Functions | Variables
DFAPacketizer.cpp File Reference
#include "llvm/CodeGen/DFAPacketizer.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBundle.h"
#include "llvm/CodeGen/ScheduleDAG.h"
#include "llvm/CodeGen/ScheduleDAGInstrs.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrItineraries.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <iterator>
#include <memory>
#include <vector>
Include dependency graph for DFAPacketizer.cpp:

Go to the source code of this file.

Classes

class  llvm::DefaultVLIWScheduler
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define DEBUG_TYPE   "packets"
 

Functions

static DFAInput addDFAFuncUnits (DFAInput Inp, unsigned FuncUnits)
 
static DFAInput getDFAInsnInput (const std::vector< unsigned > &InsnClass)
 Return the DFAInput for an instruction class input vector. More...
 

Variables

static cl::opt< unsignedInstrLimit ("dfa-instr-limit", cl::Hidden, cl::init(0), cl::desc("If present, stops packetizing after N instructions"))
 
static unsigned InstrCount = 0
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "packets"

Definition at line 47 of file DFAPacketizer.cpp.

Function Documentation

◆ addDFAFuncUnits()

static DFAInput addDFAFuncUnits ( DFAInput  Inp,
unsigned  FuncUnits 
)
static

Definition at line 57 of file DFAPacketizer.cpp.

References DFA_MAX_RESOURCES.

Referenced by getDFAInsnInput(), and llvm::DFAPacketizer::getInsnInput().

◆ getDFAInsnInput()

static DFAInput getDFAInsnInput ( const std::vector< unsigned > &  InsnClass)
static

Return the DFAInput for an instruction class input vector.

This function is used in both DFAPacketizer.cpp and in DFAPacketizerEmitter.cpp.

Definition at line 64 of file DFAPacketizer.cpp.

References addDFAFuncUnits(), assert(), and DFA_MAX_RESTERMS.

Referenced by llvm::DFAPacketizer::getInsnInput().

Variable Documentation

◆ InstrCount

unsigned InstrCount = 0
static

◆ InstrLimit

cl::opt<unsigned> InstrLimit("dfa-instr-limit", cl::Hidden, cl::init(0), cl::desc("If present, stops packetizing after N instructions"))
static