LLVM 20.0.0git
X86LegalizerInfo.h
Go to the documentation of this file.
1//===- X86LegalizerInfo.h ------------------------------------------*- C++
2//-*-==//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9/// \file
10/// This file declares the targeting of the Machinelegalizer class for X86.
11/// \todo This should be generated by TableGen.
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_X86_X86MACHINELEGALIZER_H
15#define LLVM_LIB_TARGET_X86_X86MACHINELEGALIZER_H
16
18
19namespace llvm {
20
21class X86Subtarget;
22class X86TargetMachine;
23
25private:
26 /// Keep a reference to the X86Subtarget around so that we can
27 /// make the right decision when generating code for different targets.
28 const X86Subtarget &Subtarget;
29
30public:
31 X86LegalizerInfo(const X86Subtarget &STI, const X86TargetMachine &TM);
32
34 LostDebugLocObserver &LocObserver) const override;
35
37 MachineInstr &MI) const override;
38
39private:
40 bool legalizeBuildVector(MachineInstr &MI, MachineRegisterInfo &MRI,
41 LegalizerHelper &Helper) const;
42
43 bool legalizeFPTOUI(MachineInstr &MI, MachineRegisterInfo &MRI,
44 LegalizerHelper &Helper) const;
45
46 bool legalizeUITOFP(MachineInstr &MI, MachineRegisterInfo &MRI,
47 LegalizerHelper &Helper) const;
48};
49} // namespace llvm
50#endif
unsigned const MachineRegisterInfo * MRI
IRTranslator LLVM IR MI
Interface for Targets to specify which operations they can successfully select and how the others sho...
Representation of each machine instruction.
Definition: MachineInstr.h:69
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
bool legalizeCustom(LegalizerHelper &Helper, MachineInstr &MI, LostDebugLocObserver &LocObserver) const override
Called for instructions with the Custom LegalizationAction.
bool legalizeIntrinsic(LegalizerHelper &Helper, MachineInstr &MI) const override
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18