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

Unified Diff: src/IceTargetLowering.h

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: use class final, fix for mips32 Created 5 years, 6 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
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index a2eac4b3c6a0afb7cbd454063d23907ce5462d12..069b49e453db7237a274c4d4f23b33f3f1652ef0 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -389,6 +389,26 @@ protected:
GlobalContext *Ctx;
};
+// TargetHeaderLowering is used to "lower" the header of an output file.
+// It writes out the target-specific header attributes. E.g., for ARM
+// this writes out the build attributes (float ABI, etc.).
+class TargetHeaderLowering {
+ TargetHeaderLowering() = delete;
+ TargetHeaderLowering(const TargetHeaderLowering &) = delete;
+ TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete;
+
+public:
+ static std::unique_ptr<TargetHeaderLowering>
+ createLowering(GlobalContext *Ctx);
+ virtual ~TargetHeaderLowering();
+
+ virtual void lower() {}
+
+protected:
+ explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
+ GlobalContext *Ctx;
+};
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICETARGETLOWERING_H

Powered by Google App Engine
This is Rietveld 408576698