1*81ad6265SDimitry Andric //=- SPIRVMCInstLower.h -- Convert SPIR-V MachineInstr to MCInst --*- C++ -*-=// 2*81ad6265SDimitry Andric // 3*81ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*81ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*81ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*81ad6265SDimitry Andric // 7*81ad6265SDimitry Andric //===----------------------------------------------------------------------===// 8*81ad6265SDimitry Andric 9*81ad6265SDimitry Andric #ifndef LLVM_LIB_TARGET_SPIRV_SPIRVMCINSTLOWER_H 10*81ad6265SDimitry Andric #define LLVM_LIB_TARGET_SPIRV_SPIRVMCINSTLOWER_H 11*81ad6265SDimitry Andric 12*81ad6265SDimitry Andric #include "llvm/Support/Compiler.h" 13*81ad6265SDimitry Andric 14*81ad6265SDimitry Andric namespace llvm { 15*81ad6265SDimitry Andric class MCInst; 16*81ad6265SDimitry Andric class MachineInstr; 17*81ad6265SDimitry Andric namespace SPIRV { 18*81ad6265SDimitry Andric struct ModuleAnalysisInfo; 19*81ad6265SDimitry Andric } // namespace SPIRV 20*81ad6265SDimitry Andric 21*81ad6265SDimitry Andric // This class is used to lower a MachineInstr into an MCInst. 22*81ad6265SDimitry Andric class LLVM_LIBRARY_VISIBILITY SPIRVMCInstLower { 23*81ad6265SDimitry Andric public: 24*81ad6265SDimitry Andric void lower(const MachineInstr *MI, MCInst &OutMI, 25*81ad6265SDimitry Andric SPIRV::ModuleAnalysisInfo *MAI) const; 26*81ad6265SDimitry Andric }; 27*81ad6265SDimitry Andric } // namespace llvm 28*81ad6265SDimitry Andric 29*81ad6265SDimitry Andric #endif // LLVM_LIB_TARGET_SPIRV_SPIRVMCINSTLOWER_H 30