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

Side by Side Diff: src/IceInstARM32.h

Issue 1674033002: Subzero: Clean up some uses of *_cast<>. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 4 years, 10 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/IceInst.cpp ('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/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- 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 /// \file 10 /// \file
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 /// range. 341 /// range.
342 class StackVariable final : public Variable { 342 class StackVariable final : public Variable {
343 StackVariable() = delete; 343 StackVariable() = delete;
344 StackVariable(const StackVariable &) = delete; 344 StackVariable(const StackVariable &) = delete;
345 StackVariable &operator=(const StackVariable &) = delete; 345 StackVariable &operator=(const StackVariable &) = delete;
346 346
347 public: 347 public:
348 static StackVariable *create(Cfg *Func, Type Ty, SizeT Index) { 348 static StackVariable *create(Cfg *Func, Type Ty, SizeT Index) {
349 return new (Func->allocate<StackVariable>()) StackVariable(Ty, Index); 349 return new (Func->allocate<StackVariable>()) StackVariable(Ty, Index);
350 } 350 }
351 const static OperandKind StackVariableKind = 351 constexpr static auto StackVariableKind =
352 static_cast<OperandKind>(kVariable_Target); 352 static_cast<OperandKind>(kVariable_Target);
353 static bool classof(const Operand *Operand) { 353 static bool classof(const Operand *Operand) {
354 return Operand->getKind() == StackVariableKind; 354 return Operand->getKind() == StackVariableKind;
355 } 355 }
356 void setBaseRegNum(int32_t RegNum) { BaseRegNum = RegNum; } 356 void setBaseRegNum(int32_t RegNum) { BaseRegNum = RegNum; }
357 int32_t getBaseRegNum() const override { return BaseRegNum; } 357 int32_t getBaseRegNum() const override { return BaseRegNum; }
358 // Inherit dump() and emit() from Variable. 358 // Inherit dump() and emit() from Variable.
359 359
360 private: 360 private:
361 StackVariable(Type Ty, SizeT Index) 361 StackVariable(Type Ty, SizeT Index)
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 // violations and link errors. 1439 // violations and link errors.
1440 1440
1441 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1441 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1442 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1442 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1443 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1443 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1444 1444
1445 } // end of namespace ARM32 1445 } // end of namespace ARM32
1446 } // end of namespace Ice 1446 } // end of namespace Ice
1447 1447
1448 #endif // SUBZERO_SRC_ICEINSTARM32_H 1448 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698