[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp Verifier.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 18 10:42:03 PDT 2003
Changes in directory llvm/lib/VMCore:
Function.cpp updated: 1.41 -> 1.42
Verifier.cpp updated: 1.54 -> 1.55
---
Log message:
Add intrinsics for the llvm.sig(set|long)jmp functions
---
Diffs of the changes:
Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.41 llvm/lib/VMCore/Function.cpp:1.42
--- llvm/lib/VMCore/Function.cpp:1.41 Wed Aug 6 15:08:23 2003
+++ llvm/lib/VMCore/Function.cpp Mon Aug 18 10:41:24 2003
@@ -198,7 +198,9 @@
if (getName() == "llvm.longjmp") return LLVMIntrinsic::longjmp;
break;
case 's':
- if (getName() == "llvm.setjmp") return LLVMIntrinsic::setjmp;
+ if (getName() == "llvm.setjmp") return LLVMIntrinsic::setjmp;
+ if (getName() == "llvm.sigsetjmp") return LLVMIntrinsic::sigsetjmp;
+ if (getName() == "llvm.siglongjmp") return LLVMIntrinsic::siglongjmp;
break;
case 'v':
if (getName() == "llvm.va_copy") return LLVMIntrinsic::va_copy;
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.54 llvm/lib/VMCore/Verifier.cpp:1.55
--- llvm/lib/VMCore/Verifier.cpp:1.54 Mon Aug 18 09:34:26 2003
+++ llvm/lib/VMCore/Verifier.cpp Mon Aug 18 10:41:24 2003
@@ -517,10 +517,12 @@
" args!", &CI);
NumArgs = 1;
break;
- case LLVMIntrinsic::va_end: NumArgs = 1; break;
- case LLVMIntrinsic::va_copy: NumArgs = 2; break;
- case LLVMIntrinsic::setjmp: NumArgs = 1; break;
- case LLVMIntrinsic::longjmp: NumArgs = 2; break;
+ case LLVMIntrinsic::va_end: NumArgs = 1; break;
+ case LLVMIntrinsic::va_copy: NumArgs = 2; break;
+ case LLVMIntrinsic::setjmp: NumArgs = 1; break;
+ case LLVMIntrinsic::longjmp: NumArgs = 2; break;
+ case LLVMIntrinsic::sigsetjmp: NumArgs = 2; break;
+ case LLVMIntrinsic::siglongjmp: NumArgs = 2; break;
case LLVMIntrinsic::alpha_ctlz: NumArgs = 1; break;
case LLVMIntrinsic::alpha_cttz: NumArgs = 1; break;
More information about the llvm-commits
mailing list