From 0c05bdea2bc6e9acc1fb8455c01527e1cfe0e02a Mon Sep 17 00:00:00 2001 From: Daniel Cederman Date: Thu, 27 Sep 2018 13:32:54 +0000 Subject: [Sparc] Remove the support for builtin setjmp/longjmp Summary: It is currently broken and for Sparc there is not much benefit in using a builtin version compared to a library version. Both versions needs to store the same four values in setjmp and flush the register windows in longjmp. If the need for a builtin setjmp/longjmp arises there is an improved implementation available at https://reviews.llvm.org/D50969. Reviewers: jyknight, joerg, venkatra Subscribers: fedor.sergeev, jrtc27, llvm-commits Differential Revision: https://reviews.llvm.org/D51487 llvm-svn: 343210 --- llvm/lib/Target/Sparc/SparcISelLowering.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.h') diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.h b/llvm/lib/Target/Sparc/SparcISelLowering.h index 0f7c7311616..718851db25b 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.h +++ b/llvm/lib/Target/Sparc/SparcISelLowering.h @@ -33,9 +33,6 @@ namespace llvm { SELECT_XCC, // Select between two values using the current XCC flags. SELECT_FCC, // Select between two values using the current FCC flags. - EH_SJLJ_SETJMP, // builtin setjmp operation - EH_SJLJ_LONGJMP, // builtin longjmp operation - Hi, Lo, // Hi/Lo operations, typically on a global address. FTOI, // FP to Int within a FP register. @@ -171,11 +168,6 @@ namespace llvm { SDValue LowerConstantPool(SDValue Op, SelectionDAG &DAG) const; SDValue LowerBlockAddress(SDValue Op, SelectionDAG &DAG) const; - SDValue LowerEH_SJLJ_SETJMP(SDValue Op, SelectionDAG &DAG, - const SparcTargetLowering &TLI) const ; - SDValue LowerEH_SJLJ_LONGJMP(SDValue Op, SelectionDAG &DAG, - const SparcTargetLowering &TLI) const ; - SDValue withTargetFlags(SDValue Op, unsigned TF, SelectionDAG &DAG) const; SDValue makeHiLoPair(SDValue Op, unsigned HiTF, unsigned LoTF, SelectionDAG &DAG) const; @@ -219,10 +211,6 @@ namespace llvm { MachineBasicBlock *expandSelectCC(MachineInstr &MI, MachineBasicBlock *BB, unsigned BROpcode) const; - MachineBasicBlock *emitEHSjLjSetJmp(MachineInstr &MI, - MachineBasicBlock *MBB) const; - MachineBasicBlock *emitEHSjLjLongJmp(MachineInstr &MI, - MachineBasicBlock *MBB) const; }; } // end namespace llvm -- cgit v1.2.3