在llvm pass中创建函数,参数类型为uint32_t,返回类型为double double
问题描述:
是否有任何方法创建一个返回类型和参数为uint32_t和long double的函数? 例如,我们可以创建int类型的参数,如下所示:在llvm pass中创建函数,参数类型为uint32_t,返回类型为double double
std::vector<Type*>FuncTy_args;
FuncTy_args.push_back(IntegerType::get(M.getContext(), 32));
在LLVM链路, http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html。我只能看到
static PointerType * getInt32PtrTy (LLVMContext &C, unsigned AS=0)
static PointerType * getDoublePtrTy (LLVMContext &C, unsigned AS=0)