find all immediate operands to build the queue