aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Mips
diff options
context:
space:
mode:
authorMark Seaborn <mrs@mythic-beasts.com>2012-08-23 16:33:28 -0700
committerMark Seaborn <mrs@mythic-beasts.com>2012-08-23 16:33:28 -0700
commit745ca5f2685c11476d9d1ad86bb3f83754130227 (patch)
tree0ef039285cc59fb720821009be1a752fa9d4cec0 /lib/Target/Mips
parent8a9f83838bcd7aded2e6e77e45e6d345f574bed4 (diff)
Remove the llvm.nacl.thread.stack.padding intrinsic
This intrinsic is no longer used by untrusted code's libpthread. Instead the system (the IRT and/or TCB) is responsible for aligning the stack in new threads. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2904 TEST=run_stack_alignment_test Review URL: https://chromiumcodereview.appspot.com/10874034
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r--lib/Target/Mips/MipsISelLowering.cpp8
-rw-r--r--lib/Target/Mips/MipsISelLowering.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index 581d53117b..1a656c97d8 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -289,7 +289,6 @@ MipsTargetLowering(MipsTargetMachine &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);
@@ -822,8 +821,6 @@ LowerOperation(SDValue Op, SelectionDAG &DAG) const
case ISD::STORE: return LowerSTORE(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);
@@ -1662,11 +1659,6 @@ SDValue MipsTargetLowering::LowerBlockAddress(SDValue Op,
// NaCl TLS setup / layout intrinsics.
// See: native_client/src/untrusted/nacl/tls_params.h
-SDValue MipsTargetLowering::LowerNaClThreadStackPadding(SDValue Op,
- SelectionDAG &DAG) const {
- return DAG.getConstant(0, Op.getValueType().getSimpleVT());
-}
-
SDValue MipsTargetLowering::LowerNaClTpAlign(SDValue Op,
SelectionDAG &DAG) const {
return DAG.getConstant(4, Op.getValueType().getSimpleVT());
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h
index 5abf77dc65..e23752c62a 100644
--- a/lib/Target/Mips/MipsISelLowering.h
+++ b/lib/Target/Mips/MipsISelLowering.h
@@ -153,7 +153,6 @@ namespace llvm {
SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;
// @LOCALMOD-BEGIN
- SDValue LowerNaClThreadStackPadding(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerNaClTpAlign(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerNaClTpTlsOffset(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerNaClTpTdbOffset(SDValue Op, SelectionDAG &DAG) const;