Displaying 1 result from an estimated 1 matches for "nonvar".
Did you mean:
nonpar
2015 Jan 15
2
[LLVMdev] AllocaInst for FunctionType?
...ssible? Not?
If we have a valid Module *m
we can get an allocate instruction allocating space for a non-argumented
function as follows:
AllocaInst* pa2 = new AllocaInst( FunctionType::get(
Type::getVoidTy(m->getContext()), false )
, 1, "myName");
but how about nonvar-argumented functions? E.g. I32,I16
std::vector<Type*>FuncTy_args;
FuncTy_args.push_back(IntegerType::get(mod->getContext(), 32));
FuncTy_args.push_back(IntegerType::get(mod->getContext(), 16));
AllocaInst* pa3 = new AllocaInst( FunctionType::get(
Type::getVoidTy(m->getContext...