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

Side by Side 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 TargetLowering, LoweringContext, and 10 // This file declares the TargetLowering, LoweringContext, and
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 virtual void 383 virtual void
384 lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const = 0; 384 lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const = 0;
385 virtual void lowerConstants() const = 0; 385 virtual void lowerConstants() const = 0;
386 386
387 protected: 387 protected:
388 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 388 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
389 GlobalContext *Ctx; 389 GlobalContext *Ctx;
390 }; 390 };
391 391
392 // TargetHeaderLowering is used to "lower" the header of an output file.
393 // It writes out the target-specific header attributes. E.g., for ARM
394 // this writes out the build attributes (float ABI, etc.).
395 class TargetHeaderLowering {
396 TargetHeaderLowering() = delete;
397 TargetHeaderLowering(const TargetHeaderLowering &) = delete;
398 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete;
399
400 public:
401 static std::unique_ptr<TargetHeaderLowering>
402 createLowering(GlobalContext *Ctx);
403 virtual ~TargetHeaderLowering();
404
405 virtual void lower() {}
406
407 protected:
408 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
409 GlobalContext *Ctx;
410 };
411
392 } // end of namespace Ice 412 } // end of namespace Ice
393 413
394 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 414 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698