LLVM 20.0.0git
SPIRVInlineAsmLowering.h
Go to the documentation of this file.
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
18
19namespace llvm {
20
21class SPIRVTargetLowering;
22
24public:
26 bool
28 std::vector<MachineOperand> &Ops,
29 MachineIRBuilder &MIRBuilder) const override;
30};
31} // end namespace llvm
32
33#endif // LLVM_LIB_TARGET_SPIRV_SPIRVINLINEASMLOWERING_H
This file describes how to lower LLVM inline asm to machine code INLINEASM.
Helper class to build MachineInstr.
bool lowerAsmOperandForConstraint(Value *Val, StringRef Constraint, std::vector< MachineOperand > &Ops, MachineIRBuilder &MIRBuilder) const override
Lower the specified operand into the Ops vector.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
LLVM Value Representation.
Definition: Value.h:74
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18