Home
last modified time | relevance | path

Searched refs:AllowUndefs (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h1118 bool AllowUndefs;
1120 explicit Zero_match(bool AllowUndefs) : AllowUndefs(AllowUndefs) {}
1124 return isZeroOrZeroSplat(N, AllowUndefs);
1129 bool AllowUndefs;
1131 Ones_match(bool AllowUndefs) : AllowUndefs(AllowUndefs) {}
1134 return isOnesOrOnesSplat(N, AllowUndefs);
1139 bool AllowUndefs;
1141 AllOnes_match(bool AllowUndefs) : AllowUndefs(AllowUndefs) {}
1144 return isAllOnesOrAllOnesSplat(N, AllowUndefs);
1148 inline Ones_match m_One(bool AllowUndefs = false) {
[all …]
H A DSelectionDAGNodes.h1894 LLVM_ABI bool isBitwiseNot(SDValue V, bool AllowUndefs = false);
1900 bool AllowUndefs);
1904 bool AllowUndefs = false,
1911 bool AllowUndefs = false,
1916 bool AllowUndefs = false);
1922 bool AllowUndefs = false);
1927 LLVM_ABI bool isNullOrNullSplat(SDValue V, bool AllowUndefs = false);
1933 LLVM_ABI bool isOneOrOneSplat(SDValue V, bool AllowUndefs = false);
1938 LLVM_ABI bool isAllOnesOrAllOnesSplat(SDValue V, bool AllowUndefs = false);
1943 LLVM_ABI bool isOnesOrOnesSplat(SDValue N, bool AllowUndefs = false);
[all …]
H A DSelectionDAG.h2330 LLVM_ABI bool isSplatValue(SDValue V, bool AllowUndefs = false) const;
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h497 bool AllowUndefs = false);
503 bool AllowUndefs = false);
552 bool AllowUndefs = false);
H A DCombinerHelper.h1103 bool isOneOrOneSplat(Register Src, bool AllowUndefs) const;
1104 bool isZeroOrZeroSplat(Register Src, bool AllowUndefs) const;
1106 bool AllowUndefs) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1560 const MachineRegisterInfo &MRI, bool AllowUndefs) { in isNullOrNullSplat() argument
1563 return AllowUndefs; in isNullOrNullSplat()
1571 if (!AllowUndefs) // TODO: isBuildVectorAllZeros assumes undef is OK already in isNullOrNullSplat()
1579 bool AllowUndefs) { in isAllOnesOrAllOnesSplat() argument
1582 return AllowUndefs; in isAllOnesOrAllOnesSplat()
1586 if (!AllowUndefs) // TODO: isBuildVectorAllOnes assumes undef is OK already in isAllOnesOrAllOnesSplat()
1594 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) { in matchUnaryPredicate() argument
1597 if (AllowUndefs && Def->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) in matchUnaryPredicate()
1610 if (AllowUndefs && SrcDef->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) { in matchUnaryPredicate()
H A DCombinerHelper.cpp6873 bool CombinerHelper::isOneOrOneSplat(Register Src, bool AllowUndefs) const { in isOneOrOneSplat()
6876 return isConstantSplatVector(Src, 1, AllowUndefs); in isOneOrOneSplat()
6878 if (AllowUndefs && getOpcodeDef<GImplicitDef>(Src, MRI) != nullptr) in isOneOrOneSplat()
6886 bool CombinerHelper::isZeroOrZeroSplat(Register Src, bool AllowUndefs) const { in isZeroOrZeroSplat()
6889 return isConstantSplatVector(Src, 0, AllowUndefs); in isZeroOrZeroSplat()
6891 if (AllowUndefs && getOpcodeDef<GImplicitDef>(Src, MRI) != nullptr) in isZeroOrZeroSplat()
6902 bool AllowUndefs) const { in isConstantSplatVector()
6911 if (ImplicitDef && AllowUndefs) in isConstantSplatVector()
6913 if (ImplicitDef && !AllowUndefs) in isConstantSplatVector()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp354 bool AllowUndefs, bool AllowTruncation) { in matchUnaryPredicateImpl() argument
366 if (AllowUndefs && Op.getOperand(i).isUndef()) { in matchUnaryPredicateImpl()
388 bool AllowUndefs, bool AllowTypeMismatch) { in matchBinaryPredicate() argument
407 bool LHSUndef = AllowUndefs && LHSOp.isUndef(); in matchBinaryPredicate()
408 bool RHSUndef = AllowUndefs && RHSOp.isUndef(); in matchBinaryPredicate()
3177 bool SelectionDAG::isSplatValue(SDValue V, bool AllowUndefs) const { in isSplatValue()
3188 (AllowUndefs || !UndefElts); in isSplatValue()
6086 SDValue llvm::getBitwiseNotOperand(SDValue V, SDValue Mask, bool AllowUndefs) { in getBitwiseNotOperand() argument
6087 if (isBitwiseNot(V, AllowUndefs)) in getBitwiseNotOperand()
6098 isBitwiseNot(ExtArg, AllowUndefs) && in getBitwiseNotOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp5014 bool AllowUndefs = AllowWholeUndefs || AllowPartialUndefs; in getTargetConstantBitsFromNode() local
5015 if (UndefSrcElts.getBoolValue() && !AllowUndefs) in getTargetConstantBitsFromNode()
5233 bool AllowUndefs = EltSizeInBits >= SrcEltSizeInBits; in getTargetConstantBitsFromNode() local
5239 AllowWholeUndefs && AllowUndefs, in getTargetConstantBitsFromNode()
5240 AllowPartialUndefs && AllowUndefs) && in getTargetConstantBitsFromNode()
5243 AllowWholeUndefs && AllowUndefs, in getTargetConstantBitsFromNode()
5244 AllowPartialUndefs && AllowUndefs)) { in getTargetConstantBitsFromNode()
5369 bool AllowUndefs) { in isConstantPowerOf2() argument
5373 /*AllowWholeUndefs*/ AllowUndefs, in isConstantPowerOf2()