Lines Matching defs:branch
290 if (inst->branch.cond != V3D_QPU_BRANCH_COND_ALWAYS)
1087 /* Don't choose the branch instruction until it's the last one
1141 /* Don't try to put a branch in the delay slots of another
1142 * branch or a unifa write.
1149 /* No branch with cond != 0,2,3 and msfign != 0 after
1153 inst->branch.msfign != V3D_QPU_MSFIGN_NONE &&
1154 inst->branch.cond != V3D_QPU_BRANCH_COND_ALWAYS &&
1155 inst->branch.cond != V3D_QPU_BRANCH_COND_A0 &&
1156 inst->branch.cond != V3D_QPU_BRANCH_COND_NA0) {
1766 * or branch.
1902 /* We should've not picked up a branch for the delay slots of a previous
1903 * thrsw, branch or unifa write instruction.
1910 /* Can't place a branch with msfign != 0 and cond != 0,2,3 after
1914 inst->qpu.branch.msfign == V3D_QPU_MSFIGN_NONE ||
1915 inst->qpu.branch.cond == V3D_QPU_BRANCH_COND_ALWAYS ||
1916 inst->qpu.branch.cond == V3D_QPU_BRANCH_COND_A0 ||
1917 inst->qpu.branch.cond == V3D_QPU_BRANCH_COND_NA0;
1921 /* Insert the branch instruction */
1924 /* Now see if we can move the branch instruction back into the
1932 /* Can't move the branch instruction if that would place it
1950 /* Do not move up a branch if it can disrupt an ldvary sequence
1958 /* Can't move a conditional branch before the instruction
1962 inst->qpu.branch.cond != V3D_QPU_BRANCH_COND_ALWAYS) {
1990 * all blocks when setting up branch targets.
2256 * branch target updating will still need to change
2351 /* The end block of the program has no branch. */
2355 /* If there was no branch instruction, then the successor
2364 /* Walk back through the delay slots to find the branch
2367 struct qinst *branch = NULL;
2384 branch = inst;
2388 assert(branch && branch->qpu.type == V3D_QPU_INSTR_TYPE_BRANCH);
2400 branch->qpu.branch.offset =
2412 assert(c->uniform_contents[branch->uniform] == QUNIFORM_CONSTANT);
2413 c->uniform_data[branch->uniform] =
2417 /* If this is an unconditional branch, try to fill any remaining
2422 * predicate the instructions to match the branch condition.
2424 if (branch->qpu.branch.cond == V3D_QPU_BRANCH_COND_ALWAYS) {
2441 branch->qpu.branch.offset +=