LLVM  8.0.1
Namespaces | Macros | Functions | Variables
HexagonGenInsert.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/PostOrderIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.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/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <iterator>
#include <utility>
#include <vector>
Include dependency graph for HexagonGenInsert.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define DEBUG_TYPE   "hexinsert"
 

Functions

static bool isDebug ()
 
void llvm::initializeHexagonGenInsertPass (PassRegistry &)
 
FunctionPassllvm::createHexagonGenInsert ()
 
 INITIALIZE_PASS_BEGIN (HexagonGenInsert, "hexinsert", "Hexagon generate \nsert\instructions", false, false) INITIALIZE_PASS_END(HexagonGenInsert
 

Variables

static cl::opt< unsignedVRegIndexCutoff ("insert-vreg-cutoff", cl::init(~0U), cl::Hidden, cl::ZeroOrMore, cl::desc("Vreg# cutoff for insert generation."))
 
static cl::opt< unsignedVRegDistCutoff ("insert-dist-cutoff", cl::init(30U), cl::Hidden, cl::ZeroOrMore, cl::desc("Vreg distance cutoff for insert " "generation."))
 
static cl::opt< unsignedMaxORLSize ("insert-max-orl", cl::init(4096), cl::Hidden, cl::ZeroOrMore, cl::desc("Maximum size of OrderedRegisterList"))
 
static cl::opt< unsignedMaxIFMSize ("insert-max-ifmap", cl::init(1024), cl::Hidden, cl::ZeroOrMore, cl::desc("Maximum size of IFMap"))
 
static cl::opt< boolOptTiming ("insert-timing", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Enable timing of insert generation"))
 
static cl::opt< boolOptTimingDetail ("insert-timing-detail", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Enable detailed timing of insert " "generation"))
 
static cl::opt< boolOptSelectAll0 ("insert-all0", cl::init(false), cl::Hidden, cl::ZeroOrMore)
 
static cl::opt< boolOptSelectHas0 ("insert-has0", cl::init(false), cl::Hidden, cl::ZeroOrMore)
 
static cl::opt< boolOptConst ("insert-const", cl::init(false), cl::Hidden, cl::ZeroOrMore)
 
 hexinsert
 
Hexagon generate insert instructions
 
Hexagon generate insert false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hexinsert"

Definition at line 46 of file HexagonGenInsert.cpp.

Referenced by isDebug().

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( HexagonGenInsert  ,
"hexinsert"  ,
"Hexagon generate \nsert\instructions ,
false  ,
false   
)

◆ isDebug()

static bool isDebug ( )
inlinestatic

Definition at line 81 of file HexagonGenInsert.cpp.

References llvm::AnalysisUsage::addPreserved(), llvm::AnalysisUsage::addRequired(), llvm::BitVector::any(), llvm::BitVector::anyCommon(), assert(), B, llvm::sys::path::const_iterator::begin, llvm::sys::path::begin(), llvm::MachineBasicBlock::begin(), llvm::BitVector::clear(), llvm::HexagonISD::CP, llvm::createHexagonGenInsert(), D, llvm::dbgs(), DEBUG_TYPE, llvm::DebugFlag, E, llvm::empty(), llvm::sys::path::const_iterator::end, llvm::sys::path::end(), llvm::MachineBasicBlock::end(), F(), llvm::find(), llvm::BitVector::find_first(), llvm::BitVector::find_next(), first, llvm::MachineFunctionPass::getAnalysisUsage(), llvm::MachineBasicBlock::getNumber(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::PassRegistry::getPassRegistry(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::Hi_32(), I, llvm::AMDGPUISD::IF, llvm::TargetRegisterInfo::index2VirtReg(), llvm::initializeHexagonGenInsertPass(), IR, llvm::BitTracker::BitValue::is(), isConstant(), llvm::MachineInstr::isCopy(), llvm::isCurrentDebugType(), llvm::MachineOperand::isDef(), llvm::isInt< 16 >(), llvm::isInt< 8 >(), llvm::MachineInstr::isPHI(), llvm::MachineOperand::isReg(), llvm::MachineInstr::isRegSequence(), llvm::MachineOperand::isUse(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::ARM_MB::LD, llvm::Lo_32(), llvm::BitTracker::lookup(), lookup(), llvm::lower_bound(), llvm::max(), MaxIFMSize, MaxORLSize, MI, MRI, N, llvm::RISCVFenceField::O, llvm::operator<<(), llvm::BitVector::operator[](), llvm::BitVector::operator|=(), OptConst, P, llvm::BitTracker::BitRef::Pos, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_end(), llvm::printMBBReference(), llvm::printReg(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::BitTracker::BitValue::Ref, llvm::BitTracker::BitValue::RefI, llvm::BitTracker::BitRef::Reg, llvm::sys::fs::remove(), llvm::BitVector::reset(), RPO, second, llvm::BitVector::set(), llvm::MachineBasicBlock::size(), llvm::size(), llvm::sort(), llvm::X86II::TB, llvm::BitVector::test(), TRI, llvm::BitTracker::BitValue::Type, llvm::upper_bound(), llvm::NVPTX::PTXLdStInstCode::V2, llvm::TargetRegisterInfo::virtReg2Index(), llvm::RISCVFenceField::W, llvm::BitTracker::RegisterCell::width(), and llvm::Z.

Variable Documentation

◆ false

Hexagon generate insert false

Definition at line 1632 of file HexagonGenInsert.cpp.

◆ hexinsert

hexinsert

Definition at line 1632 of file HexagonGenInsert.cpp.

◆ instructions

Hexagon generate insert instructions

Definition at line 1632 of file HexagonGenInsert.cpp.

◆ MaxIFMSize

cl::opt<unsigned> MaxIFMSize("insert-max-ifmap", cl::init(1024), cl::Hidden, cl::ZeroOrMore, cl::desc("Maximum size of IFMap"))
static

Referenced by isDebug().

◆ MaxORLSize

cl::opt<unsigned> MaxORLSize("insert-max-orl", cl::init(4096), cl::Hidden, cl::ZeroOrMore, cl::desc("Maximum size of OrderedRegisterList"))
static

Referenced by isDebug().

◆ OptConst

cl::opt<bool> OptConst("insert-const", cl::init(false), cl::Hidden, cl::ZeroOrMore)
static

Referenced by isDebug().

◆ OptSelectAll0

cl::opt<bool> OptSelectAll0("insert-all0", cl::init(false), cl::Hidden, cl::ZeroOrMore)
static

◆ OptSelectHas0

cl::opt<bool> OptSelectHas0("insert-has0", cl::init(false), cl::Hidden, cl::ZeroOrMore)
static

◆ OptTiming

cl::opt<bool> OptTiming("insert-timing", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Enable timing of insert generation"))
static

◆ OptTimingDetail

cl::opt<bool> OptTimingDetail("insert-timing-detail", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Enable detailed timing of insert " "generation"))
static

◆ VRegDistCutoff

cl::opt<unsigned> VRegDistCutoff("insert-dist-cutoff", cl::init(30U), cl::Hidden, cl::ZeroOrMore, cl::desc("Vreg distance cutoff for insert " "generation."))
static

◆ VRegIndexCutoff

cl::opt<unsigned> VRegIndexCutoff("insert-vreg-cutoff", cl::init(~0U), cl::Hidden, cl::ZeroOrMore, cl::desc("Vreg# cutoff for insert generation."))
static