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

Side by Side Diff: src/IceTargetLowering.h

Issue 358013003: Subzero: Partial implementation of global initializers. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: After rebasing from laster master Created 6 years, 5 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
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 and LoweringContext 10 // This file declares the TargetLowering and LoweringContext
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // StackAdjustment keeps track of the current stack offset from its 192 // StackAdjustment keeps track of the current stack offset from its
193 // natural location, as arguments are pushed for a function call. 193 // natural location, as arguments are pushed for a function call.
194 int32_t StackAdjustment; 194 int32_t StackAdjustment;
195 LoweringContext Context; 195 LoweringContext Context;
196 196
197 private: 197 private:
198 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; 198 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION;
199 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; 199 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION;
200 }; 200 };
201 201
202 // TargetGlobalInitLowering is used for "lowering" global
203 // initializers. It is separated out from TargetLowering because it
204 // does not require a Cfg.
205 class TargetGlobalInitLowering {
206 public:
207 static TargetGlobalInitLowering *createLowering(TargetArch Target,
208 GlobalContext *Ctx);
209 // TODO: Allow relocations to be represented as part of the Data.
210 virtual void lower(const IceString &Name, SizeT Align, bool IsInternal,
211 bool IsConst, bool IsZeroInitializer, SizeT Size,
212 const char *Data, bool DisableTranslation) = 0;
213
214 protected:
215 TargetGlobalInitLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
216 GlobalContext *Ctx;
217
218 private:
219 TargetGlobalInitLowering(const TargetGlobalInitLowering &)
220 LLVM_DELETED_FUNCTION;
221 TargetGlobalInitLowering &
222 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
223 };
224
202 } // end of namespace Ice 225 } // end of namespace Ice
203 226
204 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 227 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698