Formation of igneous rocks, including partial melting, fractional crystallization, assimilation, and magma mixing.