LLVM  8.0.1
Macros | Typedefs | Functions | Variables
Legalizer.cpp File Reference
#include "llvm/CodeGen/GlobalISel/Legalizer.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/CodeGen/GlobalISel/CSEInfo.h"
#include "llvm/CodeGen/GlobalISel/CSEMIRBuilder.h"
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
#include "llvm/CodeGen/GlobalISel/GISelWorkList.h"
#include "llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h"
#include "llvm/CodeGen/GlobalISel/LegalizerHelper.h"
#include "llvm/CodeGen/GlobalISel/Utils.h"
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/Support/Debug.h"
#include <iterator>
Include dependency graph for Legalizer.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "legalizer"
 

Typedefs

using InstListTy = GISelWorkList< 256 >
 
using ArtifactListTy = GISelWorkList< 128 >
 

Functions

 INITIALIZE_PASS_BEGIN (Legalizer, DEBUG_TYPE, "Legalize the Machine IR a function's Machine IR", false, false) INITIALIZE_PASS_END(Legalizer
 
static bool isArtifact (const MachineInstr &MI)
 

Variables

static cl::opt< boolEnableCSEInLegalizer ("enable-cse-in-legalizer", cl::desc("Should enable CSE in Legalizer"), cl::Optional, cl::init(false))
 
 DEBUG_TYPE
 
Legalize the Machine IR a function s Machine IR
 
Legalize the Machine IR a function s Machine false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "legalizer"

Definition at line 34 of file Legalizer.cpp.

Typedef Documentation

◆ ArtifactListTy

Definition at line 84 of file Legalizer.cpp.

◆ InstListTy

using InstListTy = GISelWorkList<256>

Definition at line 83 of file Legalizer.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( Legalizer  ,
DEBUG_TYPE  ,
"Legalize the Machine IR a function's Machine IR ,
false  ,
false   
)

◆ isArtifact()

static bool isArtifact ( const MachineInstr MI)
static

Definition at line 68 of file Legalizer.cpp.

References llvm::MachineInstr::getOpcode().

Referenced by llvm::Legalizer::runOnMachineFunction().

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 49 of file Legalizer.cpp.

◆ EnableCSEInLegalizer

cl::opt<bool> EnableCSEInLegalizer("enable-cse-in-legalizer", cl::desc("Should enable CSE in Legalizer"), cl::Optional, cl::init(false))
static

◆ false

Legalize the Machine IR a function s Machine false

Definition at line 49 of file Legalizer.cpp.

◆ IR

Legalize the Machine IR a function s Machine IR

Definition at line 49 of file Legalizer.cpp.