mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
reapply Sanjiv's patch to genericize memcpy/memset/memmove to take an
arbitrary integer width for the count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,7 +53,9 @@ void BrainF::header() {
|
||||
//Function prototypes
|
||||
|
||||
//declare void @llvm.memset.i32(i8 *, i8, i32, i32)
|
||||
Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset_i32);
|
||||
const Type *Tys[] = { Type::Int32Ty };
|
||||
Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
|
||||
Tys, 1);
|
||||
|
||||
//declare i32 @getchar()
|
||||
getchar_func = cast<Function>(module->
|
||||
|
Reference in New Issue
Block a user