LLVM 20.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
llvm::sandboxir::LegalityResult Class Reference

The legality outcome is represented by a class rather than an enum class because in some cases the legality checks are expensive and look for a particular instruction that can be passed along to the vectorizer to avoid repeating the same expensive computation. More...

#include "llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h"

Inheritance diagram for llvm::sandboxir::LegalityResult:
Inheritance graph
[legend]

Public Member Functions

virtual ~LegalityResult ()
 
LegalityResultID getSubclassID () const
 
virtual void print (raw_ostream &OS) const
 
LLVM_DUMP_METHOD void dump () const
 

Protected Member Functions

 LegalityResult (LegalityResultID ID)
 Only Legality can create LegalityResults.
 
 LegalityResult (const LegalityResult &)=delete
 We shouldn't need copies.
 
LegalityResultoperator= (const LegalityResult &)=delete
 

Protected Attributes

LegalityResultID ID
 

Friends

class LegalityAnalysis
 
raw_ostreamoperator<< (raw_ostream &OS, const LegalityResult &LR)
 

Detailed Description

The legality outcome is represented by a class rather than an enum class because in some cases the legality checks are expensive and look for a particular instruction that can be passed along to the vectorizer to avoid repeating the same expensive computation.

Definition at line 87 of file Legality.h.

Constructor & Destructor Documentation

◆ LegalityResult() [1/2]

llvm::sandboxir::LegalityResult::LegalityResult ( LegalityResultID  ID)
inlineprotected

Only Legality can create LegalityResults.

Definition at line 91 of file Legality.h.

◆ LegalityResult() [2/2]

llvm::sandboxir::LegalityResult::LegalityResult ( const LegalityResult )
protecteddelete

We shouldn't need copies.

◆ ~LegalityResult()

virtual llvm::sandboxir::LegalityResult::~LegalityResult ( )
inlinevirtual

Definition at line 99 of file Legality.h.

Member Function Documentation

◆ dump()

void llvm::sandboxir::LegalityResult::dump ( ) const

Definition at line 22 of file Legality.cpp.

References llvm::dbgs(), and print().

◆ getSubclassID()

LegalityResultID llvm::sandboxir::LegalityResult::getSubclassID ( ) const
inline

Definition at line 100 of file Legality.h.

References ID.

◆ operator=()

LegalityResult & llvm::sandboxir::LegalityResult::operator= ( const LegalityResult )
protecteddelete

◆ print()

virtual void llvm::sandboxir::LegalityResult::print ( raw_ostream OS) const
inlinevirtual

Friends And Related Function Documentation

◆ LegalityAnalysis

friend class LegalityAnalysis
friend

Definition at line 92 of file Legality.h.

◆ operator<<

raw_ostream & operator<< ( raw_ostream OS,
const LegalityResult LR 
)
friend

Definition at line 106 of file Legality.h.

Member Data Documentation

◆ ID

LegalityResultID llvm::sandboxir::LegalityResult::ID
protected

Definition at line 89 of file Legality.h.

Referenced by getSubclassID().


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