Add codegen for logical operators.