| OLD | NEW |
| 1 //===-- SelectionDAGBuilder.cpp - Selection-DAG building ------------------===// | 1 //===-- SelectionDAGBuilder.cpp - Selection-DAG building ------------------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 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 implements routines for translating from LLVM IR into SelectionDAG IR. | 10 // This implements routines for translating from LLVM IR into SelectionDAG IR. |
| (...skipping 5169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5180 return 0; | 5180 return 0; |
| 5181 case Intrinsic::invariant_end: | 5181 case Intrinsic::invariant_end: |
| 5182 case Intrinsic::lifetime_end: | 5182 case Intrinsic::lifetime_end: |
| 5183 // Discard region information. | 5183 // Discard region information. |
| 5184 return 0; | 5184 return 0; |
| 5185 case Intrinsic::donothing: | 5185 case Intrinsic::donothing: |
| 5186 // ignore | 5186 // ignore |
| 5187 return 0; | 5187 return 0; |
| 5188 // @LOCALMOD-BEGIN | 5188 // @LOCALMOD-BEGIN |
| 5189 // Native Client Intrinsics for TLS setup / layout. | 5189 // Native Client Intrinsics for TLS setup / layout. |
| 5190 case Intrinsic::nacl_thread_stack_padding: { | |
| 5191 EVT DestVT = TLI.getValueType(I.getType()); | |
| 5192 setValue(&I, DAG.getNode(ISD::NACL_THREAD_STACK_PADDING, dl, DestVT)); | |
| 5193 return 0; | |
| 5194 } | |
| 5195 case Intrinsic::nacl_tp_alignment: { | 5190 case Intrinsic::nacl_tp_alignment: { |
| 5196 EVT DestVT = TLI.getValueType(I.getType()); | 5191 EVT DestVT = TLI.getValueType(I.getType()); |
| 5197 setValue(&I, DAG.getNode(ISD::NACL_TP_ALIGN, dl, DestVT)); | 5192 setValue(&I, DAG.getNode(ISD::NACL_TP_ALIGN, dl, DestVT)); |
| 5198 return 0; | 5193 return 0; |
| 5199 } | 5194 } |
| 5200 case Intrinsic::nacl_tp_tls_offset: { | 5195 case Intrinsic::nacl_tp_tls_offset: { |
| 5201 SDValue tls_size = getValue(I.getArgOperand(0)); | 5196 SDValue tls_size = getValue(I.getArgOperand(0)); |
| 5202 setValue(&I, DAG.getNode(ISD::NACL_TP_TLS_OFFSET, dl, | 5197 setValue(&I, DAG.getNode(ISD::NACL_TP_TLS_OFFSET, dl, |
| 5203 tls_size.getValueType(), | 5198 tls_size.getValueType(), |
| 5204 tls_size)); | 5199 tls_size)); |
| (...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6916 EVT VT = ValueVTs[vti]; | 6911 EVT VT = ValueVTs[vti]; |
| 6917 unsigned NumRegisters = TLI.getNumRegisters(*DAG.getContext(), VT); | 6912 unsigned NumRegisters = TLI.getNumRegisters(*DAG.getContext(), VT); |
| 6918 for (unsigned i = 0, e = NumRegisters; i != e; ++i) | 6913 for (unsigned i = 0, e = NumRegisters; i != e; ++i) |
| 6919 FuncInfo.PHINodesToUpdate.push_back(std::make_pair(MBBI++, Reg+i)); | 6914 FuncInfo.PHINodesToUpdate.push_back(std::make_pair(MBBI++, Reg+i)); |
| 6920 Reg += NumRegisters; | 6915 Reg += NumRegisters; |
| 6921 } | 6916 } |
| 6922 } | 6917 } |
| 6923 } | 6918 } |
| 6924 ConstantsOut.clear(); | 6919 ConstantsOut.clear(); |
| 6925 } | 6920 } |
| OLD | NEW |