OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX8664.cpp - x86-64 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8664.cpp - x86-64 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 /// \file | 10 /// \file |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 | 192 |
193 Variable *r15 = | 193 Variable *r15 = |
194 getPhysicalRegister(Traits::RegisterSet::Reg_r15, IceType_i64); | 194 getPhysicalRegister(Traits::RegisterSet::Reg_r15, IceType_i64); |
195 _add(rsp, r15); | 195 _add(rsp, r15); |
196 } | 196 } |
197 | 197 |
198 void TargetX8664::_push_rbp() { | 198 void TargetX8664::_push_rbp() { |
199 assert(NeedSandboxing); | 199 assert(NeedSandboxing); |
200 | 200 |
201 Constant *_0 = Ctx->getConstantZero(IceType_i32); | 201 Constant *_0 = getConstantZero(IceType_i32); |
202 Variable *ebp = | 202 Variable *ebp = |
203 getPhysicalRegister(Traits::RegisterSet::Reg_ebp, IceType_i32); | 203 getPhysicalRegister(Traits::RegisterSet::Reg_ebp, IceType_i32); |
204 Variable *rsp = | 204 Variable *rsp = |
205 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, IceType_i64); | 205 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, IceType_i64); |
206 auto *TopOfStack = llvm::cast<X86OperandMem>( | 206 auto *TopOfStack = llvm::cast<X86OperandMem>( |
207 legalize(X86OperandMem::create(Func, IceType_i32, rsp, _0), | 207 legalize(X86OperandMem::create(Func, IceType_i32, rsp, _0), |
208 Legal_Reg | Legal_Mem)); | 208 Legal_Reg | Legal_Mem)); |
209 | 209 |
210 // Emits a sequence: | 210 // Emits a sequence: |
211 // | 211 // |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ | 805 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ |
806 static_assert(_table1_##tag == _table2_##tag, \ | 806 static_assert(_table1_##tag == _table2_##tag, \ |
807 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE"); | 807 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE"); |
808 ICETYPE_TABLE | 808 ICETYPE_TABLE |
809 #undef X | 809 #undef X |
810 } // end of namespace dummy3 | 810 } // end of namespace dummy3 |
811 } // end of anonymous namespace | 811 } // end of anonymous namespace |
812 | 812 |
813 } // end of namespace X8664 | 813 } // end of namespace X8664 |
814 } // end of namespace Ice | 814 } // end of namespace Ice |
OLD | NEW |