|
LLVM
5.0.0
|
This file implements the targeting of the InstructionSelector class for ARM. More...
#include "ARMRegisterBankInfo.h"#include "ARMSubtarget.h"#include "ARMTargetMachine.h"#include "llvm/CodeGen/GlobalISel/InstructionSelector.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/Support/Debug.h"#include "llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h"#include "ARMGenGlobalISel.inc"Go to the source code of this file.
Classes | |
| struct | ARMInstructionSelector::CmpConstants |
| struct | ARMInstructionSelector::InsertInfo |
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
Macros | |
| #define | DEBUG_TYPE "arm-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 | |
| InstructionSelector * | llvm::createARMInstructionSelector (const ARMBaseTargetMachine &TM, const ARMSubtarget &STI, const ARMRegisterBankInfo &RBI) |
| static bool | selectMergeValues (MachineInstrBuilder &MIB, const ARMBaseInstrInfo &TII, MachineRegisterInfo &MRI, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI) |
| static bool | selectUnmergeValues (MachineInstrBuilder &MIB, const ARMBaseInstrInfo &TII, MachineRegisterInfo &MRI, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI) |
| static unsigned | selectSimpleExtOpc (unsigned Opc, unsigned Size) |
| Select the opcode for simple extensions (that translate to a single SXT/UXT instruction). More... | |
| static unsigned | selectLoadStoreOpCode (unsigned Opc, unsigned RegBank, unsigned Size) |
| Select the opcode for simple loads and stores. More... | |
| static std::pair < ARMCC::CondCodes, ARMCC::CondCodes > | getComparePreds (CmpInst::Predicate Pred) |
Variables | |
| unsigned | zero_reg = 0 |
This file implements the targeting of the InstructionSelector class for ARM.
Definition in file ARMInstructionSelector.cpp.
| #define DEBUG_TYPE "arm-isel" |
Definition at line 21 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_IMPL |
Definition at line 103 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATE_BITSET |
Definition at line 33 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATES_DECL |
Definition at line 80 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATES_INIT |
| #define GET_GLOBALISEL_TEMPORARIES_DECL |
Definition at line 86 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_TEMPORARIES_INIT |
|
static |
Definition at line 279 of file ARMInstructionSelector.cpp.
References llvm::AArch64CC::AL, assert(), EQ, llvm::AArch64CC::GE, llvm::AArch64CC::GT, llvm::AArch64CC::HI, llvm::AArch64CC::HS, llvm::AArch64CC::LE, llvm::AArch64CC::LO, llvm::AArch64CC::LS, llvm::AArch64CC::LT, MI, llvm::AArch64CC::NE, llvm::AArch64CC::PL, llvm::AArch64CC::VC, and llvm::AArch64CC::VS.
Select the opcode for simple loads and stores.
For types smaller than 32 bits, the value will be zero extended. Returns the original opcode if it doesn't know how to select a better one.
Definition at line 243 of file ARMInstructionSelector.cpp.
|
static |
Definition at line 159 of file ARMInstructionSelector.cpp.
References llvm::MachineInstrBuilder::add(), llvm::AArch64CC::AL, assert(), llvm::RegisterBank::getID(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::RegisterBankInfo::getRegBank(), llvm::LLT::getSizeInBits(), llvm::ARMBaseInstrInfo::getSubtarget(), llvm::MachineRegisterInfo::getType(), llvm::ARMSubtarget::hasVFP2(), llvm::predOps(), llvm::MachineInstr::setDesc(), and llvm::ARMISD::VMOVDRR.
Select the opcode for simple extensions (that translate to a single SXT/UXT instruction).
Extension operations more complicated than that should not invoke this. Returns the original opcode if it doesn't know how to select a better one.
Definition at line 225 of file ARMInstructionSelector.cpp.
References llvm::AArch64_AM::SXTB, llvm::AArch64_AM::SXTH, llvm::AArch64_AM::UXTB, and llvm::AArch64_AM::UXTH.
|
static |
Definition at line 190 of file ARMInstructionSelector.cpp.
References llvm::MachineInstrBuilder::add(), llvm::AArch64CC::AL, assert(), llvm::RegisterBank::getID(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::RegisterBankInfo::getRegBank(), llvm::LLT::getSizeInBits(), llvm::ARMBaseInstrInfo::getSubtarget(), llvm::MachineRegisterInfo::getType(), llvm::ARMSubtarget::hasVFP2(), llvm::predOps(), llvm::MachineInstr::setDesc(), and llvm::ARMISD::VMOVRRD.
| unsigned zero_reg = 0 |
Definition at line 101 of file ARMInstructionSelector.cpp.
1.8.6