[IRBuilder] Migrate vector operations to fold infrastructure
authorNikita Popov <npopov@redhat.com>
Tue, 28 Jun 2022 13:09:01 +0000 (15:09 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 28 Jun 2022 13:11:15 +0000 (15:11 +0200)
commit278a47cc9280371044a5bba295a3859ddc8b4964
tree4f1a75d0db508337bbad21c249cc6199abbc8f60
parent744d06e4f299f6b40b86c485d93c2ad6ea698640
[IRBuilder] Migrate vector operations to fold infrastructure

Migrate extractelement, insertelement and shufflevector to use the
FoldXYZ rather than CreateXYZ APIs.

This is probably NFC in practice, because the places using
InstSimplifyFolder probably aren't using vector operations.
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