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

Unified Diff: src/IceTargetLowering.h

Issue 1075363002: Add a basic TargetARM32 skeleton which knows nothing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove comments Created 5 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/IceRegistersARM32.h ('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 112572c3dd7d2b26763f179a4c065228c4762c05..baa569f037cd174d78a776de5217c901d9c9ad44 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -95,6 +95,7 @@ class TargetLowering {
TargetLowering &operator=(const TargetLowering &) = delete;
public:
+ // TODO(jvoung): return a unique_ptr like the other factory functions.
static TargetLowering *createLowering(TargetArch Target, Cfg *Func);
static std::unique_ptr<Assembler> createAssembler(TargetArch Target,
Cfg *Func);
@@ -171,6 +172,7 @@ public:
int32_t getStackAdjustment() const { return StackAdjustment; }
void updateStackAdjustment(int32_t Offset) { StackAdjustment += Offset; }
void resetStackAdjustment() { StackAdjustment = 0; }
+ SizeT makeNextLabelNumber() { return NextLabelNumber++; }
LoweringContext &getContext() { return Context; }
enum RegSet {
@@ -241,6 +243,10 @@ protected:
// expansion before returning.
virtual void postLower() {}
+ // Make a call to an external helper function.
+ InstCall *makeHelperCall(const IceString &Name, Variable *Dest,
+ SizeT MaxSrcs);
+
Cfg *Func;
GlobalContext *Ctx;
bool HasComputedFrame;
@@ -248,6 +254,7 @@ protected:
// StackAdjustment keeps track of the current stack offset from its
// natural location, as arguments are pushed for a function call.
int32_t StackAdjustment;
+ SizeT NextLabelNumber;
LoweringContext Context;
// Runtime helper function names
« no previous file with comments | « src/IceRegistersARM32.h ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698