Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /// \file | 10 /// \file |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 bool hasFramePointer() const override { return UsesFramePointer; } | 71 bool hasFramePointer() const override { return UsesFramePointer; } |
| 72 SizeT getFrameOrStackReg() const override { | 72 SizeT getFrameOrStackReg() const override { |
| 73 return UsesFramePointer ? RegARM32::Reg_fp : RegARM32::Reg_sp; | 73 return UsesFramePointer ? RegARM32::Reg_fp : RegARM32::Reg_sp; |
| 74 } | 74 } |
| 75 size_t typeWidthInBytesOnStack(Type Ty) const override { | 75 size_t typeWidthInBytesOnStack(Type Ty) const override { |
| 76 // Round up to the next multiple of 4 bytes. In particular, i1, | 76 // Round up to the next multiple of 4 bytes. In particular, i1, |
| 77 // i8, and i16 are rounded up to 4 bytes. | 77 // i8, and i16 are rounded up to 4 bytes. |
| 78 return (typeWidthInBytes(Ty) + 3) & ~3; | 78 return (typeWidthInBytes(Ty) + 3) & ~3; |
| 79 } | 79 } |
| 80 | 80 |
| 81 // TODO(ascull): what size is best for MIPS? | |
|
Jim Stichnoth
2015/07/17 15:33:47
Was it intentional to comment on MIPS in the ARM f
ascull
2015/07/17 18:21:29
No.
| |
| 82 SizeT getMinJumpTableSize() const override { return 3; } | |
| 83 | |
| 81 void emitVariable(const Variable *Var) const override; | 84 void emitVariable(const Variable *Var) const override; |
| 82 | 85 |
| 83 const char *getConstantPrefix() const final { return "#"; } | 86 const char *getConstantPrefix() const final { return "#"; } |
| 84 void emit(const ConstantUndef *C) const final; | 87 void emit(const ConstantUndef *C) const final; |
| 85 void emit(const ConstantInteger32 *C) const final; | 88 void emit(const ConstantInteger32 *C) const final; |
| 86 void emit(const ConstantInteger64 *C) const final; | 89 void emit(const ConstantInteger64 *C) const final; |
| 87 void emit(const ConstantFloat *C) const final; | 90 void emit(const ConstantFloat *C) const final; |
| 88 void emit(const ConstantDouble *C) const final; | 91 void emit(const ConstantDouble *C) const final; |
| 89 | 92 |
| 90 void lowerArguments() override; | 93 void lowerArguments() override; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 457 | 460 |
| 458 private: | 461 private: |
| 459 ~TargetHeaderARM32() = default; | 462 ~TargetHeaderARM32() = default; |
| 460 | 463 |
| 461 TargetARM32Features CPUFeatures; | 464 TargetARM32Features CPUFeatures; |
| 462 }; | 465 }; |
| 463 | 466 |
| 464 } // end of namespace Ice | 467 } // end of namespace Ice |
| 465 | 468 |
| 466 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H | 469 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H |
| OLD | NEW |