Lib/Target/instr/Instr.cpp
/**
 * Get the index of the last uniform load
 */
Get the index of the last uniform load
Get the index of the last uniform load
int Instr::List::lastUniformOffset() {
  int index = 0;
  for (; index < size(); ++index) {
    if (!(*this)[index].isUniformLoad()) break; 
  }
  assertq(index >= 2, "Expecting at least two uniform loads.", true);
  return index - 1;
}
int Instr :: List :: lastUniformOffset ( ) { int index = 0 ; for ( ; index < size ( ) ; ++ index ) { if ( ! ( * this ) [ index ] . isUniformLoad ( ) ) break ; } assertq ( index >= 2 , " " , true ) ; return index - 1 ; }
Get the index of the last uniform load
Get the index of the last uniform load
// Determine the first offset that is not a uniform load