Lines Matching refs:pMaskSet

98465   WhereMaskSet *pMaskSet;  /* Mapping of table cursor numbers to bitmasks */
98595 WhereMaskSet *pMaskSet /* Mapping from table cursor numbers to bitmasks */
98598 pWC->pMaskSet = pMaskSet;
98732 static Bitmask getMask(WhereMaskSet *pMaskSet, int iCursor){
98734 assert( pMaskSet->n<=(int)sizeof(Bitmask)*8 );
98735 for(i=0; i<pMaskSet->n; i++){
98736 if( pMaskSet->ix[i]==iCursor ){
98751 static void createMask(WhereMaskSet *pMaskSet, int iCursor){
98752 assert( pMaskSet->n < ArraySize(pMaskSet->ix) );
98753 pMaskSet->ix[pMaskSet->n++] = iCursor;
98772 static Bitmask exprTableUsage(WhereMaskSet *pMaskSet, Expr *p){
98776 mask = getMask(pMaskSet, p->iTable);
98779 mask = exprTableUsage(pMaskSet, p->pRight);
98780 mask |= exprTableUsage(pMaskSet, p->pLeft);
98782 mask |= exprSelectTableUsage(pMaskSet, p->x.pSelect);
98784 mask |= exprListTableUsage(pMaskSet, p->x.pList);
98788 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
98793 mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
98798 static Bitmask exprSelectTableUsage(WhereMaskSet *pMaskSet, Select *pS){
98801 mask |= exprListTableUsage(pMaskSet, pS->pEList);
98802 mask |= exprListTableUsage(pMaskSet, pS->pGroupBy);
98803 mask |= exprListTableUsage(pMaskSet, pS->pOrderBy);
98804 mask |= exprTableUsage(pMaskSet, pS->pWhere);
98805 mask |= exprTableUsage(pMaskSet, pS->pHaving);
99184 WhereMaskSet *pMaskSet = pWC->pMaskSet; /* Table use masks */
99203 whereClauseInit(pOrWc, pWC->pParse, pMaskSet);
99230 whereClauseInit(pAndWC, pWC->pParse, pMaskSet);
99238 b |= getMask(pMaskSet, pAndTerm->leftCursor);
99249 b = getMask(pMaskSet, pOrTerm->leftCursor);
99252 b |= getMask(pMaskSet, pOther->leftCursor);
99314 if( (chngToIN & getMask(pMaskSet, pOrTerm->leftCursor))==0 ){
99333 assert( chngToIN==getMask(pMaskSet, iCursor) );
99433 WhereMaskSet *pMaskSet; /* Set of table index masks */
99449 pMaskSet = pWC->pMaskSet;
99451 prereqLeft = exprTableUsage(pMaskSet, pExpr->pLeft);
99456 pTerm->prereqRight = exprSelectTableUsage(pMaskSet, pExpr->x.pSelect);
99458 pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
99463 pTerm->prereqRight = exprTableUsage(pMaskSet, pExpr->pRight);
99465 prereqAll = exprTableUsage(pMaskSet, pExpr);
99467 Bitmask x = getMask(pMaskSet, pExpr->iRightJoinTable);
99644 prereqExpr = exprTableUsage(pMaskSet, pRight);
99645 prereqColumn = exprTableUsage(pMaskSet, pLeft);
99719 WhereMaskSet *pMaskSet, /* Mapping from tables to bitmaps */
99723 Bitmask allowed = ~getMask(pMaskSet, iBase);
99725 if( (exprTableUsage(pMaskSet, pList->a[iFirst++].pExpr)&allowed)!=0 ){
99754 WhereMaskSet *pMaskSet, /* Mapping from table cursor numbers to bitmaps */
99847 if( iColumn<0 && !referencesOtherTables(pOrderBy, pMaskSet, j, base) ){
99866 && !referencesOtherTables(pOrderBy, pMaskSet, j, base) ){
99964 const Bitmask maskSrc = getMask(pWC->pMaskSet, iCur); /* Bitmask for pSrc */
99999 tempWC.pMaskSet = pWC->pMaskSet;
101231 && isSortingIndex(pParse, pWC->pMaskSet, pProbe, iCur, pOrderBy,
101380 thisTab = getMask(pWC->pMaskSet, iCur);
102513 notReady &= ~getMask(pWC->pMaskSet, iCur);
102711 WhereMaskSet *pMaskSet; /* The expression mask set */
102761 pMaskSet = (WhereMaskSet*)&pWC[1];
102766 initMaskSet(pMaskSet);
102767 whereClauseInit(pWC, pParse, pMaskSet);
102800 assert( pWC->vmask==0 && pMaskSet->n==0 );
102802 createMask(pMaskSet, pTabList->a[i].iCursor);
102813 Bitmask m = getMask(pMaskSet, pTabList->a[i].iCursor);
102916 m = getMask(pMaskSet, pTabItem->iCursor);
102991 assert( notReady & getMask(pMaskSet, pTabList->a[bestJ].iCursor) );
103007 notReady &= ~getMask(pMaskSet, pTabList->a[bestJ].iCursor);
103112 notReady &= ~getMask(pWC->pMaskSet, pTabItem->iCursor);