llvm.org GIT mirror llvm / 8169cf8
Add intrinsics for the llvm.sig(set|long)jmp functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7949 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
3 changed file(s) with 11 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2222
2323 setjmp, // Used to represent a setjmp call in C
2424 longjmp, // Used to represent a longjmp call in C
25 sigsetjmp, // Used to represent a sigsetjmp call in C
26 siglongjmp, // Used to represent a siglongjmp call in C
2527
2628 //===------------------------------------------------------------------===//
2729 // This section defines intrinsic functions used to represent Alpha
197197 if (getName() == "llvm.longjmp") return LLVMIntrinsic::longjmp;
198198 break;
199199 case 's':
200 if (getName() == "llvm.setjmp") return LLVMIntrinsic::setjmp;
200 if (getName() == "llvm.setjmp") return LLVMIntrinsic::setjmp;
201 if (getName() == "llvm.sigsetjmp") return LLVMIntrinsic::sigsetjmp;
202 if (getName() == "llvm.siglongjmp") return LLVMIntrinsic::siglongjmp;
201203 break;
202204 case 'v':
203205 if (getName() == "llvm.va_copy") return LLVMIntrinsic::va_copy;
516516 " args!", &CI);
517517 NumArgs = 1;
518518 break;
519 case LLVMIntrinsic::va_end: NumArgs = 1; break;
520 case LLVMIntrinsic::va_copy: NumArgs = 2; break;
521 case LLVMIntrinsic::setjmp: NumArgs = 1; break;
522 case LLVMIntrinsic::longjmp: NumArgs = 2; break;
519 case LLVMIntrinsic::va_end: NumArgs = 1; break;
520 case LLVMIntrinsic::va_copy: NumArgs = 2; break;
521 case LLVMIntrinsic::setjmp: NumArgs = 1; break;
522 case LLVMIntrinsic::longjmp: NumArgs = 2; break;
523 case LLVMIntrinsic::sigsetjmp: NumArgs = 2; break;
524 case LLVMIntrinsic::siglongjmp: NumArgs = 2; break;
523525
524526 case LLVMIntrinsic::alpha_ctlz: NumArgs = 1; break;
525527 case LLVMIntrinsic::alpha_cttz: NumArgs = 1; break;