Heavy flavour production at the LHC: Theoretical aspects