|
LLVM
5.0.0
|
This class provides the information for the target register banks. More...
#include "Target/ARM/ARMLegalizerInfo.h"
Public Member Functions | |
| ARMLegalizerInfo (const ARMSubtarget &ST) | |
| bool | legalizeCustom (MachineInstr &MI, MachineRegisterInfo &MRI, MachineIRBuilder &MIRBuilder) const override |
Public Member Functions inherited from llvm::LegalizerInfo | |
| LegalizerInfo () | |
| virtual | ~LegalizerInfo ()=default |
| void | computeTables () |
| Compute any ancillary tables needed to quickly decide how an operation should be handled. More... | |
| void | setAction (const InstrAspect &Aspect, LegalizeAction Action) |
| More friendly way to set an action for common types that have an LLT representation. More... | |
| void | setScalarInVectorAction (unsigned Opcode, LLT ScalarTy, LegalizeAction Action) |
| If an operation on a given vector type (say <M x="" in>="">) isn't explicitly specified, we proceed in 2 stages. More... | |
| std::pair< LegalizeAction, LLT > | getAction (const InstrAspect &Aspect) const |
| Determine what action should be taken to legalize the given generic instruction opcode, type-index and type. More... | |
| std::tuple< LegalizeAction, unsigned, LLT > | getAction (const MachineInstr &MI, const MachineRegisterInfo &MRI) const |
| Determine what action should be taken to legalize the given generic instruction. More... | |
| Optional< LLT > | findLegalizableSize (const InstrAspect &Aspect, function_ref< LLT(LLT)> NextType) const |
| Iterate the given function (typically something like doubling the width) on Ty until we find a legal type for this operation. More... | |
| Optional< LLT > | findLegalType (const InstrAspect &Aspect, LegalizeAction Action) const |
| Find what type it's actually OK to perform the given operation on, given the general approach we've decided to take. More... | |
| std::pair< LegalizeAction, LLT > | findLegalAction (const InstrAspect &Aspect, LegalizeAction Action) const |
| LegalizeAction | findInActions (const InstrAspect &Aspect) const |
Find the specified Aspect in the primary (explicitly set) Actions table. More... | |
| bool | isLegal (const MachineInstr &MI, const MachineRegisterInfo &MRI) const |
Additional Inherited Members | |
Public Types inherited from llvm::LegalizerInfo | |
| enum | LegalizeAction : std::uint8_t { Legal, NarrowScalar, WidenScalar, FewerElements, MoreElements, Lower, Libcall, Custom, Unsupported, NotFound } |
Static Public Member Functions inherited from llvm::LegalizerInfo | |
| static bool | needsLegalizingToDifferentSize (const LegalizeAction Action) |
This class provides the information for the target register banks.
Definition at line 27 of file ARMLegalizerInfo.h.
| ARMLegalizerInfo::ARMLegalizerInfo | ( | const ARMSubtarget & | ST | ) |
Definition at line 35 of file ARMLegalizerInfo.cpp.
References AEABI(), llvm::LegalizerInfo::computeTables(), llvm::LegalizerInfo::Custom, llvm::ARMSubtarget::hasDivideInARMMode(), llvm::ARMSubtarget::hasVFP2(), llvm::LegalizerInfo::Legal, llvm::LegalizerInfo::Libcall, llvm::LegalizerInfo::Lower, llvm::LLT::pointer(), llvm::LLT::scalar(), llvm::LegalizerInfo::setAction(), llvm::ARMSubtarget::useSoftFloat(), and llvm::LegalizerInfo::WidenScalar.
|
overridevirtual |
Reimplemented from llvm::LegalizerInfo.
Definition at line 243 of file ARMLegalizerInfo.cpp.
References assert(), llvm::CmpInst::BAD_ICMP_PREDICATE, llvm::MachineIRBuilder::buildConstant(), llvm::MachineIRBuilder::buildICmp(), llvm::MachineIRBuilder::buildOr(), llvm::MachineIRBuilder::buildTrunc(), llvm::MachineIRBuilder::buildUnmerge(), llvm::MachineRegisterInfo::createGenericVirtualRegister(), llvm::createLibcall(), llvm::MachineInstr::eraseFromParent(), llvm::CmpInst::FCMP_FALSE, llvm::CmpInst::FCMP_TRUE, llvm::StructType::get(), llvm::Function::getContext(), llvm::MachineFunction::getDataLayout(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::MachineFunction::getFunction(), llvm::Type::getInt32Ty(), llvm::getLLTForType(), llvm::MachineIRBuilder::getMF(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getPredicate(), llvm::MachineOperand::getReg(), llvm::LLT::getSizeInBits(), llvm::getSizeInBits(), llvm::MachineRegisterInfo::getType(), llvm::CmpInst::isIntPredicate(), llvm::LegalizerHelper::Legalized, llvm::LegalizerInfo::Libcall, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), Results, llvm::LLT::scalar(), llvm::RTLIB::SDIVREM_I32, llvm::MachineIRBuilder::setInstr(), llvm::Function::size(), llvm::RTLIB::UDIVREM_I32, and Zero.
1.8.6