This patch implements minimal support for lowering function calls to callees with arguments and/or return values according to the RISC-V calling convention. Simple non-aggregate types are supported. Lowering according to fastcc calling convention is not yet supported.
This patch is work in progress - many cases are not covered yet but feedback is very much appreciated.