Displaying 1 result from an estimated 1 matches for "each_custom".
2017 Mar 24
2
Problem about API difference between LLVM3.5 and LLVM3.9
...->getAddressSpace();
2 FunctionType *new_type = FunctionType::get(new_return_type,
arg_types, type->isVarArg( ));
3 func->mutateType(PointerType::get(new_type, address_space));
4 //Duplicate arguments
5 std::vector<Argument *> arg_list;
6 for each_custom(arg, *func, arg_begin, arg_end)
7 arg_list.push_back(&*arg);
8 for each(arg, arg_list){
9 Argument *arg_dup = new Argument((*arg)->getType(),
makeName(*arg, "_dup"));
10 func->getArgumentList().insertAfter((*arg)->getIterator(),
arg_dup);...