LLVM: llvm::sandboxir::LegalityResult Class Reference (original) (raw)
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](Legality%5F8h%5Fsource.html)"
| 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 |
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 158 of file Legality.h.
| llvm::sandboxir::LegalityResult::LegalityResult ( LegalityResultID ID) | inlineprotected |
|---|
Only Legality can create LegalityResults.
Definition at line 162 of file Legality.h.
References ID.
Referenced by llvm::sandboxir::DiamondReuse::classof(), llvm::sandboxir::DiamondReuseMultiInput::classof(), llvm::sandboxir::DiamondReuseWithShuffle::classof(), llvm::sandboxir::Widen::classof(), llvm::sandboxir::DiamondReuse::LegalityAnalysis, llvm::sandboxir::DiamondReuseMultiInput::LegalityAnalysis, llvm::sandboxir::DiamondReuseWithShuffle::LegalityAnalysis, llvm::sandboxir::Widen::LegalityAnalysis, LegalityResult(), operator<<, and operator=().
◆ LegalityResult() [2/2]
◆ ~LegalityResult()
| virtual llvm::sandboxir::LegalityResult::~LegalityResult ( ) | virtualdefault |
|---|
◆ dump()
| void llvm::sandboxir::LegalityResult::dump | ( | ) | const |
|---|
◆ getSubclassID()
| LegalityResultID llvm::sandboxir::LegalityResult::getSubclassID ( ) const | inline |
|---|
◆ operator=()
◆ print()
| virtual void llvm::sandboxir::LegalityResult::print ( raw_ostream & OS) const | inlinevirtual |
|---|
◆ LegalityAnalysis
◆ operator<<
◆ ID
The documentation for this class was generated from the following files:
- include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
- lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp