1//===--- SPIRVInlineAsmLowering.h - Inline Asm lowering ---------*- 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//===----------------------------------------------------------------------===//
8//
9// This file describes how to lower LLVM inline asm calls to machine
10// code calls for GlobalISel.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H
15#define LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H
16
17#include "llvm/CodeGen/GlobalISel/InlineAsmLowering.h"
18
19namespace llvm {
20
21class SPIRVTargetLowering;
22
23class SPIRVInlineAsmLowering : public InlineAsmLowering {
24public:
25 SPIRVInlineAsmLowering(const SPIRVTargetLowering &TLI);
26 bool
27 lowerAsmOperandForConstraint(Value *Val, StringRef Constraint,
28 std::vector<MachineOperand> &Ops,
29 MachineIRBuilder &MIRBuilder) const override;
30};
31} // end namespace llvm
32
33#endif // LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H
34