| 1 | //===-- RISCVInlineAsmLowering.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 | /// \file |
| 10 | /// This file describes how to lower LLVM inline asm to machine code INLINEASM. |
| 11 | /// |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "llvm/CodeGen/GlobalISel/InlineAsmLowering.h" |
| 15 | |
| 16 | namespace llvm { |
| 17 | |
| 18 | class RISCVInlineAsmLowering : public InlineAsmLowering { |
| 19 | public: |
| 20 | RISCVInlineAsmLowering(const TargetLowering *TLI); |
| 21 | bool |
| 22 | lowerAsmOperandForConstraint(Value *Val, StringRef Constraint, |
| 23 | std::vector<MachineOperand> &Ops, |
| 24 | MachineIRBuilder &MIRBuilder) const override; |
| 25 | }; |
| 26 | |
| 27 | } // namespace llvm |
| 28 |