소스 검색

nir/builder: Add a helper for getting the most recently added instruction

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
tags/17.0-branchpoint
Jason Ekstrand 8 년 전
부모
커밋
830dca74fe
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      src/compiler/nir/nir_builder.h

+ 7
- 0
src/compiler/nir/nir_builder.h 파일 보기

@@ -68,6 +68,13 @@ nir_builder_instr_insert(nir_builder *build, nir_instr *instr)
build->cursor = nir_after_instr(instr);
}

static inline nir_instr *
nir_builder_last_instr(nir_builder *build)
{
assert(build->cursor.option == nir_cursor_after_instr);
return build->cursor.instr;
}

static inline void
nir_builder_cf_insert(nir_builder *build, nir_cf_node *cf)
{

Loading…
취소
저장