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

Side by Side Diff: src/IceTargetLoweringARM32.h

Issue 1177873003: Removes const qualification for two methods in TargetDataLowering. (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
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.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/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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; 295 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM];
296 llvm::SmallBitVector ScratchRegs; 296 llvm::SmallBitVector ScratchRegs;
297 llvm::SmallBitVector RegsUsed; 297 llvm::SmallBitVector RegsUsed;
298 VarList PhysicalRegisters[IceType_NUM]; 298 VarList PhysicalRegisters[IceType_NUM];
299 static IceString RegNames[]; 299 static IceString RegNames[];
300 300
301 private: 301 private:
302 ~TargetARM32() override {} 302 ~TargetARM32() override {}
303 }; 303 };
304 304
305 class TargetDataARM32 : public TargetDataLowering { 305 class TargetDataARM32 final : public TargetDataLowering {
306 TargetDataARM32() = delete; 306 TargetDataARM32() = delete;
307 TargetDataARM32(const TargetDataARM32 &) = delete; 307 TargetDataARM32(const TargetDataARM32 &) = delete;
308 TargetDataARM32 &operator=(const TargetDataARM32 &) = delete; 308 TargetDataARM32 &operator=(const TargetDataARM32 &) = delete;
309 309
310 public: 310 public:
311 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) { 311 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) {
312 return std::unique_ptr<TargetDataLowering>(new TargetDataARM32(Ctx)); 312 return std::unique_ptr<TargetDataLowering>(new TargetDataARM32(Ctx));
313 } 313 }
314 314
315 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final; 315 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) override;
316 void lowerConstants() const final; 316 void lowerConstants() override;
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 final : public TargetHeaderLowering { 327 class TargetHeaderARM32 final : public TargetHeaderLowering {
328 TargetHeaderARM32() = delete; 328 TargetHeaderARM32() = delete;
329 TargetHeaderARM32(const TargetHeaderARM32 &) = delete; 329 TargetHeaderARM32(const TargetHeaderARM32 &) = delete;
330 TargetHeaderARM32 &operator=(const TargetHeaderARM32 &) = delete; 330 TargetHeaderARM32 &operator=(const TargetHeaderARM32 &) = delete;
331 331
332 public: 332 public:
333 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) { 333 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) {
334 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderARM32(Ctx)); 334 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderARM32(Ctx));
335 } 335 }
336 336
337 void lower(); 337 void lower() override;
338 338
339 protected: 339 protected:
340 explicit TargetHeaderARM32(GlobalContext *Ctx); 340 explicit TargetHeaderARM32(GlobalContext *Ctx);
341 341
342 private: 342 private:
343 ~TargetHeaderARM32() = default; 343 ~TargetHeaderARM32() = default;
344 }; 344 };
345 345
346 } // end of namespace Ice 346 } // end of namespace Ice
347 347
348 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 348 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698