[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)
commit14857814343a27ba48221cd2edbe38c52b1b1c85
tree76ce716e66af0d3b0ac1c876adf56dca96eb0a86
parent6bf4ca9d2e1c7a239832114d9f8521e8d9ff3b96
[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

llvm-svn: 361816
llvm/include/llvm/Analysis/TargetFolder.h
llvm/include/llvm/IR/ConstantFolder.h
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/InstrTypes.h
llvm/include/llvm/IR/NoFolder.h
llvm/unittests/IR/IRBuilderTest.cpp