Move lowerConstant to AsmPrinter

This was a static function before, and NVPTX duplicated it
because it wasn't exposed.
NVPTX: Remove duplicate of AsmPrinter::lowerConstant