LLVM  8.0.0svn
X86LegalizerInfo.h
Go to the documentation of this file.
1 //===- X86LegalizerInfo.h ------------------------------------------*- C++
2 //-*-==//
3 //
4 // The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10 /// \file
11 /// This file declares the targeting of the Machinelegalizer class for X86.
12 /// \todo This should be generated by TableGen.
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_X86_X86MACHINELEGALIZER_H
16 #define LLVM_LIB_TARGET_X86_X86MACHINELEGALIZER_H
17 
19 
20 namespace llvm {
21 
22 class X86Subtarget;
23 class X86TargetMachine;
24 
25 /// This class provides the information for the target register banks.
27 private:
28  /// Keep a reference to the X86Subtarget around so that we can
29  /// make the right decision when generating code for different targets.
30  const X86Subtarget &Subtarget;
31  const X86TargetMachine &TM;
32 
33 public:
34  X86LegalizerInfo(const X86Subtarget &STI, const X86TargetMachine &TM);
35 
36 private:
37  void setLegalizerInfo32bit();
38  void setLegalizerInfo64bit();
39  void setLegalizerInfoSSE1();
40  void setLegalizerInfoSSE2();
41  void setLegalizerInfoSSE41();
42  void setLegalizerInfoAVX();
43  void setLegalizerInfoAVX2();
44  void setLegalizerInfoAVX512();
45  void setLegalizerInfoAVX512DQ();
46  void setLegalizerInfoAVX512BW();
47 };
48 } // namespace llvm
49 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
X86LegalizerInfo(const X86Subtarget &STI, const X86TargetMachine &TM)
This class provides the information for the target register banks.