LLVM 20.0.0git
Namespaces | Macros | Functions | Variables
HexagonBitSimplify.cpp File Reference
#include "BitTracker.h"
#include "HexagonBitTracker.h"
#include "HexagonInstrInfo.h"
#include "HexagonRegisterInfo.h"
#include "HexagonSubtarget.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.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/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/InitializePasses.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <deque>
#include <iterator>
#include <limits>
#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   "hexbit"
 

Functions

void llvm::initializeHexagonBitSimplifyPass (PassRegistry &Registry)
 
FunctionPassllvm::createHexagonBitSimplify ()
 
 INITIALIZE_PASS_BEGIN (HexagonBitSimplify, "hexagon-bit-simplify", "Hexagon bit simplification", false, false) INITIALIZE_PASS_END(HexagonBitSimplify
 
FunctionPassllvm::createHexagonLoopRescheduling ()
 
void llvm::initializeHexagonLoopReschedulingPass (PassRegistry &)
 
 INITIALIZE_PASS (HexagonLoopRescheduling, "hexagon-loop-resched", "Hexagon Loop Rescheduling", false, false) HexagonLoopRescheduling
 

Variables

static cl::opt< boolPreserveTiedOps ("hexbit-keep-tied", cl::Hidden, cl::init(true), cl::desc("Preserve subregisters in tied operands"))
 
static cl::opt< boolGenExtract ("hexbit-extract", cl::Hidden, cl::init(true), cl::desc("Generate extract instructions"))
 
static cl::opt< boolGenBitSplit ("hexbit-bitsplit", cl::Hidden, cl::init(true), cl::desc("Generate bitsplit instructions"))
 
static cl::opt< unsignedMaxExtract ("hexbit-max-extract", cl::Hidden, cl::init(std::numeric_limits< unsigned >::max()))
 
static unsigned CountExtract = 0
 
static cl::opt< unsignedMaxBitSplit ("hexbit-max-bitsplit", cl::Hidden, cl::init(std::numeric_limits< unsigned >::max()))
 
static unsigned CountBitSplit = 0
 
static cl::opt< unsignedRegisterSetLimit ("hexbit-registerset-limit", cl::Hidden, cl::init(1000))
 
hexagon bit simplify
 
hexagon bit Hexagon bit simplification
 
hexagon bit Hexagon bit false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hexbit"

Definition at line 48 of file HexagonBitSimplify.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( HexagonLoopRescheduling  ,
"hexagon-loop-resched"  ,
"Hexagon Loop Rescheduling"  ,
false  ,
false   
)

Definition at line 2976 of file HexagonBitSimplify.cpp.

References B, llvm::MachineOperand::getMBB(), P, and PB().

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( HexagonBitSimplify  ,
"hexagon-bit-simplify"  ,
"Hexagon bit simplification"  ,
false  ,
false   
)

Variable Documentation

◆ CountBitSplit

unsigned CountBitSplit = 0
static

Definition at line 64 of file HexagonBitSimplify.cpp.

◆ CountExtract

unsigned CountExtract = 0
static

Definition at line 61 of file HexagonBitSimplify.cpp.

◆ false

hexagon bit Hexagon bit false

Definition at line 290 of file HexagonBitSimplify.cpp.

◆ GenBitSplit

cl::opt< bool > GenBitSplit("hexbit-bitsplit", cl::Hidden, cl::init(true), cl::desc("Generate bitsplit instructions")) ( "hexbit-bitsplit"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Generate bitsplit instructions")   
)
static

◆ GenExtract

cl::opt< bool > GenExtract("hexbit-extract", cl::Hidden, cl::init(true), cl::desc("Generate extract instructions")) ( "hexbit-extract"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Generate extract instructions")   
)
static

◆ MaxBitSplit

cl::opt< unsigned > MaxBitSplit("hexbit-max-bitsplit", cl::Hidden, cl::init(std::numeric_limits< unsigned >::max())) ( "hexbit-max-bitsplit"  ,
cl::Hidden  ,
cl::init(std::numeric_limits< unsigned >::max())   
)
static

◆ MaxExtract

cl::opt< unsigned > MaxExtract("hexbit-max-extract", cl::Hidden, cl::init(std::numeric_limits< unsigned >::max())) ( "hexbit-max-extract"  ,
cl::Hidden  ,
cl::init(std::numeric_limits< unsigned >::max())   
)
static

◆ PreserveTiedOps

cl::opt< bool > PreserveTiedOps("hexbit-keep-tied", cl::Hidden, cl::init(true), cl::desc("Preserve subregisters in tied operands")) ( "hexbit-keep-tied"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Preserve subregisters in tied operands")   
)
static

◆ RegisterSetLimit

cl::opt< unsigned > RegisterSetLimit("hexbit-registerset-limit", cl::Hidden, cl::init(1000)) ( "hexbit-registerset-limit"  ,
cl::Hidden  ,
cl::init(1000)   
)
static

◆ simplification

hexagon bit Hexagon bit simplification

Definition at line 290 of file HexagonBitSimplify.cpp.

◆ simplify

hexagon bit simplify