Home
last modified time | relevance | path

Searched refs:AndMask (Results 1 – 16 of 16) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/InstPrinter/
DAMDGPUInstPrinter.cpp1055 static void printSwizzleBitmask(const uint16_t AndMask, in printSwizzleBitmask() argument
1061 uint16_t Probe0 = ((0 & AndMask) | OrMask) ^ XorMask; in printSwizzleBitmask()
1062 uint16_t Probe1 = ((BITMASK_MASK & AndMask) | OrMask) ^ XorMask; in printSwizzleBitmask()
1112 uint16_t AndMask = (Imm >> BITMASK_AND_SHIFT) & BITMASK_MASK; in printSwizzle() local
1116 if (AndMask == BITMASK_MAX && in printSwizzle()
1125 } else if (AndMask == BITMASK_MAX && in printSwizzle()
1136 uint16_t GroupSize = BITMASK_MAX - AndMask + 1; in printSwizzle()
1152 printSwizzleBitmask(AndMask, OrMask, XorMask, O); in printSwizzle()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp109 APInt AndMask; in foldSelectICmpAnd() local
121 AndMask = *AndRHS; in foldSelectICmpAnd()
123 Pred, V, AndMask)) { in foldSelectICmpAnd()
125 if (!AndMask.isPowerOf2()) in foldSelectICmpAnd()
143 if (TC.getBitWidth() != AndMask.getBitWidth() || (TC ^ FC) != AndMask) in foldSelectICmpAnd()
150 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask)); in foldSelectICmpAnd()
178 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd()
182 V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask)); in foldSelectICmpAnd()
/external/llvm/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp706 uint64_t AndMask = MaskNode->getZExtValue(); in detectOrAndInsertion() local
707 if (InsertMask & AndMask) in detectOrAndInsertion()
713 if (Used != (AndMask | InsertMask)) { in detectOrAndInsertion()
716 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) in detectOrAndInsertion()
DSystemZISelLowering.cpp5091 auto *AndMask = dyn_cast<ConstantSDNode>(N1.getOperand(1)); in combineSHIFTROT() local
5094 if (AndMask) { in combineSHIFTROT()
5095 auto AmtVal = AndMask->getZExtValue(); in combineSHIFTROT()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp723 uint64_t AndMask = MaskNode->getZExtValue(); in detectOrAndInsertion() local
724 if (InsertMask & AndMask) in detectOrAndInsertion()
730 if (Used != (AndMask | InsertMask)) { in detectOrAndInsertion()
733 if (Used != (AndMask | InsertMask | Known.Zero.getZExtValue())) in detectOrAndInsertion()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp1818 const APInt &AndMask = cast<ConstantInt>(I->getOperand(1))->getValue(); in collectBitParts() local
1822 unsigned NumMaskedBits = AndMask.countPopulation(); in collectBitParts()
1834 if ((AndMask & Bit) == 0) in collectBitParts()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp277 uint64_t AndMask; member
632 CustomMapParams.AndMask = ClAndMask; in doInitialization()
1093 uint64_t AndMask = MS.MapParams->AndMask; in getShadowPtrOffset() local
1094 if (AndMask) in getShadowPtrOffset()
1096 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask)); in getShadowPtrOffset()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp209 uint64_t AndMask; member
943 uint64_t AndMask = MS.MapParams->AndMask; in getShadowPtrOffset() local
944 if (AndMask) in getShadowPtrOffset()
946 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask)); in getShadowPtrOffset()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp451 uint64_t AndMask = CSD->getZExtValue(); in getExtendTypeForNode() local
453 switch (AndMask) { in getExtendTypeForNode()
1631 uint64_t AndMask = 0; in isSeveralBitsExtractOpFromShr() local
1632 if (!isOpcWithIntImmediate(N->getOperand(0).getNode(), ISD::AND, AndMask)) in isSeveralBitsExtractOpFromShr()
1642 unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm)); in isSeveralBitsExtractOpFromShr()
1643 if (BitWide && isMask_64(AndMask >> SrlImm)) { in isSeveralBitsExtractOpFromShr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp4243 encodeBitmaskPerm(const unsigned AndMask, in encodeBitmaskPerm() argument
4249 (AndMask << BITMASK_AND_SHIFT) | in encodeBitmaskPerm()
4376 unsigned AndMask = 0; in parseSwizzleBitmaskPerm() local
4392 AndMask |= Mask; in parseSwizzleBitmaskPerm()
4395 AndMask |= Mask; in parseSwizzleBitmaskPerm()
4401 Imm = encodeBitmaskPerm(AndMask, OrMask, XorMask); in parseSwizzleBitmaskPerm()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp401 uint64_t AndMask = CSD->getZExtValue(); in getExtendTypeForNode() local
403 switch (AndMask) { in getExtendTypeForNode()
1562 uint64_t AndMask = 0; in isSeveralBitsExtractOpFromShr() local
1563 if (!isOpcWithIntImmediate(N->getOperand(0).getNode(), ISD::AND, AndMask)) in isSeveralBitsExtractOpFromShr()
1573 unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm)); in isSeveralBitsExtractOpFromShr()
1574 if (BitWide && isMask_64(AndMask >> SrlImm)) { in isSeveralBitsExtractOpFromShr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLocal.cpp2573 const APInt &AndMask = cast<ConstantInt>(I->getOperand(1))->getValue(); in collectBitParts() local
2577 unsigned NumMaskedBits = AndMask.countPopulation(); in collectBitParts()
2589 if ((AndMask & Bit) == 0) in collectBitParts()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1343 const APInt &AndMask = cast<ConstantInt>(I->getOperand(1))->getValue(); in CollectBSwapParts() local
1352 APInt MaskB = AndMask & Byte; in CollectBSwapParts()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp2968 const APInt &AndMask = CAnd->getAPIntValue(); in visitANDLike() local
2970 unsigned MaskBits = AndMask.countTrailingOnes(); in visitANDLike()
2973 if (APIntOps::isMask(AndMask) && in visitANDLike()
2995 SDValue NewMask = DAG.getConstant(AndMask.trunc(Size / 2), SL, HalfVT); in visitANDLike()
14309 const APInt &AndMask = ConstAndRHS->getAPIntValue(); in SimplifySelectCC() local
14311 DAG.getConstant(AndMask.countLeadingZeros(), SDLoc(AndLHS), in SimplifySelectCC()
14318 DAG.getConstant(AndMask.getBitWidth() - 1, SDLoc(Shl), in SimplifySelectCC()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp3994 const APInt &AndMask = CAnd->getAPIntValue(); in visitANDLike() local
4001 unsigned MaskBits = AndMask.countTrailingOnes(); in visitANDLike()
4004 if (AndMask.isMask() && in visitANDLike()
4026 SDValue NewMask = DAG.getConstant(AndMask.trunc(Size / 2), SL, HalfVT); in visitANDLike()
17912 const APInt &AndMask = ConstAndRHS->getAPIntValue(); in SimplifySelectCC() local
17914 DAG.getConstant(AndMask.countLeadingZeros(), SDLoc(AndLHS), in SimplifySelectCC()
17921 DAG.getConstant(AndMask.getBitWidth() - 1, SDLoc(Shl), in SimplifySelectCC()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp7575 APInt AndMask = ConstAndRHS->getAPIntValue(); in SimplifySelectCC() local
7577 DAG.getConstant(AndMask.countLeadingZeros(), in SimplifySelectCC()
7584 DAG.getConstant(AndMask.getBitWidth()-1, in SimplifySelectCC()