A literary device that compares two things by giving one the attributes of another is a
simile
metaphor
paradox
hyperbole
simile
metaphor
paradox
hyperbole