HomePhabricator

[IR] Refactor memset inst classes (NFC)

Authored by dneilson on Apr 10 2018, 12:51 PM.

Description

[IR] Refactor memset inst classes (NFC)

Summary:
A simple refactor to remove duplicate code in the definitions of
MemSetInst, AtomicMemSetInst, and AnyMemSetInst. Introduce a
templated base class that contains all of the methods unique to
a memset intrinsic, and derive these three classes from that.

llvm-svn: 329747

Details

Committed
dneilsonApr 10 2018, 12:51 PM
Parents
rGa450ed23523f: Recommit r329716 "Add missing nullptr check before getSection() to…
Branches
Unknown
Tags
Unknown