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

Unified Diff: lib/Target/X86/X86ISelLowering.cpp

Issue 10874034: Remove the llvm.nacl.thread.stack.padding intrinsic (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/X86/X86ISelLowering.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Target/X86/X86ISelLowering.cpp
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 4197c35adb35a4f856b079d451e121417cfa000c..650cb72088979527678e8775b90817ea881d4aaa 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1247,7 +1247,6 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
// @LOCALMOD-BEGIN
if (Subtarget->isTargetNaCl()) {
- setOperationAction(ISD::NACL_THREAD_STACK_PADDING, MVT::i32, Custom);
setOperationAction(ISD::NACL_TP_ALIGN, MVT::i32, Custom);
setOperationAction(ISD::NACL_TP_TLS_OFFSET, MVT::i32, Custom);
setOperationAction(ISD::NACL_TP_TDB_OFFSET, MVT::i32, Custom);
@@ -9593,16 +9592,6 @@ SDValue X86TargetLowering::LowerNaClTpTdbOffset(SDValue Op,
}
SDValue
-X86TargetLowering::LowerNaClThreadStackPadding(SDValue Op,
- SelectionDAG &DAG) const {
- // size_t __nacl_thread_stack_padding () {
- // return reg_size;
- // }
- return DAG.getConstant(RegInfo->getSlotSize(),
- Op.getValueType().getSimpleVT());
-}
-
-SDValue
X86TargetLowering::LowerNaClTargetArch(SDValue Op, SelectionDAG &DAG) const {
// int __nacl_target_arch () {
// return (is_64_bit ?
@@ -11126,8 +11115,6 @@ SDValue X86TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
case ISD::ADD: return LowerADD(Op, DAG);
case ISD::SUB: return LowerSUB(Op, DAG);
// @LOCALMOD-BEGIN
- case ISD::NACL_THREAD_STACK_PADDING:
- return LowerNaClThreadStackPadding(Op, DAG);
case ISD::NACL_TP_ALIGN: return LowerNaClTpAlign(Op, DAG);
case ISD::NACL_TP_TLS_OFFSET: return LowerNaClTpTlsOffset(Op, DAG);
case ISD::NACL_TP_TDB_OFFSET: return LowerNaClTpTdbOffset(Op, DAG);
« no previous file with comments | « lib/Target/X86/X86ISelLowering.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698