//===- SSAUpdaterBulk.h - Unstructured SSA Update Tool ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file declares the SSAUpdaterBulk class. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SSAUPDATERBULK_H #define LLVM_TRANSFORMS_UTILS_SSAUPDATERBULK_H #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/IR/PredIteratorCache.h" namespace llvm { class BasicBlock; class PHINode; template <typename T> class SmallVectorImpl; class Type; class Use; class Value; class DominatorTree; /// Helper class for SSA formation on a set of values defined in multiple /// blocks. /// /// This is used when code duplication or another unstructured transformation /// wants to rewrite a set of uses of one value with uses of a set of values. /// The update is done only when RewriteAllUses is called, all other methods are /// used for book-keeping. That helps to share some common computations between /// updates of different uses (which is not the case when traditional SSAUpdater /// is used). class SSAUpdaterBulk { … }; } // end namespace llvm #endif // LLVM_TRANSFORMS_UTILS_SSAUPDATERBULK_H