Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
X86InstructionSelector.cpp File Reference

This file implements the targeting of the InstructionSelector class for X86. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "X86-isel"
#define GET_GLOBALISEL_PREDICATE_BITSET
#define GET_GLOBALISEL_PREDICATES_DECL
#define GET_GLOBALISEL_TEMPORARIES_DECL
#define GET_GLOBALISEL_IMPL
#define GET_GLOBALISEL_PREDICATES_INIT
#define GET_GLOBALISEL_TEMPORARIES_INIT

Functions

static const TargetRegisterClassgetRegClassFromGRPhysReg (Register Reg)
static bool X86SelectAddress (MachineInstr &I, const X86TargetMachine &TM, const MachineRegisterInfo &MRI, const X86Subtarget &STI, X86AddressMode &AM)
static unsigned getLeaOP (LLT Ty, const X86Subtarget &STI)
static bool canTurnIntoCOPY (const TargetRegisterClass *DstRC, const TargetRegisterClass *SrcRC)

Detailed Description

This file implements the targeting of the InstructionSelector class for X86.

Todo
This should be generated by TableGen.

Definition in file X86InstructionSelector.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "X86-isel"

Definition at line 50 of file X86InstructionSelector.cpp.

◆ GET_GLOBALISEL_IMPL

#define GET_GLOBALISEL_IMPL

Definition at line 155 of file X86InstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATE_BITSET

#define GET_GLOBALISEL_PREDICATE_BITSET

Definition at line 56 of file X86InstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATES_DECL

#define GET_GLOBALISEL_PREDICATES_DECL

Definition at line 144 of file X86InstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATES_INIT

#define GET_GLOBALISEL_PREDICATES_INIT

◆ GET_GLOBALISEL_TEMPORARIES_DECL

#define GET_GLOBALISEL_TEMPORARIES_DECL

Definition at line 148 of file X86InstructionSelector.cpp.

◆ GET_GLOBALISEL_TEMPORARIES_INIT

#define GET_GLOBALISEL_TEMPORARIES_INIT

Function Documentation

◆ canTurnIntoCOPY()

bool canTurnIntoCOPY ( const TargetRegisterClass * DstRC,
const TargetRegisterClass * SrcRC )
static

Definition at line 795 of file X86InstructionSelector.cpp.

◆ getLeaOP()

◆ getRegClassFromGRPhysReg()

const TargetRegisterClass * getRegClassFromGRPhysReg ( Register Reg)
static

Definition at line 234 of file X86InstructionSelector.cpp.

References assert(), contains(), llvm_unreachable, and Reg.

◆ X86SelectAddress()