summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/RDFGraph.h
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-03-10 22:42:17 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-03-10 22:42:17 +0000
commit0b8f184d12abfd7366389302ce29167bcee265cd (patch)
tree3a80f6d95864066291c469ac3d04baf5ed236191 /llvm/lib/Target/Hexagon/RDFGraph.h
parent128a10a41d881d94ace4fcc6fea503e9159ba150 (diff)
downloadbcm5719-llvm-0b8f184d12abfd7366389302ce29167bcee265cd.tar.gz
bcm5719-llvm-0b8f184d12abfd7366389302ce29167bcee265cd.zip
[RDF] Implement Liveness::getNearestAliasedRef(Reg, Inst)
This function will find the closest ref node aliased to Reg that is in an instruction preceding Inst. This could be used to identify the hypothetical reaching def of Reg, if Reg was a member of Inst. llvm-svn: 297524
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFGraph.h')
-rw-r--r--llvm/lib/Target/Hexagon/RDFGraph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFGraph.h b/llvm/lib/Target/Hexagon/RDFGraph.h
index bf4018ba7fc..d5faca4cd6f 100644
--- a/llvm/lib/Target/Hexagon/RDFGraph.h
+++ b/llvm/lib/Target/Hexagon/RDFGraph.h
@@ -761,6 +761,10 @@ namespace rdf {
NodeList getRelatedRefs(NodeAddr<InstrNode*> IA,
NodeAddr<RefNode*> RA) const;
+ NodeAddr<BlockNode*> findBlock(MachineBasicBlock *BB) const {
+ return BlockNodes.at(BB);
+ }
+
void unlinkUse(NodeAddr<UseNode*> UA, bool RemoveFromOwner) {
unlinkUseDF(UA);
if (RemoveFromOwner)
@@ -860,10 +864,6 @@ namespace rdf {
IA.Addr->removeMember(RA, *this);
}
- NodeAddr<BlockNode*> findBlock(MachineBasicBlock *BB) {
- return BlockNodes[BB];
- }
-
MachineFunction &MF;
const TargetInstrInfo &TII;
const TargetRegisterInfo &TRI;
OpenPOWER on IntegriCloud