llvm.org GIT mirror llvm / fb882ce
Upgrade this to use the new intrinsic names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26483 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2828 << "\n; Declarations\n"
2929 << "\ndeclare int %getchar()\n"
3030 << "declare int %putchar(int)\n"
31 << "declare void %llvm.memset(sbyte*, ubyte, uint, uint)\n"
31 << "declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)\n"
3232 << "\n";
3333 }
3434
3737 << "int %main(int %argc, sbyte** %argv) {\n"
3838 << "\nentry:\n"
3939 << "%arr = alloca sbyte, uint 30000\n"
40 << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n"
40 << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset.i32"
41 << "(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n"
4142 << "%ptrbox = alloca sbyte*\n"
4243 << "store sbyte* %arr, sbyte **%ptrbox\n"
4344 << "\n";