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

Unified Diff: src/IceTargetLowering.h

Issue 1129263005: Convert Constant->emit() definitions to allow multiple targets to define them. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: report fatal Created 5 years, 7 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/IceOperand.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index baa569f037cd174d78a776de5217c901d9c9ad44..50035747cbf33b652bdeb789994b3478a1fec785 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -23,6 +23,7 @@
#include "IceDefs.h"
#include "IceInst.h" // for the names of the Inst subtypes
+#include "IceOperand.h"
#include "IceTypes.h"
namespace Ice {
@@ -207,6 +208,16 @@ public:
virtual void emitVariable(const Variable *Var) const = 0;
+ void emitWithoutPrefix(const ConstantRelocatable *CR) const;
+ void emit(const ConstantRelocatable *CR) const;
+ virtual const char *getConstantPrefix() const = 0;
+
+ virtual void emit(const ConstantUndef *C) const = 0;
+ virtual void emit(const ConstantInteger32 *C) const = 0;
+ virtual void emit(const ConstantInteger64 *C) const = 0;
+ virtual void emit(const ConstantFloat *C) const = 0;
+ virtual void emit(const ConstantDouble *C) const = 0;
+
// Performs target-specific argument lowering.
virtual void lowerArguments() = 0;
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698