summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-03 01:31:12 +0000
committerChris Lattner <sabre@nondot.org>2006-03-03 01:31:12 +0000
commit7f731c5db9bfec451f1e36fd11030ad166d59770 (patch)
treecef25134f71977491ba61b173121db3ae7a85f06 /llvm/examples
parentea7986aecaf17711e679e6ba305f718d070c8253 (diff)
downloadbcm5719-llvm-7f731c5db9bfec451f1e36fd11030ad166d59770.tar.gz
bcm5719-llvm-7f731c5db9bfec451f1e36fd11030ad166d59770.zip
Upgrade this to use the new intrinsic names
llvm-svn: 26483
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/BFtoLLVM/BFtoLLVM.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/examples/BFtoLLVM/BFtoLLVM.cpp b/llvm/examples/BFtoLLVM/BFtoLLVM.cpp
index 35acd57e72e..a85ef24537d 100644
--- a/llvm/examples/BFtoLLVM/BFtoLLVM.cpp
+++ b/llvm/examples/BFtoLLVM/BFtoLLVM.cpp
@@ -29,7 +29,7 @@ void emitDeclarations(std::ofstream &dest) {
<< "\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 @@ void emitMainFunctionProlog(std::ofstream &dest) {
<< "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";
OpenPOWER on IntegriCloud