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