LLVM 24.0.0git
LiveInterval.cpp File Reference
#include "llvm/CodeGen/LiveInterval.h"
#include "LiveRangeUtils.h"
#include "RegisterCoalescer.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/CodeGen/LiveIntervals.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/SlotIndexes.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/MC/LaneBitmask.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <iterator>
#include <utility>

Go to the source code of this file.

Functions

static LiveRange::iterator mergeBackward (LiveRange::iterator Begin, LiveRange::iterator Mid, ArrayRef< LiveRange::Segment > NewSegs)
 Merge NewSegs into the segments [Begin, Mid), filling [Begin, Mid + NewSegs.size()) from the back.
static void stripValuesNotDefiningMask (Register Reg, LiveInterval::SubRange &SR, LaneBitmask LaneMask, const SlotIndexes &Indexes, const TargetRegisterInfo &TRI, unsigned ComposeSubRegIdx)
 For each VNI in SR, check whether or not that value defines part of the mask describe by LaneMask and if not, remove that value from SR.
static bool coalescable (const LiveRange::Segment &A, const LiveRange::Segment &B)

Function Documentation

◆ coalescable()

bool coalescable ( const LiveRange::Segment & A,
const LiveRange::Segment & B )
inlinestatic

Definition at line 1146 of file LiveInterval.cpp.

References A(), assert(), and B().

Referenced by llvm::LiveRangeUpdater::add().

◆ mergeBackward()

LiveRange::iterator mergeBackward ( LiveRange::iterator Begin,
LiveRange::iterator Mid,
ArrayRef< LiveRange::Segment > NewSegs )
static

Merge NewSegs into the segments [Begin, Mid), filling [Begin, Mid + NewSegs.size()) from the back.

Both are sorted by start. Returns the position of the first new segment.

Definition at line 488 of file LiveInterval.cpp.

References N, and llvm::ArrayRef< T >::size().

Referenced by llvm::LiveRange::addSegments().

◆ stripValuesNotDefiningMask()

void stripValuesNotDefiningMask ( Register Reg,
LiveInterval::SubRange & SR,
LaneBitmask LaneMask,
const SlotIndexes & Indexes,
const TargetRegisterInfo & TRI,
unsigned ComposeSubRegIdx )
static