반환 유형 및 인수가 uint32_t 및 long double 인 함수를 만들 수있는 방법이 있습니까? 예를 들어, 다음과 같이 우리가 int 형의 인수를 만들 수 있습니다 다음 LLVM 링크에서인수를 사용하여 llvm pass에 함수를 만들고 uint32_t 및 long double 유형의 유형을 반환하십시오.
std::vector<Type*>FuncTy_args;
FuncTy_args.push_back(IntegerType::get(M.getContext(), 32));
, 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)