#include "bolt/Passes/LoopInversionPass.h"
#include "bolt/Core/ParallelUtilities.h"
usingnamespacellvm;
namespace opts {
extern cl::OptionCategory BoltCategory;
extern cl::opt<bolt::ReorderBasicBlocks::LayoutType> ReorderBlocks;
static cl::opt<bool> LoopReorder(
"loop-inversion-opt",
cl::desc("reorder unconditional jump instructions in loops optimization"),
cl::init(true), cl::cat(BoltCategory), cl::ReallyHidden);
}
namespace llvm {
namespace bolt {
bool LoopInversionPass::runOnFunction(BinaryFunction &BF) { … }
Error LoopInversionPass::runOnFunctions(BinaryContext &BC) { … }
}
}