Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: src/IceInst.cpp

Issue 1318553003: Compute the loop nest depth of each CfgNode and weight Variables by it. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInst.h ('k') | src/IceLoopAnalyzer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index 4b89eb77b0fa88f5f692f637a5ef892305b1a62b..ebbf89550376ce0ca2678aa158c58b080bcb56fa 100644
--- a/src/IceInst.cpp
+++ b/src/IceInst.cpp
@@ -432,6 +432,10 @@ InstStore::InstStore(Cfg *Func, Operand *Data, Operand *Addr)
addSource(Data);
}
+Variable *InstStore::getRmwBeacon() const {
+ return llvm::dyn_cast<Variable>(getSrc(2));
+}
+
void InstStore::setRmwBeacon(Variable *Beacon) {
Dest = llvm::dyn_cast<Variable>(getData());
Srcs[2] = Beacon;
« no previous file with comments | « src/IceInst.h ('k') | src/IceLoopAnalyzer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698