LLVM  8.0.1
Functions
llvm::LegalizeMutations Namespace Reference

Functions

LegalizeMutation changeTo (unsigned TypeIdx, LLT Ty)
 Select this specific type for the given type index. More...
 
LegalizeMutation changeTo (unsigned TypeIdx, unsigned FromTypeIdx)
 Keep the same type as the given type index. More...
 
LegalizeMutation widenScalarToNextPow2 (unsigned TypeIdx, unsigned Min=0)
 Widen the type for the given type index to the next power of 2. More...
 
LegalizeMutation moreElementsToNextPow2 (unsigned TypeIdx, unsigned Min=0)
 Add more elements to the type for the given type index to the next power of. More...
 

Function Documentation

◆ changeTo() [1/2]

LegalizeMutation llvm::LegalizeMutations::changeTo ( unsigned  TypeIdx,
LLT  Ty 
)

Select this specific type for the given type index.

Definition at line 18 of file LegalizeMutations.cpp.

References Query().

Referenced by llvm::LegalizeRuleSet::lowerFor().

◆ changeTo() [2/2]

LegalizeMutation llvm::LegalizeMutations::changeTo ( unsigned  TypeIdx,
unsigned  FromTypeIdx 
)

Keep the same type as the given type index.

Definition at line 23 of file LegalizeMutations.cpp.

References Query().

Referenced by llvm::LegalizeRuleSet::maxScalar(), llvm::LegalizeRuleSet::maxScalarIf(), and llvm::LegalizeRuleSet::minScalar().

◆ moreElementsToNextPow2()

LegalizeMutation llvm::LegalizeMutations::moreElementsToNextPow2 ( unsigned  TypeIdx,
unsigned  Min = 0 
)

Add more elements to the type for the given type index to the next power of.

Definition at line 41 of file LegalizeMutations.cpp.

References llvm::LLT::getNumElements(), llvm::LLT::getScalarSizeInBits(), llvm::Log2_32_Ceil(), Query(), and llvm::LLT::vector().

Referenced by llvm::LegalizeRuleSet::moreElementsToNextPow2().

◆ widenScalarToNextPow2()

LegalizeMutation llvm::LegalizeMutations::widenScalarToNextPow2 ( unsigned  TypeIdx,
unsigned  Min = 0 
)

Widen the type for the given type index to the next power of 2.

Definition at line 30 of file LegalizeMutations.cpp.

References llvm::Log2_32_Ceil(), Query(), and llvm::LLT::scalar().

Referenced by llvm::LegalizeRuleSet::widenScalarToNextPow2().