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

Unified Diff: src/IceInstARM32.h

Issue 1670413002: Add NOP to ARM IR lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 10 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/IceInstARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index 504123b630f794de85e5f79a26a7c1fd174c7220..4d8f02b5b712e21d1f6ddf0a88f6cce172cfe286 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -397,6 +397,7 @@ public:
Ldrex,
Lsl,
Lsr,
+ Nop,
Mla,
Mls,
Mov,
@@ -1494,6 +1495,24 @@ private:
explicit InstARM32Dmb(Cfg *Func);
};
+class InstARM32Nop final : public InstARM32Pred {
+ InstARM32Nop() = delete;
+ InstARM32Nop(const InstARM32Nop &) = delete;
+ InstARM32Nop &operator=(const InstARM32Nop &) = delete;
+
+public:
+ static InstARM32Nop *create(Cfg *Func) {
+ return new (Func->allocate<InstARM32Nop>()) InstARM32Nop(Func);
+ }
+ void emit(const Cfg *Func) const override;
+ void emitIAS(const Cfg *Func) const override;
+ void dump(const Cfg *Func) const override;
+ static bool classof(const Inst *Instr) { return isClassof(Instr, Nop); }
+
+private:
+ explicit InstARM32Nop(Cfg *Func);
+};
+
// Declare partial template specializations of emit() methods that already have
// default implementations. Without this, there is the possibility of ODR
// violations and link errors.
« no previous file with comments | « no previous file | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698