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

Unified Diff: src/IceTargetLoweringX8664.h

Issue 1551633002: Subzero. Refactoring. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years 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/IceTargetLoweringX8632.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8664.h
diff --git a/src/IceTargetLoweringX8664.h b/src/IceTargetLoweringX8664.h
index 6169dd27ac205e422055c4e24a4ba544c38cda99..14a1d2598244518979ea1b19b21b12347dd78468 100644
--- a/src/IceTargetLoweringX8664.h
+++ b/src/IceTargetLoweringX8664.h
@@ -36,7 +36,15 @@ class TargetX8664 final
const InstJumpTable *JumpTable) const override;
public:
- static TargetX8664 *create(Cfg *Func) { return new TargetX8664(Func); }
+ ~TargetX8664() = default;
+
+ static std::unique_ptr<::Ice::TargetLowering> create(Cfg *Func) {
+ return makeUnique<TargetX8664>(Func);
+ }
+
+ std::unique_ptr<::Ice::Assembler> createAssembler() const override {
+ return makeUnique<X8664::AssemblerX8664>();
+ }
protected:
void lowerCall(const InstCall *Instr) override;
@@ -46,6 +54,7 @@ protected:
void addEpilog(CfgNode *Node) override;
private:
+ ENABLE_MAKE_UNIQUE;
friend class ::Ice::X86Internal::TargetX86Base<TargetX8664>;
explicit TargetX8664(Cfg *Func)
@@ -101,6 +110,7 @@ private:
explicit TargetHeaderX8664(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {}
};
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICETARGETLOWERINGX8664_H
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698