LLVM 22.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::MIPatternMatch::SpecificConstantSplatMatch Struct Reference

Matcher for a specific constant splat. More...

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

Public Member Functions

 SpecificConstantSplatMatch (const APInt RequestedVal)
 
bool match (const MachineRegisterInfo &MRI, Register Reg)
 

Public Attributes

APInt RequestedVal
 

Detailed Description

Matcher for a specific constant splat.

Definition at line 222 of file MIPatternMatch.h.

Constructor & Destructor Documentation

◆ SpecificConstantSplatMatch()

llvm::MIPatternMatch::SpecificConstantSplatMatch::SpecificConstantSplatMatch ( const APInt  RequestedVal)
inline

Definition at line 224 of file MIPatternMatch.h.

Member Function Documentation

◆ match()

bool llvm::MIPatternMatch::SpecificConstantSplatMatch::match ( const MachineRegisterInfo MRI,
Register  Reg 
)
inline

Definition at line 226 of file MIPatternMatch.h.

References llvm::isBuildVectorConstantSplat(), MRI, Reg, and RequestedVal.

Member Data Documentation

◆ RequestedVal

APInt llvm::MIPatternMatch::SpecificConstantSplatMatch::RequestedVal

Definition at line 223 of file MIPatternMatch.h.

Referenced by match().


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