implement reduction in low-level IR (LLVM)