54 raw_ostream &operator<< (raw_ostream &OS, const Print<RegisterRef> &
P) {
55 auto &TRI =
P.G.getTRI();
56 if (
P.Obj.Reg > 0 &&
P.Obj.Reg < TRI.getNumRegs())
57 OS << TRI.getName(
P.Obj.Reg);
59 OS <<
'#' <<
P.Obj.Reg;
65 raw_ostream &operator<< (raw_ostream &OS, const Print<NodeId> &
P) {
67 uint16_t
Attrs = NA.Addr->getAttrs();
77 default: OS <<
"c?";
break;
93 default: OS <<
"r?";
break;
108 OS << Print<NodeId>(RA.
Id,
G) <<
'<'
115 raw_ostream &operator<< (raw_ostream &OS, const Print<NodeAddr<DefNode*>> &
P) {
118 if (
NodeId N =
P.Obj.Addr->getReachingDef())
121 if (
NodeId N =
P.Obj.Addr->getReachedDef())
124 if (
NodeId N =
P.Obj.Addr->getReachedUse())
127 if (
NodeId N =
P.Obj.Addr->getSibling())
133 raw_ostream &operator<< (raw_ostream &OS, const Print<NodeAddr<UseNode*>> &
P) {
136 if (
NodeId N =
P.Obj.Addr->getReachingDef())
139 if (
NodeId N =
P.Obj.Addr->getSibling())
149 if (
NodeId N =
P.Obj.Addr->getReachingDef())
152 if (
NodeId N =
P.Obj.Addr->getPredecessor())
155 if (
NodeId N =
P.Obj.Addr->getSibling())
161 raw_ostream &operator<< (raw_ostream &OS, const Print<NodeAddr<RefNode*>> &
P) {
162 switch (
P.Obj.Addr->getKind()) {
164 OS << PrintNode<DefNode*>(
P.Obj,
P.G);
170 OS << PrintNode<UseNode*>(
P.Obj,
P.G);
178 unsigned N =
P.Obj.size();
179 for (
auto I :
P.Obj) {
180 OS << Print<NodeId>(
I.Id,
P.G);
189 unsigned N =
P.Obj.size();
190 for (
auto I :
P.Obj) {
191 OS << Print<NodeId>(
I,
P.G);
200 template <
typename T>
209 template <
typename T>
210 raw_ostream &operator<< (raw_ostream &OS, const PrintListV<T> &
P) {
211 unsigned N =
P.List.size();
213 OS << PrintNode<T>(
A,
P.G);
223 raw_ostream &operator<< (raw_ostream &OS, const Print<NodeAddr<PhiNode*>> &
P) {
224 OS << Print<NodeId>(
P.Obj.Id,
P.G) <<
": phi ["
225 << PrintListV<RefNode*>(
P.Obj.Addr->members(
P.G),
P.G) <<
']';
234 OS << Print<NodeId>(
P.Obj.Id,
P.G) <<
": " <<
P.G.getTII().getName(Opc);
240 return Op.isMBB() ||
Op.isGlobal() ||
Op.isSymbol();
252 OS <<
" [" << PrintListV<RefNode*>(
P.Obj.Addr->members(
P.G),
P.G) <<
']';
259 switch (
P.Obj.Addr->getKind()) {
261 OS << PrintNode<PhiNode*>(
P.Obj,
P.G);
264 OS << PrintNode<StmtNode*>(
P.Obj,
P.G);
279 auto PrintBBs = [&OS] (std::vector<int> Ns) ->
void {
280 unsigned N = Ns.size();
288 OS << Print<NodeId>(
P.Obj.Id,
P.G) <<
": --- BB#" << BB->
getNumber()
289 <<
" --- preds(" << NP <<
"): ";
291 Ns.push_back(
B->getNumber());
295 OS <<
" succs(" << NS <<
"): ";
298 Ns.push_back(
B->getNumber());
302 for (
auto I :
P.Obj.Addr->members(
P.G))
311 <<
P.Obj.Addr->getCode()->getName() <<
'\n';
312 for (
auto I :
P.Obj.Addr->members(
P.G))
319 raw_ostream &operator<< (raw_ostream &OS, const Print<RegisterSet> &
P) {
322 OS << ' ' << Print<RegisterRef>(
I,
P.G);
328 raw_ostream &operator<< (raw_ostream &OS, const Print<RegisterAggr> &
P) {
337 OS << Print<NodeId>(
I->Id, P.
G)
358 void NodeAllocator::startNewBlock() {
360 char *
P =
static_cast<char*
>(
T);
365 assert((Blocks.size() < ((size_t)1 << (8*
sizeof(
NodeId)-BitsPerIndex))) &&
366 "Out of bits for block index");
370 bool NodeAllocator::needNewBlock() {
374 char *ActiveBegin = Blocks.back();
375 uint32_t Index = (ActiveEnd-ActiveBegin)/NodeMemSize;
376 return Index >= NodesPerBlock;
384 uint32_t Index = (ActiveEnd - Blocks[ActiveB])/NodeMemSize;
386 makeId(ActiveB, Index) };
392 uintptr_t
A =
reinterpret_cast<uintptr_t
>(
P);
393 for (
unsigned i = 0, n = Blocks.size(); i != n; ++i) {
394 uintptr_t
B =
reinterpret_cast<uintptr_t
>(Blocks[i]);
395 if (A < B || A >= B + NodesPerBlock*NodeMemSize)
398 return makeId(i, Idx);
451 while (NA.
Addr !=
this) {
514 if (MA.
Id == NA.
Id) {
525 while (MA.
Addr !=
this) {
550 while (NA.
Addr !=
this) {
638 if (O.isGlobal() || O.isSymbol())
668 : MF(mf),
TII(tii), TRI(tri), PRI(tri, mf), MDT(mdt), MDF(mdf), TOI(toi),
686 Pos = DS.Stack.size();
687 while (Pos > 0 && DS.isDelimiter(DS.Stack[Pos-1]))
704 unsigned P = nextDown(Stack.size());
719 unsigned P = Stack.size();
721 bool Found = isDelimiter(Stack[P-1], N);
731 unsigned DataFlowGraph::DefStack::nextUp(
unsigned P)
const {
734 unsigned SS = Stack.size();
739 IsDelim = isDelimiter(Stack[P-1]);
740 }
while (P < SS && IsDelim);
746 unsigned DataFlowGraph::DefStack::nextDown(
unsigned P)
const {
749 assert(P > 0 && P <= Stack.size());
750 bool IsDelim = isDelimiter(Stack[P-1]);
754 IsDelim = isDelimiter(Stack[P-1]);
755 }
while (P > 0 && IsDelim);
762 RegisterSet DataFlowGraph::getLandingPadLiveIns()
const {
889 BlockNodes.insert(std::make_pair(&B, BA));
891 if (
I.isDebugValue())
898 NodeList Blocks = Func.Addr->members(*
this);
902 buildBlockRefs(EA, RefM);
931 if (!EHRegs.empty()) {
962 recordDefsForDF(PhiM, RefM, BA);
964 buildPhis(PhiM, RefM, BA);
968 linkBlockRefs(DM, EA);
1003 if (PRI.
alias(AR, BR))
1011 for (
auto I = DefM.begin(),
E = DefM.end();
I !=
E; ++
I)
1012 I->second.start_block(B);
1020 for (
auto I = DefM.begin(),
E = DefM.end();
I !=
E; ++
I)
1021 I->second.clear_block(B);
1024 for (
auto I = DefM.begin(),
E = DefM.end(), NextI =
I;
I !=
E;
I = NextI) {
1025 NextI = std::next(
I);
1027 if (
I->second.empty())
1035 pushClobbers(IA, DefM);
1043 std::set<RegisterId> Defined;
1058 if (Visited.count(DA.
Id))
1069 DefM[RR.
Reg].push(DA);
1070 Defined.insert(RR.
Reg);
1074 if (!Defined.count(
A))
1079 Visited.insert(T.Id);
1088 std::set<RegisterId> Defined;
1104 if (Visited.count(DA.
Id))
1115 if (!Defined.insert(RR.
Reg).second) {
1117 dbgs() <<
"Multiple definitions of register: "
1125 DefM[RR.Reg].push(DA);
1133 Visited.insert(T.Id);
1148 }
while (RA.
Id != 0 && RA.
Id != Start);
1153 void DataFlowGraph::reset() {
1177 return Related(
TA) &&
1202 template <
typename Predicate>
1212 if (NA.
Id == 0 || NA.
Id == Start)
1219 if (NA.
Id != 0 && NA.
Id != Start)
1220 return std::make_pair(RA, NA);
1232 return TA.Addr->getFlags() ==
Flags;
1234 auto Loc = locateNextRef(IA, RA, IsShadow);
1235 if (Loc.second.Id != 0 || !Create)
1252 return TA.Addr->getFlags() ==
Flags;
1254 return locateNextRef(IA, RA, IsShadow).second;
1286 if (PRI.
alias(DR, UR))
1292 bool IsCall = isCall(In);
1301 for (
unsigned OpN = 0; OpN < NumOps; ++OpN) {
1305 unsigned R = Op.
getReg();
1319 if (IsCall && Op.
isDead())
1323 assert(!DoneDefs.test(R));
1329 for (
unsigned OpN = 0; OpN < NumOps; ++OpN) {
1339 for (
unsigned i = 1, e = TRI.
getNumRegs(); i != e; ++i)
1340 if (!(RM[i/32] & (1u << (i%32))))
1341 DoneClobbers.set(i);
1346 for (
unsigned OpN = 0; OpN < NumOps; ++OpN) {
1350 unsigned R = Op.
getReg();
1358 if (isDefUndef(In, RR))
1365 if (IsCall && Op.
isDead()) {
1366 if (DoneClobbers.test(R))
1375 for (
unsigned OpN = 0; OpN < NumOps; ++OpN) {
1379 unsigned R = Op.
getReg();
1395 BlockRefsMap &RefM) {
1402 buildBlockRefs(SBA, RefM);
1404 Refs.insert(RefsS.begin(), RefsS.end());
1414 void DataFlowGraph::recordDefsForDF(BlockRefsMap &PhiM, BlockRefsMap &RefM,
1421 auto DFLoc = MDF.
find(BB);
1422 if (DFLoc == MDF.
end() || DFLoc->second.empty())
1438 for (
unsigned i = 0; i < IDF.size(); ++i) {
1439 auto F = MDF.
find(IDF[i]);
1441 IDF.insert(F->second.
begin(), F->second.
end());
1446 for (
auto DB : IDF) {
1449 Refs.insert(RefsD.begin(), RefsD.end());
1454 for (
auto DB : IDF) {
1456 PhiM[DBA.
Id].insert(Defs.begin(), Defs.end());
1462 void DataFlowGraph::buildPhis(BlockRefsMap &PhiM, BlockRefsMap &RefM,
1466 auto HasDF = PhiM.find(BA.
Id);
1467 if (HasDF == PhiM.end() || HasDF->second.empty())
1483 MaxDF.insert(MaxCoverIn(I, HasDF->second));
1485 std::vector<RegisterRef> MaxRefs;
1488 MaxRefs.push_back(MaxCoverIn(I, RefB));
1495 std::sort(MaxRefs.begin(), MaxRefs.end());
1497 auto NewEnd = std::unique(MaxRefs.begin(), MaxRefs.end());
1498 MaxRefs.erase(NewEnd, MaxRefs.end());
1501 std::vector<unsigned> &Closure) ->
bool {
1502 for (
unsigned I : Closure)
1503 if (PRI.
alias(RR, MaxRefs[I]))
1514 while (!MaxRefs.empty()) {
1519 std::vector<unsigned> ClosureIdx = { 0 };
1520 for (
unsigned i = 1; i != MaxRefs.size(); ++i)
1521 if (Aliased(MaxRefs[i], ClosureIdx))
1522 ClosureIdx.push_back(i);
1525 unsigned CS = ClosureIdx.size();
1529 for (
unsigned X = 0;
X != CS; ++
X) {
1537 for (
unsigned X = 0;
X != CS; ++
X) {
1545 auto Begin = MaxRefs.begin();
1546 for (
unsigned i = ClosureIdx.size(); i != 0; --i)
1547 MaxRefs.erase(Begin + ClosureIdx[i-1]);
1552 void DataFlowGraph::removeUnusedPhis() {
1565 static auto HasUsedDef = [](
NodeList &Ms) ->
bool {
1579 while (!PhiQ.
empty()) {
1580 auto PA = addr<PhiNode*>(PhiQ[0]);
1583 if (HasUsedDef(Refs))
1587 auto RDA = addr<DefNode*>(RD);
1605 template <
typename T>
1616 for (
auto I = DS.top(),
E = DS.bottom(); I !=
E; I.down()) {
1621 bool Alias = Defs.hasAliasOf(QR);
1622 bool Cover = Defs.insert(QR).hasCoverOf(RR);
1642 TAP.
Addr->linkToDef(TAP.
Id, RDA);
1650 template <
typename Predicate>
1668 auto F = DefM.find(RR.
Reg);
1669 if (F == DefM.
end())
1671 DefStack &DS = F->second;
1673 linkRefUp<UseNode*>(SA, RA, DS);
1675 linkRefUp<DefNode*>(SA, RA, DS);
1694 assert(BA.
Addr &&
"block node address is needed to create a data-flow link");
1702 linkStmtRefs(DefM, IA,
IsUse);
1703 linkStmtRefs(DefM, IA, IsClobber);
1707 pushClobbers(IA, DefM);
1710 linkStmtRefs(DefM, IA, IsNoClobber);
1720 linkBlockRefs(DefM, SBA);
1729 return PUA.
Addr->getPredecessor() == BA.
Id;
1751 linkRefUp<UseNode*>(IA, PUA, DefM[RR.
Reg]);
1770 auto RDA = addr<DefNode*>(RD);
1772 if (TA.Id == UA.
Id) {
1777 while (TA.Id != 0) {
1778 NodeId S = TA.Addr->getSibling();
1783 TA = addr<UseNode*>(S);
1816 auto RA = addr<RefNode*>(
N);
1828 I.Addr->setSibling(0);
1830 I.Addr->setSibling(0);
1833 I.Addr->setReachingDef(RD);
1835 I.Addr->setReachingDef(RD);
1844 auto RDA = addr<DefNode*>(RD);
1846 if (TA.Id == DA.
Id) {
1853 while (TA.Id != 0) {
1854 NodeId S = TA.Addr->getSibling();
1856 TA.Addr->setSibling(Sib);
1859 TA = addr<DefNode*>(S);
1864 if (!ReachedDefs.empty()) {
1870 if (!ReachedUses.empty()) {
NodeList members(const DataFlowGraph &G) const
raw_ostream & operator<<(raw_ostream &OS, const PrintLaneMaskOpt &P)
unsigned succ_size() const
void setReachingDef(NodeId RD)
void push_back(const T &Elt)
std::set< RegisterId > getAliasSet(RegisterId Reg) const
bool isEHPad() const
Returns true if the block is a landing pad.
mop_iterator operands_end()
A common definition of LaneBitmask for use in TableGen and CodeGen.
RegisterRef restrictRef(RegisterRef AR, RegisterRef BR) const
const GlobalValue * getGlobal() const
static uint16_t kind(uint16_t T)
iterator_range< livein_iterator > liveins() const
NodeAddr< RefNode * > getNextRelated(NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
bool isBranch(QueryType Type=AnyInBundle) const
Returns true if this is a conditional, unconditional, or indirect branch.
void linkToDef(NodeId Self, NodeAddr< DefNode * > DA)
NodeAddr< NodeBase * > New()
NodeId getReachedDef() const
livein_iterator livein_end() const
uint16_t getFlags() const
MachineBasicBlock * getMBB() const
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
static uint16_t type(uint16_t T)
NodeBase * ptr(NodeId N) const
rr_iterator rr_end() const
This class provides various memory handling functions that manipulate MemoryBlock instances...
static LaneBitmask getAll()
Describe properties that are true of each instruction in the target description file.
virtual bool isPreserving(const MachineInstr &In, unsigned OpNum) const
DataFlowGraph(MachineFunction &mf, const TargetInstrInfo &tii, const TargetRegisterInfo &tri, const MachineDominatorTree &mdt, const MachineDominanceFrontier &mdf, const TargetOperandInfo &toi)
RegisterId getRegMaskId(const uint32_t *RM) const
const MCInstrDesc & getDesc() const
Returns the target instruction descriptor of this MachineInstr.
const char * getSymbolName() const
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
virtual unsigned getExceptionPointerRegister(const Constant *PersonalityFn) const
If a physical register, this returns the register that receives the exception address on entry to an ...
iterator_range< mop_iterator > operands()
void unlinkUse(NodeAddr< UseNode * > UA, bool RemoveFromOwner)
iterator_range< succ_iterator > successors()
StringRef getName() const
Return a constant reference to the value's name.
void releaseBlock(NodeId B, DefStackMap &DefM)
const TargetInstrInfo & TII
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
void Reset()
Deallocate all but the current slab and reset the current pointer to the beginning of it...
const HexagonInstrInfo * TII
NodeList getRelatedRefs(NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
NodeId getReachedUse() const
bool isReg() const
isReg - Tests if this is a MO_Register operand.
Constant * getPersonalityFn() const
Get the personality function associated with this function.
Reg
All possible values of the reg field in the ModR/M byte.
NodeAddr< NodeBase * > getFirstMember(const DataFlowGraph &G) const
bool remove(const value_type &X)
Remove an item from the set vector.
constexpr bool any() const
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
LLVM_NODISCARD bool empty() const
unsigned getNumOperands() const
Access to explicit operands of the instruction.
bool isGlobal() const
isGlobal - Tests if this is a MO_GlobalAddress operand.
void append(NodeAddr< NodeBase * > NA)
MachineDomTreeNode * getNode(MachineBasicBlock *BB) const
getNode - return the (Post)DominatorTree node for the specified basic block.
const MachineBasicBlock & front() const
unsigned getNumRegs() const
Return the number of registers this target has (useful for sizing arrays holding per register informa...
bool insert(const value_type &X)
Insert a new element into the SetVector.
static bool IsDef(const NodeAddr< NodeBase * > BA)
MachineFunction * getCode() const
const MCPhysReg * getImplicitDefs() const
Return a list of registers that are potentially written by any instance of this machine instruction...
bool empty() const
Determine if the SetVector is empty or not.
Base class for the actual dominator tree node.
virtual bool isClobbering(const MachineInstr &In, unsigned OpNum) const
void clear_block(NodeId N)
NodeAddr< BlockNode * > findBlock(const MachineBasicBlock *BB, const DataFlowGraph &G) const
void addMember(NodeAddr< NodeBase * > NA, const DataFlowGraph &G)
NodeAddr< NodeBase * > getOwner(const DataFlowGraph &G)
NodeList members_if(Predicate P, const DataFlowGraph &G) const
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
const MachineBasicBlock * getParent() const
TargetInstrInfo - Interface to description of machine instruction set.
void linkToDef(NodeId Self, NodeAddr< DefNode * > DA)
void setFlags(uint16_t F)
INITIALIZE_PASS(HexagonEarlyIfConversion,"hexagon-eif","Hexagon early if conversion", false, false) bool HexagonEarlyIfConversion MachineBasicBlock * SB
void setReachedDef(NodeId D)
constexpr char Attrs[]
Key for Kernel::Metadata::mAttrs.
bool isReturn(QueryType Type=AnyInBundle) const
Control flow instructions. These all have token chains.
unsigned const MachineRegisterInfo * MRI
NodeAddr< BlockNode * > getEntryBlock(const DataFlowGraph &G)
This is an important base class in LLVM.
const MachineOperand & getOperand(unsigned i) const
LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void * Allocate(size_t Size, size_t Alignment)
Allocate space at the specified alignment.
unsigned getSubReg(unsigned Reg, unsigned Idx) const
Returns the physical register number of sub-register "Index" for physical register RegNo...
bool hasPersonalityFn() const
Check whether this function has a personality function.
bool isIndirectBranch(QueryType Type=AnyInBundle) const
Return true if this is an indirect branch, such as a branch through a register.
bool tracksLiveness() const
tracksLiveness - Returns true when tracking register liveness accurately.
bool isSymbol() const
isSymbol - Tests if this is a MO_ExternalSymbol operand.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
static uint16_t flags(uint16_t T)
iterator_range< pred_iterator > predecessors()
static bool IsPhi(const NodeAddr< NodeBase * > BA)
unsigned getSubReg() const
virtual bool isFixedReg(const MachineInstr &In, unsigned OpNum) const
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
void pushAllDefs(NodeAddr< InstrNode * > IA, DefStackMap &DM)
NodeId getPredecessor() const
bool isRegMask() const
isRegMask - Tests if this is a MO_RegisterMask operand.
iterator find(MachineBasicBlock *B)
NodeAddr< NodeBase * > getLastMember(const DataFlowGraph &G) const
void setPredecessor(NodeId B)
RegisterAggr & insert(RegisterRef RR)
void markBlock(NodeId B, DefStackMap &DefM)
const uint32_t * getRegMask() const
getRegMask - Returns a bit mask of registers preserved by this RegMask operand.
MachineOperand class - Representation of each machine instruction operand.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
NodeId getSibling() const
virtual const TargetLowering * getTargetLowering() const
Predicate
Predicate - These are "(BI << 5) | BO" for various predicates.
bool alias(RegisterRef RA, RegisterRef RB) const
NodeId id(const NodeBase *P) const
livein_iterator livein_begin() const
bool isMBB() const
isMBB - Tests if this is a MO_MachineBasicBlock operand.
void setAttrs(uint16_t A)
DominanceFrontierBase< MachineBasicBlock, false >::DomSetType DomSetType
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void addPhi(NodeAddr< PhiNode * > PA, const DataFlowGraph &G)
std::unordered_map< RegisterId, DefStack > DefStackMap
std::set< NodeId > NodeSet
RegisterRef getRegRef(const DataFlowGraph &G) const
static bool IsUse(const NodeAddr< NodeBase * > BA)
llvm_unreachable("Unknown RegBank!")
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
RegisterRef unpack(PackedRegisterRef PR) const
static std::vector< std::string > Flags
Representation of each machine instruction.
static void printRefHeader(raw_ostream &OS, const NodeAddr< RefNode * > RA, const DataFlowGraph &G)
NodeAddr< NodeBase * > getOwner(const DataFlowGraph &G)
static bool isPhysicalRegister(unsigned Reg)
Return true if the specified register number is in the physical register namespace.
void setRegRef(RegisterRef RR, DataFlowGraph &G)
PackedRegisterRef pack(RegisterRef RR)
RegisterRef makeRegRef(unsigned Reg, unsigned Sub) const
void addMemberAfter(NodeAddr< NodeBase * > MA, NodeAddr< NodeBase * > NA, const DataFlowGraph &G)
virtual bool isPredicated(const MachineInstr &MI) const
Returns true if the instruction is already predicated.
bool isCall(QueryType Type=AnyInBundle) const
void build(unsigned Options=BuildOptions::None)
constexpr bool all() const
const MCPhysReg * getImplicitUses() const
Return a list of registers that are potentially read by any instance of this machine instruction...
MachineBasicBlock * getCode() const
unsigned getReg() const
getReg - Returns the register number.
rr_iterator rr_begin() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static bool isRegMaskId(RegisterId R)
static bool isCoverOf(RegisterRef RA, RegisterRef RB, const PhysicalRegisterInfo &PRI)
void removeMember(NodeAddr< NodeBase * > NA, const DataFlowGraph &G)
NodeId id(const NodeBase *P) const
void unlinkDef(NodeAddr< DefNode * > DA, bool RemoveFromOwner)
A vector that has set insertion semantics.
static LLVM_ATTRIBUTE_UNUSED Printable PrintLaneMask(LaneBitmask LaneMask)
Create Printable object to print LaneBitmasks on a raw_ostream.
NodeAddr< T > addr(NodeId N) const
NodeId getReachingDef() const
This class implements an extremely fast bulk output stream that can only output to a stream...
std::set< RegisterRef > RegisterSet
void sort(Policy policy, RandomAccessIterator Start, RandomAccessIterator End, const Comparator &Comp=Comparator())
auto find_if(R &&Range, UnaryPredicate P) -> decltype(std::begin(Range))
Provide wrappers to std::find_if which take ranges instead of having to pass begin/end explicitly...
NodeAddr< RefNode * > getNextRef(RegisterRef RR, Predicate P, bool NextOnly, const DataFlowGraph &G)
void start_block(NodeId N)
NodeAddr< BlockNode * > findBlock(MachineBasicBlock *BB) const
virtual unsigned getExceptionSelectorRegister(const Constant *PersonalityFn) const
If a physical register, this returns the register that receives the exception typeid on entry to a la...
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
unsigned pred_size() const
NodeAddr< RefNode * > getNextShadow(NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA, bool Create)
This file describes how to lower LLVM code to machine code.
void setReachedUse(NodeId U)
void setSibling(NodeId Sib)