llvmpipe: add support for memory allocation APIs