diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-17 23:33:20 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-17 23:33:20 +0000 |
| commit | 7300651384fea213f4fe023f089f0e652d7f045d (patch) | |
| tree | 2bb370b0b8dafa4d0bba0312e9689e91f2062eb0 /llvm | |
| parent | 062a3b82412445cdc61b24040af9c995fae6e246 (diff) | |
| download | bcm5719-llvm-7300651384fea213f4fe023f089f0e652d7f045d.tar.gz bcm5719-llvm-7300651384fea213f4fe023f089f0e652d7f045d.zip | |
For PR1028:
Add the llvm.stacksave and llvm.stackrestore intrinsics that correspond
to the GCC builtins __builtin_stack_save and __builtin_stack_restore. This
allows the CBE to execute these builtins, and fixes:
test/CodeGen/CBackend/2007-01-17-StackSaveNRestore.ll
External/SPEC/CINT2000/176.gcc (CBE)
Patch by Gordon Henriksen.
llvm-svn: 33313
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Intrinsics.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Intrinsics.td b/llvm/include/llvm/Intrinsics.td index 6bcbd6895fd..3fc55f79da6 100644 --- a/llvm/include/llvm/Intrinsics.td +++ b/llvm/include/llvm/Intrinsics.td @@ -138,8 +138,10 @@ def int_gcwrite : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_ptr_ty, // def int_returnaddress : Intrinsic<[llvm_ptr_ty, llvm_i32_ty], [IntrNoMem]>; def int_frameaddress : Intrinsic<[llvm_ptr_ty, llvm_i32_ty], [IntrNoMem]>; -def int_stacksave : Intrinsic<[llvm_ptr_ty], [IntrReadMem]>; -def int_stackrestore : Intrinsic<[llvm_void_ty, llvm_ptr_ty]>; +def int_stacksave : Intrinsic<[llvm_ptr_ty], [IntrReadMem]>, + GCCBuiltin<"__builtin_stack_save">; +def int_stackrestore : Intrinsic<[llvm_void_ty, llvm_ptr_ty]>, + GCCBuiltin<"__builtin_stack_restore">; def int_prefetch : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty]>; def int_pcmarker : Intrinsic<[llvm_void_ty, llvm_i32_ty]>; |

