LLVM 20.0.0git
|
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"
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. | |
LegalityResult & | operator= (const LegalityResult &)=delete |
Protected Attributes | |
LegalityResultID | ID |
Friends | |
class | LegalityAnalysis |
raw_ostream & | operator<< (raw_ostream &OS, const LegalityResult &LR) |
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.
|
inlineprotected |
Only Legality can create LegalityResults.
Definition at line 91 of file Legality.h.
|
protecteddelete |
We shouldn't need copies.
|
inlinevirtual |
Definition at line 99 of file Legality.h.
void llvm::sandboxir::LegalityResult::dump | ( | ) | const |
Definition at line 22 of file Legality.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 100 of file Legality.h.
References ID.
|
protecteddelete |
|
inlinevirtual |
Reimplemented in llvm::sandboxir::LegalityResultWithReason.
Definition at line 102 of file Legality.h.
References llvm::sandboxir::ToStr::getLegalityResultID(), and OS.
Referenced by dump(), and llvm::sandboxir::LegalityResultWithReason::print().
|
friend |
Definition at line 92 of file Legality.h.
|
friend |
Definition at line 106 of file Legality.h.
|
protected |
Definition at line 89 of file Legality.h.
Referenced by getSubclassID().