LLVM 20.0.0git
Classes | Functions
MipsLegalizerInfo.cpp File Reference

This file implements the targeting of the Machinelegalizer class for Mips. More...

#include "MipsLegalizerInfo.h"
#include "MipsTargetMachine.h"
#include "llvm/CodeGen/GlobalISel/GenericMachineInstrs.h"
#include "llvm/CodeGen/GlobalISel/LegalizerHelper.h"
#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
#include "llvm/IR/IntrinsicsMips.h"

Go to the source code of this file.

Classes

struct  TypesAndMemOps
 

Functions

static bool isUnalignedMemmoryAccess (uint64_t MemSize, uint64_t AlignInBits)
 
static bool CheckTy0Ty1MemSizeAlign (const LegalityQuery &Query, std::initializer_list< TypesAndMemOps > SupportedValues)
 
static bool CheckTyN (unsigned N, const LegalityQuery &Query, std::initializer_list< LLT > SupportedValues)
 
static bool SelectMSA3OpIntrinsic (MachineInstr &MI, unsigned Opcode, MachineIRBuilder &MIRBuilder, const MipsSubtarget &ST)
 
static bool MSA3OpIntrinsicToGeneric (MachineInstr &MI, unsigned Opcode, MachineIRBuilder &MIRBuilder, const MipsSubtarget &ST)
 
static bool MSA2OpIntrinsicToGeneric (MachineInstr &MI, unsigned Opcode, MachineIRBuilder &MIRBuilder, const MipsSubtarget &ST)
 

Detailed Description

This file implements the targeting of the Machinelegalizer class for Mips.

Todo:
This should be generated by TableGen.

Definition in file MipsLegalizerInfo.cpp.

Function Documentation

◆ CheckTy0Ty1MemSizeAlign()

static bool CheckTy0Ty1MemSizeAlign ( const LegalityQuery Query,
std::initializer_list< TypesAndMemOps SupportedValues 
)
static

◆ CheckTyN()

static bool CheckTyN ( unsigned  N,
const LegalityQuery Query,
std::initializer_list< LLT SupportedValues 
)
static

◆ isUnalignedMemmoryAccess()

static bool isUnalignedMemmoryAccess ( uint64_t  MemSize,
uint64_t  AlignInBits 
)
static

◆ MSA2OpIntrinsicToGeneric()

static bool MSA2OpIntrinsicToGeneric ( MachineInstr MI,
unsigned  Opcode,
MachineIRBuilder MIRBuilder,
const MipsSubtarget ST 
)
static

◆ MSA3OpIntrinsicToGeneric()

static bool MSA3OpIntrinsicToGeneric ( MachineInstr MI,
unsigned  Opcode,
MachineIRBuilder MIRBuilder,
const MipsSubtarget ST 
)
static

◆ SelectMSA3OpIntrinsic()

static bool SelectMSA3OpIntrinsic ( MachineInstr MI,
unsigned  Opcode,
MachineIRBuilder MIRBuilder,
const MipsSubtarget ST 
)
static