//===-- SILowerI1Copies.h --------------------------------------*- 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 // //===----------------------------------------------------------------------===// // /// \file /// Interface definition of the PhiLoweringHelper class that implements lane /// mask merging algorithm for divergent i1 phis. // //===----------------------------------------------------------------------===// #include "GCNSubtarget.h" #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachinePostDominators.h" #include "llvm/CodeGen/MachineSSAUpdater.h" namespace llvm { /// Incoming for lane maks phi as machine instruction, incoming register \p Reg /// and incoming block \p Block are taken from machine instruction. /// \p UpdatedReg (if valid) is \p Reg lane mask merged with another lane mask. struct Incoming { … }; Register createLaneMaskReg(MachineRegisterInfo *MRI, MachineRegisterInfo::VRegAttrs LaneMaskRegAttrs); class PhiLoweringHelper { … }; } // end namespace llvm