Displaying 1 result from an estimated 1 matches for "fdp_ai".
Did you mean:
fd_ai
2016 Jun 28
0
mutateType on AllocaInst problem
...LLVMContext *Context = &(AI->getContext());
IRBuilder<> IRB(*Context);
VectorType *FDP_fatvector = VectorType::get(
PointerType::getInt8PtrTy(*Context),
3
);
// two different ways depending on wether to create and insert or just
create
// AllocaInst *FDP_AI = new AllocaInst(cast<Type>(FDP_fatvector));
IRB.SetInsertPoint(AI);
AllocaInst *FDP_AI = IRB.CreateAlloca(cast<Type>(FDP_fatvector));
cast<Value>(AI)->mutateType(cast<Value>(FDP_AI)->getType());
cast<Value>(AI)->replaceAllUsesWith(cast<Val...