Searched refs:ConstMask (Results 1 – 7 of 7) sorted by relevance
1042 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllOneOrUndef() local1043 if (!ConstMask) in maskIsAllOneOrUndef()1045 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()1047 for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E; in maskIsAllOneOrUndef()1049 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllOneOrUndef()1071 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(3)); in simplifyMaskedStore() local1072 if (!ConstMask) in simplifyMaskedStore()1076 if (ConstMask->isNullValue()) in simplifyMaskedStore()1080 if (ConstMask->isAllOnesValue()) { in simplifyMaskedStore()1091 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(2)); in simplifyMaskedGather() local[all …]
54 CASE(ConstMask, "Const"),
1213 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllOneOrUndef() local1214 if (!ConstMask) in maskIsAllOneOrUndef()1216 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()1218 for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E; in maskIsAllOneOrUndef()1220 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllOneOrUndef()1242 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(3)); in simplifyMaskedStore() local1243 if (!ConstMask) in simplifyMaskedStore()1247 if (ConstMask->isNullValue()) in simplifyMaskedStore()1251 if (ConstMask->isAllOnesValue()) { in simplifyMaskedStore()1262 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(2)); in simplifyMaskedGather() local[all …]
3948 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllZeroOrUndef() local3949 if (!ConstMask) in maskIsAllZeroOrUndef()3951 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()3953 for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E; in maskIsAllZeroOrUndef()3955 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef()
4688 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllZeroOrUndef() local4689 if (!ConstMask) in maskIsAllZeroOrUndef()4691 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()4693 for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E; in maskIsAllZeroOrUndef()4695 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef()
6348 if (uint32_t ConstMask = getConstantPermuteMask(C)) { in getPermuteMask() local6349 return (0x03020100 & ConstMask) | (0x0c0c0c0c & ~ConstMask); in getPermuteMask()6354 if (uint32_t ConstMask = getConstantPermuteMask(C)) { in getPermuteMask() local6355 return (0x03020100 & ~ConstMask) | ConstMask; in getPermuteMask()