| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// |
| 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 implements the TargetLoweringX8632 class, which | 10 // This file implements the TargetLoweringX8632 class, which |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 (size_t)CharsPrinted < llvm::array_lengthof(buf)); | 1019 (size_t)CharsPrinted < llvm::array_lengthof(buf)); |
| 1020 (void)CharsPrinted; // avoid warnings if asserts are disabled | 1020 (void)CharsPrinted; // avoid warnings if asserts are disabled |
| 1021 Str << ".L$" << Ty << "$" << Const->getPoolEntryID() << ":\n"; | 1021 Str << ".L$" << Ty << "$" << Const->getPoolEntryID() << ":\n"; |
| 1022 Str << "\t" << T::AsmTag << "\t" << buf << "\t# " << T::TypeName << " " | 1022 Str << "\t" << T::AsmTag << "\t" << buf << "\t# " << T::TypeName << " " |
| 1023 << Value << "\n"; | 1023 << Value << "\n"; |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 void TargetX8632::emitConstants() const { | 1027 void TargetX8632::emitConstants() const { |
| 1028 // Note: Still used by emit IAS. | 1028 // Note: Still used by emit IAS. |
| 1029 emitConstantPool<PoolTypeConverter<float> >(); | 1029 emitConstantPool<PoolTypeConverter<float>>(); |
| 1030 emitConstantPool<PoolTypeConverter<double> >(); | 1030 emitConstantPool<PoolTypeConverter<double>>(); |
| 1031 | 1031 |
| 1032 // No need to emit constants from the int pool since (for x86) they | 1032 // No need to emit constants from the int pool since (for x86) they |
| 1033 // are embedded as immediates in the instructions. | 1033 // are embedded as immediates in the instructions. |
| 1034 } | 1034 } |
| 1035 | 1035 |
| 1036 void TargetX8632::split64(Variable *Var) { | 1036 void TargetX8632::split64(Variable *Var) { |
| 1037 switch (Var->getType()) { | 1037 switch (Var->getType()) { |
| 1038 default: | 1038 default: |
| 1039 return; | 1039 return; |
| 1040 case IceType_i64: | 1040 case IceType_i64: |
| (...skipping 3677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4718 } else if (IsConstant || IsExternal) | 4718 } else if (IsConstant || IsExternal) |
| 4719 Str << "\t.zero\t" << Size << "\n"; | 4719 Str << "\t.zero\t" << Size << "\n"; |
| 4720 // Size is part of .comm. | 4720 // Size is part of .comm. |
| 4721 | 4721 |
| 4722 if (IsConstant || HasNonzeroInitializer || IsExternal) | 4722 if (IsConstant || HasNonzeroInitializer || IsExternal) |
| 4723 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; | 4723 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; |
| 4724 // Size is part of .comm. | 4724 // Size is part of .comm. |
| 4725 } | 4725 } |
| 4726 | 4726 |
| 4727 } // end of namespace Ice | 4727 } // end of namespace Ice |
| OLD | NEW |