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

Side by Side Diff: src/IceTargetLoweringARM32.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: 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 lowering ----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares the TargetLoweringARM32 class, which implements the 10 // This file declares the TargetLoweringARM32 class, which implements the
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 protected: 318 protected:
319 explicit TargetDataARM32(GlobalContext *Ctx); 319 explicit TargetDataARM32(GlobalContext *Ctx);
320 320
321 private: 321 private:
322 void lowerGlobal(const VariableDeclaration &Var) const; 322 void lowerGlobal(const VariableDeclaration &Var) const;
323 ~TargetDataARM32() override {} 323 ~TargetDataARM32() override {}
324 template <typename T> static void emitConstantPool(GlobalContext *Ctx); 324 template <typename T> static void emitConstantPool(GlobalContext *Ctx);
325 }; 325 };
326 326
327 class TargetHeaderARM32 : public TargetHeaderLowering {
John 2015/06/05 22:28:30 Maybe the class should be final, and then you don'
jvoung (off chromium) 2015/06/08 22:21:10 Is that the preferred style? I could only find "E
John 2015/06/08 23:22:26 There's very little difference in marking a class
jvoung (off chromium) 2015/06/11 22:12:32 Ah, my original worry was if you rename ReturnRegi
328 TargetHeaderARM32() = delete;
329 TargetHeaderARM32(const TargetHeaderARM32 &) = delete;
330 TargetHeaderARM32 &operator=(const TargetHeaderARM32 &) = delete;
331
332 public:
333 static TargetHeaderLowering *create(GlobalContext *Ctx) {
334 return new TargetHeaderARM32(Ctx);
John 2015/06/05 22:28:29 why not returning a std::unique_ptr<TargetHeaderL
Jim Stichnoth 2015/06/08 20:23:43 I also think that sounds reasonable, here and for
jvoung (off chromium) 2015/06/08 22:21:10 Done.
335 }
336
337 void lower() final;
338
339 protected:
340 explicit TargetHeaderARM32(GlobalContext *Ctx);
341
342 private:
343 ~TargetHeaderARM32() final {}
John 2015/06/05 22:28:30 = default; instead of {}?
jvoung (off chromium) 2015/06/08 22:21:10 Done.
344 };
345
327 } // end of namespace Ice 346 } // end of namespace Ice
328 347
329 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 348 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698