LLVM 20.0.0git
Namespaces | Macros | Functions | Variables
HexagonHardwareLoops.cpp File Reference
#include "HexagonInstrInfo.h"
#include "HexagonSubtarget.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <iterator>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define DEBUG_TYPE   "hwloops"
 

Functions

 STATISTIC (NumHWLoops, "Number of loops converted to hardware loops")
 
FunctionPassllvm::createHexagonHardwareLoops ()
 
void llvm::initializeHexagonHardwareLoopsPass (PassRegistry &)
 
 INITIALIZE_PASS_BEGIN (HexagonHardwareLoops, "hwloops", "Hexagon Hardware Loops", false, false) INITIALIZE_PASS_END(HexagonHardwareLoops
 

Variables

static cl::opt< int > HWLoopLimit ("hexagon-max-hwloop", cl::Hidden, cl::init(-1))
 
static cl::opt< std::string > PHFn ("hexagon-hwloop-phfn", cl::Hidden, cl::init(""))
 
static cl::opt< boolHWCreatePreheader ("hexagon-hwloop-preheader", cl::Hidden, cl::init(true), cl::desc("Add a preheader to a hardware loop if one doesn't exist"))
 
static cl::opt< boolSpecPreheader ("hwloop-spec-preheader", cl::Hidden, cl::desc("Allow speculation of preheader " "instructions"))
 
 hwloops
 
Hexagon Hardware Loops
 
Hexagon Hardware false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hwloops"

Definition at line 65 of file HexagonHardwareLoops.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( HexagonHardwareLoops  ,
"hwloops"  ,
"Hexagon Hardware Loops"  ,
false  ,
false   
)

◆ STATISTIC()

STATISTIC ( NumHWLoops  ,
"Number of loops converted to hardware loops"   
)

Variable Documentation

◆ false

Hexagon Hardware false

Definition at line 373 of file HexagonHardwareLoops.cpp.

◆ HWCreatePreheader

cl::opt< bool > HWCreatePreheader("hexagon-hwloop-preheader", cl::Hidden, cl::init(true), cl::desc("Add a preheader to a hardware loop if one doesn't exist")) ( "hexagon-hwloop-preheader"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Add a preheader to a hardware loop if one doesn't exist")   
)
static

◆ HWLoopLimit

cl::opt< int > HWLoopLimit("hexagon-max-hwloop", cl::Hidden, cl::init(-1)) ( "hexagon-max-hwloop"  ,
cl::Hidden  ,
cl::init(-1)   
)
static

◆ hwloops

hwloops

Definition at line 372 of file HexagonHardwareLoops.cpp.

◆ Loops

Hexagon Hardware Loops

◆ PHFn

cl::opt< std::string > PHFn("hexagon-hwloop-phfn", cl::Hidden, cl::init("")) ( "hexagon-hwloop-phfn"  ,
cl::Hidden  ,
cl::init("")   
)
static

◆ SpecPreheader

cl::opt< bool > SpecPreheader("hwloop-spec-preheader", cl::Hidden, cl::desc("Allow speculation of preheader " "instructions")) ( "hwloop-spec-preheader"  ,
cl::Hidden  ,
cl::desc("Allow speculation of preheader " "instructions")   
)
static