Lines Matching defs:cursor
1333 /* IR builder in terms of cursor infrastructure */
1337 bi_cursor cursor;
1341 bi_init_builder(bi_context *ctx, bi_cursor cursor)
1345 .cursor = cursor
1349 /* Insert an instruction at the cursor and move the cursor */
1352 bi_builder_insert(bi_cursor *cursor, bi_instr *I)
1354 switch (cursor->option) {
1356 list_add(&I->link, &cursor->instr->link);
1357 cursor->instr = I;
1361 list_addtail(&I->link, &cursor->block->instructions);
1362 cursor->option = bi_cursor_after_instr;
1363 cursor->instr = I;
1367 list_addtail(&I->link, &cursor->instr->link);
1368 cursor->option = bi_cursor_after_instr;
1369 cursor->instr = I;
1373 unreachable("Invalid cursor option");