[llvm-commits] CVS: llvm/examples/BFtoLLVM/BFtoLLVM.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 2 17:31:24 PST 2006



Changes in directory llvm/examples/BFtoLLVM:

BFtoLLVM.cpp updated: 1.3 -> 1.4
---
Log message:

Upgrade this to use the new intrinsic names


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

 BFtoLLVM.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/examples/BFtoLLVM/BFtoLLVM.cpp
diff -u llvm/examples/BFtoLLVM/BFtoLLVM.cpp:1.3 llvm/examples/BFtoLLVM/BFtoLLVM.cpp:1.4
--- llvm/examples/BFtoLLVM/BFtoLLVM.cpp:1.3	Thu Apr 21 22:18:57 2005
+++ llvm/examples/BFtoLLVM/BFtoLLVM.cpp	Thu Mar  2 19:31:12 2006
@@ -29,7 +29,7 @@
        << "\n; Declarations\n"
        << "\ndeclare int %getchar()\n"
        << "declare int %putchar(int)\n"
-       << "declare void %llvm.memset(sbyte*, ubyte, uint, uint)\n"
+       << "declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)\n"
        << "\n";
 }
 
@@ -38,7 +38,8 @@
        << "int %main(int %argc, sbyte** %argv) {\n"
        << "\nentry:\n"
        << "%arr = alloca sbyte, uint 30000\n"
-       << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n"
+       << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset.i32"
+       << "(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n"
        << "%ptrbox = alloca sbyte*\n"
        << "store sbyte* %arr, sbyte **%ptrbox\n"
        << "\n";






More information about the llvm-commits mailing list