OSDN Git Service

[IR] Refactor memtransfer inst classes (NFC)
authorDaniel Neilson <dneilson@azul.com>
Tue, 10 Apr 2018 19:23:11 +0000 (19:23 +0000)
committerDaniel Neilson <dneilson@azul.com>
Tue, 10 Apr 2018 19:23:11 +0000 (19:23 +0000)
commit7b079330a5eb380c1233461ae60a35423dc537df
tree1bbf2721cfb436040be8ce3e2da404638f80d6bb
parent74ef222da219ceaa5c8d08d9cb7784ac767277d4
[IR] Refactor memtransfer inst classes (NFC)

Summary:
A simple refactor to remove duplicate code in the definitions of
MemTransferInst, AtomicMemTransferInst, and AnyMemTransferInst.
Introduce a templated base class that contains all of the methods
unique to a memory transfer intrinsic, and derive these three
classes from that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329744 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicInst.h