[IRBuilder] Move CreateNot() to fold API
authorNikita Popov <npopov@redhat.com>
Fri, 1 Jul 2022 12:47:56 +0000 (14:47 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 1 Jul 2022 12:48:57 +0000 (14:48 +0200)
commit5c8021777c3a2bc2c4a97e8913929a6ca969db95
tree9200caba0f3a77fa3a2b39d997b176863f673ec5
parent0dddf04caba55a64f8534518d65311bdac05cf39
[IRBuilder] Move CreateNot() to fold API

Drop the IRBuilderFolder method entirely and base this on
CreateXor(V, -1) instead, so this will now go through FoldBinOp.

May not be NFC if the InstSimplifyBuilder is used.
llvm/include/llvm/Analysis/InstSimplifyFolder.h
llvm/include/llvm/Analysis/TargetFolder.h
llvm/include/llvm/IR/ConstantFolder.h
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/IRBuilderFolder.h
llvm/include/llvm/IR/NoFolder.h