/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 93 for (unsigned i = 0, MaskSize = Mask.size(); i < MaskSize; ++i) in isReverseVectorMask() local 94 if (Mask[i] > 0 && Mask[i] != (int)(MaskSize - 1 - i)) in isReverseVectorMask() 101 unsigned MaskSize = Mask.size(); in isAlternateVectorMask() local 104 for (unsigned i = 0; i < MaskSize && isAlternate; ++i) { in isAlternateVectorMask() 107 isAlternate = Mask[i] == (int)((i & 1) ? MaskSize + i : i); in isAlternateVectorMask() 115 for (unsigned i = 0; i < MaskSize && isAlternate; ++i) { in isAlternateVectorMask() 118 isAlternate = Mask[i] == (int)((i & 1) ? i : MaskSize + i); in isAlternateVectorMask()
|
/external/llvm/lib/CodeGen/GlobalISel/ |
D | RegisterBankInfo.cpp | 454 unsigned OpIdx, unsigned MaskSize, const RegisterBank &RegBank) { in setOperandMapping() argument 456 assert(MaskSize <= RegBank.getSize() && "Register bank is too small"); in setOperandMapping() 460 PartialMapping(0, MaskSize, RegBank)); in setOperandMapping()
|
/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegisterBankInfo.h | 168 void setOperandMapping(unsigned OpIdx, unsigned MaskSize,
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 1032 int MaskSize = Shuf.getShuffleMask().size(); in isShuffleEquivalentToSelect() local 1037 if (MaskSize != VecSize) in isShuffleEquivalentToSelect() 1042 for (int i = 0; i != MaskSize; ++i) { in isShuffleEquivalentToSelect()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 726 int MaskSize = Shuf.getMask()->getType()->getVectorNumElements(); in isShuffleEquivalentToSelect() local 730 if (MaskSize != VecSize) in isShuffleEquivalentToSelect() 735 for (int i = 0; i != MaskSize; ++i) { in isShuffleEquivalentToSelect()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 3557 uint64_t MaskSize = countPopulation(Mask); in matchBEXTRFromAndImm() local 3561 if (Shift == 8 && MaskSize == 8) in matchBEXTRFromAndImm() 3566 if (Shift + MaskSize > NVT.getSizeInBits()) in matchBEXTRFromAndImm() 3572 if (!PreferBEXTR && MaskSize <= 32) in matchBEXTRFromAndImm() 3583 Control = CurDAG->getTargetConstant(Shift + MaskSize, dl, NVT); in matchBEXTRFromAndImm() 3593 Control = CurDAG->getTargetConstant(Shift | (MaskSize << 8), dl, NVT); in matchBEXTRFromAndImm()
|
D | X86ISelLowering.cpp | 7223 size_t MaskSize = std::max(SrcMask0.size(), SrcMask1.size()); in getFauxShuffleMask() local 7225 scaleShuffleMask<int>(MaskSize / SrcMask0.size(), SrcMask0, Mask0); in getFauxShuffleMask() 7226 scaleShuffleMask<int>(MaskSize / SrcMask1.size(), SrcMask1, Mask1); in getFauxShuffleMask() 7227 for (size_t i = 0; i != MaskSize; ++i) { in getFauxShuffleMask() 7235 Mask.push_back(Mask1[i] + (int)(MaskSize * SrcInputs0.size())); in getFauxShuffleMask()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 3656 uint64_t MaskSize = countPopulation(Mask); in matchBEXTRFromAndImm() local 3660 if (Shift == 8 && MaskSize == 8) in matchBEXTRFromAndImm() 3665 if (Shift + MaskSize > NVT.getSizeInBits()) in matchBEXTRFromAndImm() 3671 if (!PreferBEXTR && MaskSize <= 32) in matchBEXTRFromAndImm() 3682 Control = CurDAG->getTargetConstant(Shift + MaskSize, dl, NVT); in matchBEXTRFromAndImm() 3692 Control = CurDAG->getTargetConstant(Shift | (MaskSize << 8), dl, NVT); in matchBEXTRFromAndImm()
|
D | X86ISelLowering.cpp | 7481 size_t MaskSize = std::max(SrcMask0.size(), SrcMask1.size()); in getFauxShuffleMask() local 7483 narrowShuffleMaskElts(MaskSize / SrcMask0.size(), SrcMask0, Mask0); in getFauxShuffleMask() 7484 narrowShuffleMaskElts(MaskSize / SrcMask1.size(), SrcMask1, Mask1); in getFauxShuffleMask() 7485 for (int i = 0; i != (int)MaskSize; ++i) { in getFauxShuffleMask() 7493 Mask.push_back(i + MaskSize); in getFauxShuffleMask() 10848 static bool IsElementEquivalent(int MaskSize, SDValue Op, SDValue ExpectedOp, in IsElementEquivalent() argument 10850 assert(0 <= Idx && Idx < MaskSize && 0 <= ExpectedIdx && in IsElementEquivalent() 10851 ExpectedIdx < MaskSize && "Out of range element index"); in IsElementEquivalent() 10860 if (MaskSize == (int)Op.getNumOperands() && in IsElementEquivalent() 10861 MaskSize == (int)ExpectedOp.getNumOperands()) in IsElementEquivalent() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 25415 int MaskSize = Mask.size(); in combineX86ShufflesRecursively() local 25417 [MaskSize](int Idx) { return 0 <= Idx && Idx < MaskSize; }); in combineX86ShufflesRecursively() 25419 [MaskSize](int Idx) { return MaskSize <= Idx; }); in combineX86ShufflesRecursively() 28278 uint64_t MaskSize = countPopulation(Mask); in combineAnd() local 28279 if (Shift + MaskSize <= VT.getSizeInBits()) in combineAnd() 28281 DAG.getConstant(Shift | (MaskSize << 8), DL, in combineAnd()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 19045 int MaskSize = Mask.size(); in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() local 19051 for (int i = 0; i != MaskSize; ++i) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() 19052 if (Mask[i] >= 0 && Mask[i] < MaskSize) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() 19057 } else if (Mask[i] != i + MaskSize) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 20466 int MaskSize = Mask.size(); in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() local 20472 for (int i = 0; i != MaskSize; ++i) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() 20473 if (Mask[i] >= 0 && Mask[i] < MaskSize) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1() 20478 } else if (Mask[i] != i + MaskSize) { in getShuffleMaskIndexOfOneElementFromOp0IntoOp1()
|