LLVM from a Go Perspective
To try to remedy that, I’ll show some code samples in Go and show how they translate to Go SSA and then to LLVM IR using the TinyGo compiler. This Go SSA is trivially converted to LLVM IR:
You can see that the syntax is different, but the structure of the function is basically the same. LLVM IR is a bit more like C in that it puts the return type first in a function declaration and the type of an argument comes before the name of an argument.
Source: aykevl.nl