LLVM  13.0.0git
Public Member Functions | List of all members
llvm::AArch64LegalizerInfo Class Reference

This class provides the information for the target register banks. More...

#include "Target/AArch64/GISel/AArch64LegalizerInfo.h"

Inheritance diagram for llvm::AArch64LegalizerInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::AArch64LegalizerInfo:
Collaboration graph
[legend]

Public Member Functions

 AArch64LegalizerInfo (const AArch64Subtarget &ST)
 
bool legalizeCustom (LegalizerHelper &Helper, MachineInstr &MI) const override
 Called for instructions with the Custom LegalizationAction. More...
 
bool legalizeIntrinsic (LegalizerHelper &Helper, MachineInstr &MI) const override
 
- Public Member Functions inherited from llvm::LegalizerInfo
virtual ~LegalizerInfo ()=default
 
const LegacyLegalizerInfogetLegacyLegalizerInfo () const
 
LegacyLegalizerInfogetLegacyLegalizerInfo ()
 
unsigned getOpcodeIdxForOpcode (unsigned Opcode) const
 
unsigned getActionDefinitionsIdx (unsigned Opcode) const
 
void verify (const MCInstrInfo &MII) const
 Perform simple self-diagnostic and assert if there is anything obviously wrong with the actions set up. More...
 
const LegalizeRuleSetgetActionDefinitions (unsigned Opcode) const
 Get the action definitions for the given opcode. More...
 
LegalizeRuleSetgetActionDefinitionsBuilder (unsigned Opcode)
 Get the action definition builder for the given opcode. More...
 
LegalizeRuleSetgetActionDefinitionsBuilder (std::initializer_list< unsigned > Opcodes)
 Get the action definition builder for the given set of opcodes. More...
 
void aliasActionDefinitions (unsigned OpcodeTo, unsigned OpcodeFrom)
 
LegalizeActionStep getAction (const LegalityQuery &Query) const
 Determine what action should be taken to legalize the described instruction. More...
 
LegalizeActionStep getAction (const MachineInstr &MI, const MachineRegisterInfo &MRI) const
 Determine what action should be taken to legalize the given generic instruction. More...
 
bool isLegal (const LegalityQuery &Query) const
 
bool isLegalOrCustom (const LegalityQuery &Query) const
 
bool isLegal (const MachineInstr &MI, const MachineRegisterInfo &MRI) const
 
bool isLegalOrCustom (const MachineInstr &MI, const MachineRegisterInfo &MRI) const
 
virtual unsigned getExtOpcodeForWideningConstant (LLT SmallTy) const
 Return the opcode (SEXT/ZEXT/ANYEXT) that should be performed while widening a constant of type SmallTy which targets can override. More...
 

Detailed Description

This class provides the information for the target register banks.

Definition at line 28 of file AArch64LegalizerInfo.h.

Constructor & Destructor Documentation

◆ AArch64LegalizerInfo()

AArch64LegalizerInfo::AArch64LegalizerInfo ( const AArch64Subtarget ST)

Definition at line 38 of file AArch64LegalizerInfo.cpp.

References llvm::LegalityPredicates::all(), always(), llvm::LegalityPredicates::atomicOrderingAtLeastOrStrongerThan(), llvm::LegalizeMutations::changeTo(), llvm::LegalizeRuleSet::clampMaxNumElements(), llvm::LegalizeRuleSet::clampNumElements(), llvm::LegalizeRuleSet::clampScalar(), llvm::LegacyLegalizerInfo::computeTables(), llvm::LegalizeRuleSet::custom(), llvm::LegalizeRuleSet::customFor(), llvm::LegalizeRuleSet::customForCartesianProduct(), llvm::LegalizeRuleSet::customIf(), llvm::LegalizeRuleSet::fewerElementsIf(), llvm::LegalizerInfo::getActionDefinitionsBuilder(), llvm::LLT::getAddressSpace(), llvm::LLT::getElementType(), llvm::LegalizerInfo::getLegacyLegalizerInfo(), llvm::LLT::getSizeInBits(), llvm::LLT::isPointer(), llvm::isPowerOf2_32(), llvm::LegalityPredicates::isScalar(), llvm::LLT::isVector(), llvm::LegalityPredicates::isVector(), llvm::LegalizeRuleSet::legalFor(), llvm::LegalizeRuleSet::legalForCartesianProduct(), llvm::LegalizeRuleSet::legalForTypesWithMemDesc(), llvm::LegalizeRuleSet::legalIf(), libcall, llvm::LegalizeRuleSet::libcallFor(), llvm::Log2_32_Ceil(), llvm::LegalizeRuleSet::lower(), llvm::LegalizeRuleSet::lowerIf(), llvm::LegalizeRuleSet::lowerIfMemSizeNotPow2(), llvm::LegalizeRuleSet::maxScalarEltSameAsIf(), llvm::LegalizeRuleSet::maxScalarIf(), llvm::LegalizeRuleSet::minScalarEltSameAsIf(), llvm::LegalizeRuleSet::minScalarOrEltIf(), llvm::LegalizeRuleSet::minScalarSameAs(), llvm::LegalityQuery::MMODescrs, llvm::LegalizeRuleSet::moreElementsToNextPow2(), llvm::LegalizeRuleSet::narrowScalarIf(), llvm::LegalityQuery::Opcode, llvm::LLT::pointer(), s1, llvm::LLT::scalar(), llvm::LegalizeMutations::scalarize(), llvm::LegalizeRuleSet::scalarize(), llvm::CodeModel::Small, TM, llvm::LegalityPredicates::typeInSet(), llvm::LegalityPredicates::typeIs(), llvm::LegalityQuery::Types, llvm::Unordered, llvm::LegalizeRuleSet::unsupportedIf(), llvm::LegalizeRuleSet::unsupportedIfMemSizeNotPow2(), llvm::LLT::vector(), llvm::LegalizerInfo::verify(), llvm::LegalizeRuleSet::widenScalarIf(), llvm::LegalizeMutations::widenScalarOrEltToNextPow2(), and llvm::LegalizeRuleSet::widenScalarToNextPow2().

Member Function Documentation

◆ legalizeCustom()

bool AArch64LegalizerInfo::legalizeCustom ( LegalizerHelper Helper,
MachineInstr MI 
) const
overridevirtual

Called for instructions with the Custom LegalizationAction.

Reimplemented from llvm::LegalizerInfo.

Definition at line 759 of file AArch64LegalizerInfo.cpp.

References llvm::MachineIRBuilder::getMRI(), llvm_unreachable, MI, llvm::LegalizerHelper::MIRBuilder, MRI, and llvm::LegalizerHelper::Observer.

◆ legalizeIntrinsic()

bool AArch64LegalizerInfo::legalizeIntrinsic ( LegalizerHelper Helper,
MachineInstr MI 
) const
overridevirtual
Returns
true if MI is either legal or has been legalized and false if not legal. Return true if MI is either legal or has been legalized and false if not legal.

Reimplemented from llvm::LegalizerInfo.

Definition at line 915 of file AArch64LegalizerInfo.cpp.


The documentation for this class was generated from the following files: