OSDN Git Service

[MachineIRBuilder] Add buildBinaryOp helper. NFC
authorDiana Picus <diana.picus@linaro.org>
Wed, 5 Jul 2017 11:02:31 +0000 (11:02 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 5 Jul 2017 11:02:31 +0000 (11:02 +0000)
commitdd5cf95d9bf8c3e2b162e6283f05c5871cb7db0e
tree6b91a19f788ec002370007d3ef62aa24f0f8bec5
parent90b8bac67b247242ee39ffef0768f23ab87330f6
[MachineIRBuilder] Add buildBinaryOp helper. NFC

Add a helper for building simple binary ops like add, mul, sub, and.
This can be used in the future for quickly adding support for or, xor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307139 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp