Home
last modified time | relevance | path

Searched refs:ConstMask (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp1024 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllZeroOrUndef() local
1025 if (!ConstMask) in maskIsAllZeroOrUndef()
1027 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()
1029 if (isa<ScalableVectorType>(ConstMask->getType())) in maskIsAllZeroOrUndef()
1033 E = cast<FixedVectorType>(ConstMask->getType())->getNumElements(); in maskIsAllZeroOrUndef()
1035 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef()
1050 auto *ConstMask = dyn_cast<Constant>(Mask); in maskIsAllOneOrUndef() local
1051 if (!ConstMask) in maskIsAllOneOrUndef()
1053 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()
1055 if (isa<ScalableVectorType>(ConstMask->getType())) in maskIsAllOneOrUndef()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVectorBuilderTest.cpp81 auto *ConstMask = dyn_cast<Constant>(Val); in isAllTrueMask() local
82 if (!ConstMask) in isAllTrueMask()
86 if (!ConstMask->isAllOnesValue()) in isAllTrueMask()
90 auto *MaskVecTy = cast<FixedVectorType>(ConstMask->getType()); in isAllTrueMask()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp345 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(3)); in simplifyMaskedStore() local
346 if (!ConstMask) in simplifyMaskedStore()
350 if (ConstMask->isNullValue()) in simplifyMaskedStore()
354 if (ConstMask->isAllOnesValue()) { in simplifyMaskedStore()
363 if (isa<ScalableVectorType>(ConstMask->getType())) in simplifyMaskedStore()
384 if (!ConstMask) in simplifyMaskedGather()
390 if (ConstMask->isAllOnesValue()) in simplifyMaskedGather()
412 if (!ConstMask) in simplifyMaskedScatter()
416 if (ConstMask->isNullValue()) in simplifyMaskedScatter()
431 if (ConstMask->isAllOnesValue()) { in simplifyMaskedScatter()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp9544 if (uint32_t ConstMask = getConstantPermuteMask(C)) { in getPermuteMask() local
9545 return (0x03020100 & ConstMask) | (0x0c0c0c0c & ~ConstMask); in getPermuteMask()
9550 if (uint32_t ConstMask = getConstantPermuteMask(C)) { in getPermuteMask() local
9551 return (0x03020100 & ~ConstMask) | ConstMask; in getPermuteMask()