LLVM code generation for record operations