Lines Matching refs:symbol
12 bool IsLoopIndex(const TIntermSymbol* symbol, const TLoopStack& stack) {
14 if (i->index.id == symbol->getId())
37 virtual void visitSymbol(TIntermSymbol* symbol) {
41 mValid = (symbol->getQualifier() == EvqConst) ||
42 IsLoopIndex(symbol, mLoopStack);
156 bool ValidateLimitations::isLoopIndex(const TIntermSymbol* symbol) const
158 return IsLoopIndex(symbol, mLoopStack);
221 TIntermSymbol* symbol = declInit->getLeft()->getAsSymbolNode();
222 if (symbol == NULL) {
227 TBasicType type = symbol->getBasicType();
229 error(symbol->getLine(),
237 symbol->getSymbol().c_str());
241 info->index.id = symbol->getId();
263 TIntermSymbol* symbol = binOp->getLeft()->getAsSymbolNode();
264 if (symbol == NULL) {
268 if (symbol->getId() != info->index.id) {
269 error(symbol->getLine(),
270 "Expected loop index", symbol->getSymbol().c_str());
292 symbol->getSymbol().c_str());
321 TIntermSymbol* symbol = NULL;
324 symbol = unOp->getOperand()->getAsSymbolNode();
327 symbol = binOp->getLeft()->getAsSymbolNode();
331 if (symbol == NULL) {
335 if (symbol->getId() != info->index.id) {
336 error(symbol->getLine(),
337 "Expected loop index", symbol->getSymbol().c_str());
363 symbol->getSymbol().c_str());
384 TIntermSymbol* symbol = params[i]->getAsSymbolNode();
385 if (symbol && isLoopIndex(symbol))
395 TSymbol* symbol = symbolTable.find(node->getName());
396 ASSERT(symbol && symbol->isFunction());
397 TFunction* function = static_cast<TFunction*>(symbol);
419 const TIntermSymbol* symbol = operand->getAsSymbolNode();
420 if (symbol && isLoopIndex(symbol)) {
423 symbol->getSymbol().c_str());