LLVM  6.0.0svn
Functions | Variables
MachineInstr.cpp File Reference
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/Analysis/MemoryLocation.h"
#include "llvm/CodeGen/GlobalISel/RegisterBank.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineInstrBundle.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/PseudoSourceValue.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ModuleSlotTracker.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LowLevelTypeImpl.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetIntrinsicInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <iterator>
#include <utility>

Go to the source code of this file.

Functions

static void moveOperands (MachineOperand *Dst, MachineOperand *Src, unsigned NumOps, MachineRegisterInfo *MRI)
 Move NumOps MachineOperands from Src to Dst, with support for overlapping ranges. More...
 
static bool hasIdenticalMMOs (const MachineInstr &MI1, const MachineInstr &MI2)
 Check to see if the MMOs pointed to by the two MemRefs arrays are identical. More...
 
static const DIExpressioncomputeExprForSpill (const MachineInstr &MI)
 Compute the new DIExpression to use with a DBG_VALUE for a spill slot. More...
 

Variables

static cl::opt< int > PrintRegMaskNumRegs ("print-regmask-num-regs", cl::desc("Number of registers to limit to when " "printing regmask operands in IR dumps. " "unlimited = -1"), cl::init(32), cl::Hidden)
 
const unsigned TiedMax = 15
 

Function Documentation

◆ computeExprForSpill()

static const DIExpression* computeExprForSpill ( const MachineInstr MI)
static

◆ hasIdenticalMMOs()

static bool hasIdenticalMMOs ( const MachineInstr MI1,
const MachineInstr MI2 
)
static

Check to see if the MMOs pointed to by the two MemRefs arrays are identical.

Definition at line 1021 of file MachineInstr.cpp.

References llvm::MachineInstr::memoperands_begin(), and llvm::MachineInstr::memoperands_end().

Referenced by llvm::MachineInstr::mergeMemRefsWith().

◆ moveOperands()

static void moveOperands ( MachineOperand Dst,
MachineOperand Src,
unsigned  NumOps,
MachineRegisterInfo MRI 
)
static

Move NumOps MachineOperands from Src to Dst, with support for overlapping ranges.

If MRI is non-null also update use-def chains.

Definition at line 871 of file MachineInstr.cpp.

Referenced by llvm::MachineInstr::addOperand(), and llvm::MachineInstr::RemoveOperand().

Variable Documentation

◆ PrintRegMaskNumRegs

cl::opt<int> PrintRegMaskNumRegs("print-regmask-num-regs", cl::desc("Number of registers to limit to when " "printing regmask operands in IR dumps. " "unlimited = -1"), cl::init(32), cl::Hidden)
static

◆ TiedMax

const unsigned TiedMax = 15

Definition at line 1514 of file MachineInstr.cpp.

Referenced by llvm::MachineInstr::tieOperands().