Displaying 2 results from an estimated 2 matches for "memmove_i32".
2007 Apr 20
0
[LLVMdev] llvm-gcc Bug, Looking for Advice on Fix
...unsigned numTys)
It turns out that this happens all over llvm-convert.c. Tys and numTys
default to zero, which is why it builds. The problem is, getDeclaration
calls getType(id, Tys, numTys) where this code is executed:
case Intrinsic::memcpy_i32: // llvm.memcpy.i32
case Intrinsic::memmove_i32: // llvm.memmove.i32
ResultTy = Type::getPrimitiveType(Type::VoidTyID);
ArgTys.push_back(Tys[1]);
ArgTys.push_back(Tys[2]);
ArgTys.push_back(IntegerType::get(32));
ArgTys.push_back(IntegerType::get(32));
Oops, Tys is 0!
Similar code exists for llvm.memcpy.i64, so it'...
2007 Apr 20
2
[LLVMdev] llvm-gcc Bug, Looking for Advice on Fix
Ok, I've tracked down the problem I've had bootstrapping
llvm-gcc. The culprit is in TreeToLLVM::EmitMemCpy:
void TreeToLLVM::EmitMemCpy(Value *DestPtr, Value *SrcPtr, Value *Size,
unsigned Align) {
const Type *SBP = PointerType::get(Type::Int8Ty);
const Type *IntPtr = TD.getIntPtrType();
Value *Ops[4] = {
CastToType(Instruction::BitCast,