Fix build breaks on ml-* bots introduced by include cleanups
This commit is contained in:
parent
93b333908d
commit
261419273a
2 changed files with 14 additions and 2 deletions
|
@ -23,13 +23,24 @@ using namespace llvm;
|
|||
|
||||
AnalysisKey InlineSizeEstimatorAnalysis::Key;
|
||||
|
||||
#define DEBUG_TYPE "inline-size-estimator"
|
||||
|
||||
#ifdef LLVM_HAVE_TF_API
|
||||
#include "llvm/Analysis/LoopInfo.h"
|
||||
#include "llvm/Analysis/TargetLibraryInfo.h"
|
||||
#include "llvm/Analysis/TargetTransformInfo.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
#include "llvm/IR/Dominators.h"
|
||||
#include "llvm/IR/Instructions.h"
|
||||
#include "llvm/MC/MCAsmLayout.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
|
||||
cl::opt<std::string> TFIR2NativeModelPath(
|
||||
"ml-inliner-ir2native-model", cl::Hidden,
|
||||
cl::desc("Path to saved model evaluating native size from IR."));
|
||||
|
||||
#define DEBUG_TYPE "inline-size-estimator"
|
||||
namespace {
|
||||
unsigned getMaxInstructionID() {
|
||||
#define LAST_OTHER_INST(NR) return NR;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
using namespace llvm;
|
||||
|
||||
#if defined(LLVM_HAVE_TF_AOT_INLINERSIZEMODEL)
|
||||
#include "llvm/Analysis/ReleaseModeModelRunner.h"
|
||||
// codegen-ed file
|
||||
#include "InlinerSizeModel.h" // NOLINT
|
||||
|
||||
|
|
Loading…
Reference in a new issue