SILFunction *func = ...; LoweredFunctionType *funcType = func->getLoweredFunctionType();
void foo(int x, int y); SILModule *module = ...; SILFunction *func = module->getOrCreateFunction("foo", SILLinkage::External); LoweredFunctionType *funcType = func->getLoweredFunctionType();This example retrieves the lowered function type of an external function named "foo" defined in C/C++ code. Package library: LLVM.