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