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.h

Issue 561883002: Add load and store instructions to Subzero bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix isses in patch set 2. Created 6 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 | « no previous file | src/IceTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index fd01e92eaeaca25d077fee7893f7c61ef07e44f3..484e10f4ade3978f72090012d33537ef2ccff4bf 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -481,7 +481,10 @@ private:
// Load instruction. The source address is captured in getSrc(0).
class InstLoad : public Inst {
public:
- static InstLoad *create(Cfg *Func, Variable *Dest, Operand *SourceAddr) {
+ static InstLoad *create(Cfg *Func, Variable *Dest, Operand *SourceAddr,
+ uint32_t align = 1) {
+ // TODO(kschimpf) Stop ignoring alignment specification.
+ (void)align;
return new (Func->allocateInst<InstLoad>())
InstLoad(Func, Dest, SourceAddr);
}
@@ -577,7 +580,10 @@ private:
// data operand to be stored into the address.
class InstStore : public Inst {
public:
- static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr) {
+ static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr,
+ uint32_t align = 1) {
+ // TODO(kschimpf) Stop ignoring alignment specification.
+ (void)align;
return new (Func->allocateInst<InstStore>()) InstStore(Func, Data, Addr);
}
Operand *getAddr() const { return getSrc(1); }
« no previous file with comments | « no previous file | src/IceTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698