//===- SwiftErrorValueTracking.h - Track swifterror VReg vals --*- 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 implements a limited mem2reg-like analysis to promote uses of function // arguments and allocas marked with swiftalloc from memory into virtual // registers tracked by this class. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SWIFTERRORVALUETRACKING_H #define LLVM_CODEGEN_SWIFTERRORVALUETRACKING_H #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/Register.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/DebugLoc.h" #include <utility> namespace llvm { class Function; class MachineBasicBlock; class MachineFunction; class MachineInstr; class TargetInstrInfo; class TargetLowering; class SwiftErrorValueTracking { … }; } #endif