4 ms·
Well, clang is a C compiler that by itself only generates highly unoptimized LLVM IR, an intermediate language used in the compilation process. It illustrates a
by kccqzy 8y ago
Well, clang is a C compiler that by itself only generates highly unoptimized LLVM IR, an intermediate language used in the compilation process. It illustrates a few slightly unusual features, such as the fact that clang generates stack allocations liberally, relying on mem2reg to optimize them away.
If you really want to learn more, you have to check out the well written LLVM docs. If you prefer a hands-on approach, follow the kaleidoscope tutorial.