|
LLVM
10.0.0
|
#include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
Public Member Functions | |
| LegalizeRuleSet () | |
| bool | isAliasedByAnother () |
| void | setIsAliasedByAnother () |
| void | aliasTo (unsigned Opcode) |
| unsigned | getAlias () const |
| LegalizeRuleSet & | legalIf (LegalityPredicate Predicate) |
| The instruction is legal if predicate is true. More... | |
| LegalizeRuleSet & | legalFor (std::initializer_list< LLT > Types) |
| The instruction is legal when type index 0 is any type in the given list. More... | |
| LegalizeRuleSet & | legalFor (std::initializer_list< std::pair< LLT, LLT >> Types) |
| The instruction is legal when type indexes 0 and 1 is any type pair in the given list. More... | |
| LegalizeRuleSet & | legalForTypeWithAnyImm (std::initializer_list< LLT > Types) |
| The instruction is legal when type index 0 is any type in the given list and imm index 0 is anything. More... | |
| LegalizeRuleSet & | legalForTypesWithMemDesc (std::initializer_list< LegalityPredicates::TypePairAndMemDesc > TypesAndMemDesc) |
| The instruction is legal when type indexes 0 and 1 along with the memory size and minimum alignment is any type and size tuple in the given list. More... | |
| LegalizeRuleSet & | legalForCartesianProduct (std::initializer_list< LLT > Types) |
| The instruction is legal when type indexes 0 and 1 are both in the given list. More... | |
| LegalizeRuleSet & | legalForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1) |
| The instruction is legal when type indexes 0 and 1 are both their respective lists. More... | |
| LegalizeRuleSet & | legalForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1, std::initializer_list< LLT > Types2) |
| The instruction is legal when type indexes 0, 1, and 2 are both their respective lists. More... | |
| LegalizeRuleSet & | alwaysLegal () |
| LegalizeRuleSet & | lower () |
| The instruction is lowered. More... | |
| LegalizeRuleSet & | lowerIf (LegalityPredicate Predicate) |
| The instruction is lowered if predicate is true. More... | |
| LegalizeRuleSet & | lowerIf (LegalityPredicate Predicate, LegalizeMutation Mutation) |
| The instruction is lowered if predicate is true. More... | |
| LegalizeRuleSet & | lowerFor (std::initializer_list< LLT > Types) |
| The instruction is lowered when type index 0 is any type in the given list. More... | |
| LegalizeRuleSet & | lowerFor (std::initializer_list< LLT > Types, LegalizeMutation Mutation) |
| The instruction is lowered when type index 0 is any type in the given list. More... | |
| LegalizeRuleSet & | lowerFor (std::initializer_list< std::pair< LLT, LLT >> Types) |
| The instruction is lowered when type indexes 0 and 1 is any type pair in the given list. More... | |
| LegalizeRuleSet & | lowerFor (std::initializer_list< std::pair< LLT, LLT >> Types, LegalizeMutation Mutation) |
| The instruction is lowered when type indexes 0 and 1 is any type pair in the given list. More... | |
| LegalizeRuleSet & | lowerForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1) |
| The instruction is lowered when type indexes 0 and 1 are both in their respective lists. More... | |
| LegalizeRuleSet & | lowerForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1, std::initializer_list< LLT > Types2) |
| The instruction is lowered when when type indexes 0, 1, and 2 are all in their respective lists. More... | |
| LegalizeRuleSet & | libcallIf (LegalityPredicate Predicate) |
| Like legalIf, but for the Libcall action. More... | |
| LegalizeRuleSet & | libcallFor (std::initializer_list< LLT > Types) |
| LegalizeRuleSet & | libcallFor (std::initializer_list< std::pair< LLT, LLT >> Types) |
| LegalizeRuleSet & | libcallForCartesianProduct (std::initializer_list< LLT > Types) |
| LegalizeRuleSet & | libcallForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1) |
| LegalizeRuleSet & | widenScalarIf (LegalityPredicate Predicate, LegalizeMutation Mutation) |
| Widen the scalar to the one selected by the mutation if the predicate is true. More... | |
| LegalizeRuleSet & | narrowScalarIf (LegalityPredicate Predicate, LegalizeMutation Mutation) |
| Narrow the scalar to the one selected by the mutation if the predicate is true. More... | |
| LegalizeRuleSet & | moreElementsIf (LegalityPredicate Predicate, LegalizeMutation Mutation) |
| Add more elements to reach the type selected by the mutation if the predicate is true. More... | |
| LegalizeRuleSet & | fewerElementsIf (LegalityPredicate Predicate, LegalizeMutation Mutation) |
| Remove elements to reach the type selected by the mutation if the predicate is true. More... | |
| LegalizeRuleSet & | unsupported () |
| The instruction is unsupported. More... | |
| LegalizeRuleSet & | unsupportedIf (LegalityPredicate Predicate) |
| LegalizeRuleSet & | unsupportedIfMemSizeNotPow2 () |
| LegalizeRuleSet & | lowerIfMemSizeNotPow2 () |
| LegalizeRuleSet & | customIf (LegalityPredicate Predicate) |
| LegalizeRuleSet & | customFor (std::initializer_list< LLT > Types) |
| LegalizeRuleSet & | customFor (std::initializer_list< std::pair< LLT, LLT >> Types) |
| The instruction is custom when type indexes 0 and 1 is any type pair in the given list. More... | |
| LegalizeRuleSet & | customForCartesianProduct (std::initializer_list< LLT > Types) |
| LegalizeRuleSet & | customForCartesianProduct (std::initializer_list< LLT > Types0, std::initializer_list< LLT > Types1) |
| LegalizeRuleSet & | custom () |
| Unconditionally custom lower. More... | |
| LegalizeRuleSet & | widenScalarToNextPow2 (unsigned TypeIdx, unsigned MinSize=0) |
| Widen the scalar to the next power of two that is at least MinSize. More... | |
| LegalizeRuleSet & | widenScalarOrEltToNextPow2 (unsigned TypeIdx, unsigned MinSize=0) |
| Widen the scalar or vector element type to the next power of two that is at least MinSize. More... | |
| LegalizeRuleSet & | narrowScalar (unsigned TypeIdx, LegalizeMutation Mutation) |
| LegalizeRuleSet & | scalarize (unsigned TypeIdx) |
| LegalizeRuleSet & | minScalarOrElt (unsigned TypeIdx, const LLT &Ty) |
| Ensure the scalar or element is at least as wide as Ty. More... | |
| LegalizeRuleSet & | minScalarOrEltIf (LegalityPredicate Predicate, unsigned TypeIdx, const LLT &Ty) |
| Ensure the scalar or element is at least as wide as Ty. More... | |
| LegalizeRuleSet & | minScalar (unsigned TypeIdx, const LLT &Ty) |
| Ensure the scalar is at least as wide as Ty. More... | |
| LegalizeRuleSet & | maxScalarOrElt (unsigned TypeIdx, const LLT &Ty) |
| Ensure the scalar is at most as wide as Ty. More... | |
| LegalizeRuleSet & | maxScalar (unsigned TypeIdx, const LLT &Ty) |
| Ensure the scalar is at most as wide as Ty. More... | |
| LegalizeRuleSet & | maxScalarIf (LegalityPredicate Predicate, unsigned TypeIdx, const LLT &Ty) |
| Conditionally limit the maximum size of the scalar. More... | |
| LegalizeRuleSet & | clampScalar (unsigned TypeIdx, const LLT &MinTy, const LLT &MaxTy) |
| Limit the range of scalar sizes to MinTy and MaxTy. More... | |
| LegalizeRuleSet & | clampScalarOrElt (unsigned TypeIdx, const LLT &MinTy, const LLT &MaxTy) |
| Limit the range of scalar sizes to MinTy and MaxTy. More... | |
| LegalizeRuleSet & | minScalarSameAs (unsigned TypeIdx, unsigned LargeTypeIdx) |
| Widen the scalar to match the size of another. More... | |
| LegalizeRuleSet & | minScalarEltSameAsIf (LegalityPredicate Predicate, unsigned TypeIdx, unsigned LargeTypeIdx) |
| Conditionally widen the scalar or elt to match the size of another. More... | |
| LegalizeRuleSet & | moreElementsToNextPow2 (unsigned TypeIdx) |
| Add more elements to the vector to reach the next power of two. More... | |
| LegalizeRuleSet & | clampMinNumElements (unsigned TypeIdx, const LLT &EltTy, unsigned MinElements) |
| Limit the number of elements in EltTy vectors to at least MinElements. More... | |
| LegalizeRuleSet & | clampMaxNumElements (unsigned TypeIdx, const LLT &EltTy, unsigned MaxElements) |
| Limit the number of elements in EltTy vectors to at most MaxElements. More... | |
| LegalizeRuleSet & | clampNumElements (unsigned TypeIdx, const LLT &MinTy, const LLT &MaxTy) |
| Limit the number of elements for the given vectors to at least MinTy's number of elements and at most MaxTy's number of elements. More... | |
| LegalizeRuleSet & | fallback () |
| Fallback on the previous implementation. More... | |
| bool | verifyTypeIdxsCoverage (unsigned NumTypeIdxs) const |
| Check if there is no type index which is obviously not handled by the LegalizeRuleSet in any way at all. More... | |
| bool | verifyImmIdxsCoverage (unsigned NumImmIdxs) const |
| Check if there is no imm index which is obviously not handled by the LegalizeRuleSet in any way at all. More... | |
| LegalizeActionStep | apply (const LegalityQuery &Query) const |
| Apply the ruleset to the given LegalityQuery. More... | |
Definition at line 318 of file LegalizerInfo.h.
|
inline |
Definition at line 465 of file LegalizerInfo.h.
|
inline |
Definition at line 469 of file LegalizerInfo.h.
References assert(), and llvm::SmallVectorBase::empty().
Referenced by llvm::LegalizerInfo::aliasActionDefinitions().
|
inline |
Definition at line 528 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
| LegalizeActionStep LegalizeRuleSet::apply | ( | const LegalityQuery & | Query | ) | const |
Apply the ruleset to the given LegalityQuery.
Definition at line 182 of file LegalizerInfo.cpp.
References assert(), llvm::dbgs(), hasNoSimpleLoops(), LLVM_DEBUG, Mutation, mutationIsSane(), llvm::LegalityQuery::print(), llvm::LegalizeActions::Unsupported, and llvm::LegalizeActions::UseLegacyRules.
Referenced by llvm::LegalizerInfo::getAction().
|
inline |
Limit the number of elements in EltTy vectors to at most MaxElements.
Definition at line 876 of file LegalizerInfo.h.
References llvm::LegalizeActions::FewerElements, llvm::LLT::getElementType(), llvm::LLT::getNumElements(), llvm::LLT::isVector(), llvm::LLT::scalarOrVector(), and llvm::LegalityQuery::Types.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Limit the number of elements in EltTy vectors to at least MinElements.
Definition at line 858 of file LegalizerInfo.h.
References llvm::LLT::getElementType(), llvm::LLT::getNumElements(), llvm::LLT::isVector(), llvm::LegalizeActions::MoreElements, llvm::LegalityQuery::Types, and llvm::LLT::vector().
|
inline |
Limit the number of elements for the given vectors to at least MinTy's number of elements and at most MaxTy's number of elements.
No effect if the type is not a vector or does not have the same element type as the constraints. The element type of MinTy and MaxTy must match.
Definition at line 899 of file LegalizerInfo.h.
References assert(), llvm::LLT::getElementType(), and llvm::LLT::getNumElements().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Limit the range of scalar sizes to MinTy and MaxTy.
Definition at line 804 of file LegalizerInfo.h.
References assert(), and llvm::LLT::isScalar().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo(), and llvm::X86LegalizerInfo::legalizeIntrinsic().
|
inline |
Limit the range of scalar sizes to MinTy and MaxTy.
Definition at line 811 of file LegalizerInfo.h.
References maxScalarOrElt().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Unconditionally custom lower.
Definition at line 705 of file LegalizerInfo.h.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Definition at line 685 of file LegalizerInfo.h.
References llvm::LegalizeActions::Custom.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
The instruction is custom when type indexes 0 and 1 is any type pair in the given list.
Definition at line 691 of file LegalizerInfo.h.
References llvm::LegalizeActions::Custom.
|
inline |
Definition at line 695 of file LegalizerInfo.h.
References llvm::LegalizeActions::Custom.
|
inline |
Definition at line 699 of file LegalizerInfo.h.
References llvm::LegalizeActions::Custom.
|
inline |
Definition at line 679 of file LegalizerInfo.h.
References llvm::LegalizeActions::Custom.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Fallback on the previous implementation.
This should only be used while porting a rule.
Definition at line 911 of file LegalizerInfo.h.
References add(), llvm::cl::apply(), and llvm::LegalizeActions::UseLegacyRules.
|
inline |
Remove elements to reach the type selected by the mutation if the predicate is true.
Definition at line 654 of file LegalizerInfo.h.
References llvm::LegalizeActions::FewerElements.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Definition at line 475 of file LegalizerInfo.h.
|
inline |
Definition at line 467 of file LegalizerInfo.h.
|
inline |
The instruction is legal when type index 0 is any type in the given list.
Definition at line 485 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo(), and llvm::X86LegalizerInfo::legalizeIntrinsic().
|
inline |
The instruction is legal when type indexes 0 and 1 is any type pair in the given list.
Definition at line 490 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
|
inline |
The instruction is legal when type indexes 0 and 1 are both in the given list.
That is, the type pair is in the cartesian product of the list.
Definition at line 510 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo(), and llvm::X86LegalizerInfo::legalizeIntrinsic().
|
inline |
The instruction is legal when type indexes 0 and 1 are both their respective lists.
Definition at line 515 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
|
inline |
The instruction is legal when type indexes 0, 1, and 2 are both their respective lists.
Definition at line 521 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
|
inline |
The instruction is legal when type indexes 0 and 1 along with the memory size and minimum alignment is any type and size tuple in the given list.
Definition at line 501 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal, and llvm::LegalityPredicates::typePairAndMemDescInSet().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
The instruction is legal when type index 0 is any type in the given list and imm index 0 is anything.
Definition at line 495 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
|
inline |
The instruction is legal if predicate is true.
Definition at line 478 of file LegalizerInfo.h.
References llvm::LegalizeActions::Legal.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Definition at line 607 of file LegalizerInfo.h.
References llvm::LegalizeActions::Libcall.
|
inline |
Definition at line 611 of file LegalizerInfo.h.
References llvm::LegalizeActions::Libcall.
|
inline |
Definition at line 615 of file LegalizerInfo.h.
References llvm::LegalizeActions::Libcall.
|
inline |
Definition at line 619 of file LegalizerInfo.h.
References llvm::LegalizeActions::Libcall.
|
inline |
Like legalIf, but for the Libcall action.
Definition at line 601 of file LegalizerInfo.h.
References llvm::LegalizeActions::Libcall.
|
inline |
The instruction is lowered.
Definition at line 535 of file LegalizerInfo.h.
References llvm::Lower.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo(), and llvm::X86LegalizerInfo::legalizeIntrinsic().
|
inline |
The instruction is lowered when type index 0 is any type in the given list.
Keep type index 0 as the same type.
Definition at line 561 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeTo(), and llvm::Lower.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
The instruction is lowered when type index 0 is any type in the given list.
Definition at line 567 of file LegalizerInfo.h.
References llvm::Lower.
|
inline |
The instruction is lowered when type indexes 0 and 1 is any type pair in the given list.
Keep type index 0 as the same type.
Definition at line 573 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeTo(), and llvm::Lower.
|
inline |
The instruction is lowered when type indexes 0 and 1 is any type pair in the given list.
Definition at line 579 of file LegalizerInfo.h.
References llvm::Lower.
|
inline |
The instruction is lowered when type indexes 0 and 1 are both in their respective lists.
Definition at line 585 of file LegalizerInfo.h.
References llvm::Lower.
|
inline |
The instruction is lowered when when type indexes 0, 1, and 2 are all in their respective lists.
Definition at line 592 of file LegalizerInfo.h.
References llvm::Lower.
|
inline |
The instruction is lowered if predicate is true.
Keep type index 0 as the same type.
Definition at line 544 of file LegalizerInfo.h.
References llvm::Lower.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
The instruction is lowered if predicate is true.
Definition at line 552 of file LegalizerInfo.h.
References llvm::Lower.
|
inline |
Definition at line 674 of file LegalizerInfo.h.
References llvm::Lower, and llvm::LegalityPredicates::memSizeInBytesNotPow2().
|
inline |
Ensure the scalar is at most as wide as Ty.
Definition at line 780 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeTo(), llvm::LLT::getSizeInBits(), llvm::LegalizeActions::NarrowScalar, and llvm::LegalityPredicates::widerThan().
|
inline |
Conditionally limit the maximum size of the scalar.
For example, when the maximum size of one type depends on the size of another such as extracting N bits from an M bit container.
Definition at line 791 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeElementTo(), llvm::LLT::getSizeInBits(), llvm::LegalizeActions::NarrowScalar, and llvm::LegalityPredicates::widerThan().
|
inline |
Ensure the scalar is at most as wide as Ty.
Definition at line 771 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeElementTo(), llvm::LLT::getScalarSizeInBits(), llvm::LegalizeActions::NarrowScalar, and llvm::LegalityPredicates::scalarOrEltWiderThan().
Referenced by clampScalarOrElt().
|
inline |
Ensure the scalar is at least as wide as Ty.
Definition at line 762 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeTo(), llvm::LLT::getSizeInBits(), llvm::LegalityPredicates::narrowerThan(), and llvm::LegalizeActions::WidenScalar.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Conditionally widen the scalar or elt to match the size of another.
Definition at line 832 of file LegalizerInfo.h.
References llvm::LegalityQuery::Types.
|
inline |
Ensure the scalar or element is at least as wide as Ty.
Definition at line 742 of file LegalizerInfo.h.
References llvm::LegalizeMutations::changeElementTo(), llvm::LLT::getScalarSizeInBits(), llvm::LegalityPredicates::scalarOrEltNarrowerThan(), and llvm::LegalizeActions::WidenScalar.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Ensure the scalar or element is at least as wide as Ty.
Definition at line 751 of file LegalizerInfo.h.
References llvm::LegalityPredicates::all(), llvm::LegalizeMutations::changeElementTo(), llvm::LLT::getScalarSizeInBits(), llvm::LegalityPredicates::scalarOrEltNarrowerThan(), and llvm::LegalizeActions::WidenScalar.
|
inline |
Widen the scalar to match the size of another.
Definition at line 817 of file LegalizerInfo.h.
References llvm::LLT::getElementType(), llvm::LLT::isVector(), llvm::T, and llvm::LegalityQuery::Types.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Add more elements to reach the type selected by the mutation if the predicate is true.
Definition at line 645 of file LegalizerInfo.h.
References llvm::LegalizeActions::MoreElements.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Add more elements to the vector to reach the next power of two.
No effect if the type is not a vector or the element count is a power of two.
Definition at line 850 of file LegalizerInfo.h.
References llvm::LegalizeActions::MoreElements, llvm::LegalizeMutations::moreElementsToNextPow2(), and llvm::LegalityPredicates::numElementsNotPow2().
|
inline |
Definition at line 729 of file LegalizerInfo.h.
References llvm::LegalityPredicates::isScalar(), and llvm::LegalizeActions::NarrowScalar.
|
inline |
Narrow the scalar to the one selected by the mutation if the predicate is true.
Definition at line 635 of file LegalizerInfo.h.
References llvm::LegalizeActions::NarrowScalar.
|
inline |
Definition at line 735 of file LegalizerInfo.h.
References llvm::LegalizeActions::FewerElements, llvm::LegalityPredicates::isVector(), and llvm::LegalizeMutations::scalarize().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Definition at line 468 of file LegalizerInfo.h.
|
inline |
The instruction is unsupported.
Definition at line 663 of file LegalizerInfo.h.
References llvm::LegalizeActions::Unsupported.
|
inline |
Definition at line 667 of file LegalizerInfo.h.
References llvm::LegalizeActions::Unsupported.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Definition at line 670 of file LegalizerInfo.h.
References llvm::LegalityPredicates::memSizeInBytesNotPow2(), and llvm::LegalizeActions::Unsupported.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
Check if there is no imm index which is obviously not handled by the LegalizeRuleSet in any way at all.
NumTypeIdxs) set. Definition at line 229 of file LegalizerInfo.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
Check if there is no type index which is obviously not handled by the LegalizeRuleSet in any way at all.
NumTypeIdxs) set. Definition at line 206 of file LegalizerInfo.cpp.
References llvm::dbgs(), and LLVM_DEBUG.
|
inline |
Widen the scalar to the one selected by the mutation if the predicate is true.
Definition at line 626 of file LegalizerInfo.h.
References llvm::LegalizeActions::WidenScalar.
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo().
|
inline |
Widen the scalar or vector element type to the next power of two that is at least MinSize.
No effect if the scalar size is a power of two.
Definition at line 721 of file LegalizerInfo.h.
References llvm::LegalityPredicates::scalarOrEltSizeNotPow2(), llvm::LegalizeActions::WidenScalar, and llvm::LegalizeMutations::widenScalarOrEltToNextPow2().
|
inline |
Widen the scalar to the next power of two that is at least MinSize.
No effect if the type is not a scalar or is a power of two.
Definition at line 711 of file LegalizerInfo.h.
References llvm::LegalityPredicates::sizeNotPow2(), llvm::LegalizeActions::WidenScalar, and llvm::LegalizeMutations::widenScalarOrEltToNextPow2().
Referenced by llvm::AMDGPULegalizerInfo::AMDGPULegalizerInfo(), and llvm::X86LegalizerInfo::legalizeIntrinsic().
1.8.13