LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::LegalityPredicates::TypePairAndMemDesc Struct Reference

#include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"

Collaboration diagram for llvm::LegalityPredicates::TypePairAndMemDesc:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const TypePairAndMemDesc &Other) const
 
bool isCompatible (const TypePairAndMemDesc &Other) const
 

Public Attributes

LLT Type0
 
LLT Type1
 
LLT MemTy
 
uint64_t Align
 

Detailed Description

Definition at line 202 of file LegalizerInfo.h.

Member Function Documentation

◆ isCompatible()

bool llvm::LegalityPredicates::TypePairAndMemDesc::isCompatible ( const TypePairAndMemDesc Other) const
inline
Returns
true if this memory access is legal with for the access described by Other (The alignment is sufficient for the size and result type).

Definition at line 215 of file LegalizerInfo.h.

References llvm::LLT::getSizeInBits(), MemTy, Other, Type0, and Type1.

◆ operator==()

bool llvm::LegalityPredicates::TypePairAndMemDesc::operator== ( const TypePairAndMemDesc Other) const
inline

Definition at line 208 of file LegalizerInfo.h.

References MemTy, Other, Type0, and Type1.

Member Data Documentation

◆ Align

uint64_t llvm::LegalityPredicates::TypePairAndMemDesc::Align

Definition at line 206 of file LegalizerInfo.h.

◆ MemTy

LLT llvm::LegalityPredicates::TypePairAndMemDesc::MemTy

Definition at line 205 of file LegalizerInfo.h.

Referenced by isCompatible(), and operator==().

◆ Type0

LLT llvm::LegalityPredicates::TypePairAndMemDesc::Type0

Definition at line 203 of file LegalizerInfo.h.

Referenced by isCompatible(), and operator==().

◆ Type1

LLT llvm::LegalityPredicates::TypePairAndMemDesc::Type1

Definition at line 204 of file LegalizerInfo.h.

Referenced by isCompatible(), and operator==().


The documentation for this struct was generated from the following file: