|
LLVM
7.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/GlobalISel/InstructionSelectorImpl.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/Support/Debug.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 |
Variables | |
| const 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 23 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_IMPL |
Definition at line 102 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATE_BITSET |
Definition at line 29 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATES_DECL |
Definition at line 79 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_PREDICATES_INIT |
| #define GET_GLOBALISEL_TEMPORARIES_DECL |
Definition at line 85 of file ARMInstructionSelector.cpp.
| #define GET_GLOBALISEL_TEMPORARIES_INIT |
|
static |
Definition at line 286 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.
|
static |
Definition at line 146 of file ARMInstructionSelector.cpp.
References llvm::RegisterBankInfo::constrainGenericRegister(), llvm::dbgs(), llvm::MCInstrInfo::getName(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and LLVM_DEBUG.
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 250 of file ARMInstructionSelector.cpp.
References isStore().
|
static |
Definition at line 166 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.
Referenced by canTurnIntoCOPY(), and getRegClassFromGRPhysReg().
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 232 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 197 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.
Referenced by canTurnIntoCOPY(), and getRegClassFromGRPhysReg().
Definition at line 100 of file ARMInstructionSelector.cpp.
1.8.13