search for: functy_arg

Displaying 1 result from an estimated 1 matches for "functy_arg".

Did you mean: functy_args
2015 Jan 15
2
[LLVMdev] AllocaInst for FunctionType?
...te 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()), FuncTy_args ,false ) , 1, "MyName"); does this ma...