[llvm-commits] CVS: llvm/include/llvm/Intrinsics.td

Reid Spencer reid at x10sys.com
Wed Jan 17 15:33:36 PST 2007



Changes in directory llvm/include/llvm:

Intrinsics.td updated: 1.40 -> 1.41
---
Log message:

For PR1028: http://llvm.org/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.


---
Diffs of the changes:  (+4 -2)

 Intrinsics.td |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/Intrinsics.td
diff -u llvm/include/llvm/Intrinsics.td:1.40 llvm/include/llvm/Intrinsics.td:1.41
--- llvm/include/llvm/Intrinsics.td:1.40	Fri Jan 12 01:05:13 2007
+++ llvm/include/llvm/Intrinsics.td	Wed Jan 17 17:33:20 2007
@@ -138,8 +138,10 @@
 //  
 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]>;






More information about the llvm-commits mailing list