OSDN Git Service

[IRBuilder] Add CreateUnOp(...) to the IRBuilder to support unary FNeg
authorCameron McInally <cameron.mcinally@nyu.edu>
Tue, 28 May 2019 13:00:52 +0000 (13:00 +0000)
committerCameron McInally <cameron.mcinally@nyu.edu>
Tue, 28 May 2019 13:00:52 +0000 (13:00 +0000)
commitd492be25abee192d029cf5584f111d6034fdd1a2
treebff2fe2608e770ef085f54fadce7c6fc09e08769
parentae66674cad31c8f152c5f308d917d1cf246beddb
[IRBuilder] Add CreateUnOp(...) to the IRBuilder to support unary FNeg

Also update UnaryOperator to support isa, cast, and dyn_cast.

Differential Revision: https://reviews.llvm.org/D62417

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361816 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetFolder.h
include/llvm/IR/ConstantFolder.h
include/llvm/IR/IRBuilder.h
include/llvm/IR/InstrTypes.h
include/llvm/IR/NoFolder.h
unittests/IR/IRBuilderTest.cpp