34 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file describes how to lower LLVM inline asm calls to machine10// code calls for GlobalISel.11//12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H15#define LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H16 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 bool27 lowerAsmOperandForConstraint(Value *Val, StringRef Constraint,28 std::vector<MachineOperand> &Ops,29 MachineIRBuilder &MIRBuilder) const override;30};31} // end namespace llvm32 33#endif // LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H34