2015-07-11 06:13:43 +08:00
|
|
|
//===- MCSchedule.cpp - Scheduling ------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the default scheduling model.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCSchedule.h"
|
2015-07-11 06:17:49 +08:00
|
|
|
#include <type_traits>
|
2015-07-11 06:13:43 +08:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
static_assert(std::is_pod<MCSchedModel>::value,
|
|
|
|
"We shouldn't have a static constructor here");
|
|
|
|
const MCSchedModel MCSchedModel::Default = {DefaultIssueWidth,
|
|
|
|
DefaultMicroOpBufferSize,
|
|
|
|
DefaultLoopMicroOpBufferSize,
|
|
|
|
DefaultLoadLatency,
|
|
|
|
DefaultHighLatency,
|
|
|
|
DefaultMispredictPenalty,
|
|
|
|
false,
|
|
|
|
true,
|
|
|
|
0,
|
|
|
|
nullptr,
|
|
|
|
nullptr,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
nullptr};
|