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

Unified Diff: src/IceInst.h

Issue 1876413002: Subzero. WASM. Additional progress. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging with master Created 4 years, 8 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/IceCfg.cpp ('k') | src/IceInst.cpp » ('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 1b49419eaab27f5e10001cddf382e124b59fe928..db273aa500c7f17e8eadb38bae559aaabe9d7a8c 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -62,6 +62,7 @@ public:
Store,
Switch,
Assign, // not part of LLVM/PNaCl bitcode
+ Breakpoint, // not part of LLVM/PNaCl bitcode
BundleLock, // not part of LLVM/PNaCl bitcode
BundleUnlock, // not part of LLVM/PNaCl bitcode
FakeDef, // not part of LLVM/PNaCl bitcode
@@ -976,6 +977,29 @@ private:
GlobalString FuncName;
};
+/// This instruction inserts an unconditional breakpoint.
+///
+/// On x86, this assembles into an INT 3 instruction.
+///
+/// This instruction is primarily meant for debugging the code generator.
+class InstBreakpoint : public InstHighLevel {
+public:
+ InstBreakpoint() = delete;
+ InstBreakpoint(const InstBreakpoint &) = delete;
+ InstBreakpoint &operator=(const InstBreakpoint &) = delete;
+
+ InstBreakpoint(Cfg *Func);
+
+public:
+ static InstBreakpoint *create(Cfg *Func) {
+ return new (Func->allocate<InstBreakpoint>()) InstBreakpoint(Func);
+ }
+
+ static bool classof(const Inst *Instr) {
+ return Instr->getKind() == Breakpoint;
+ }
+};
+
/// The Target instruction is the base class for all target-specific
/// instructions.
class InstTarget : public Inst {
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698