Lines Matching refs:ret
339 struct dxil_type *ret = rzalloc_size(m->ralloc_ctx,
341 if (ret) {
342 ret->type = type;
343 ret->id = list_length(&m->type_list);
344 list_addtail(&ret->head, &m->type_list);
346 return ret;
1529 struct dxil_const *ret = ralloc_size(m->ralloc_ctx,
1531 if (ret) {
1532 ret->value.id = -1;
1533 ret->value.type = type;
1534 ret->undef = undef;
1535 list_addtail(&ret->head, &m->const_list);
1537 return ret;
2288 struct dxil_mdnode *ret = rzalloc_size(m->ralloc_ctx,
2290 if (ret) {
2291 ret->type = type;
2292 ret->id = list_length(&m->mdnode_list) + 1; /* zero is reserved for NULL nodes */
2293 list_addtail(&ret->head, &m->mdnode_list);
2295 return ret;
2598 struct dxil_instr *ret = ralloc_size(m->ralloc_ctx,
2600 if (ret) {
2601 ret->type = type;
2602 ret->value.id = -1;
2603 ret->value.type = ret_type;
2604 ret->has_value = false;
2605 list_addtail(&ret->head, &m->cur_emitting_func->instr_list);
2607 return ret;
2832 instr->ret.value = NULL;
3191 if (instr->ret.value) {
3192 assert(instr->ret.value->id >= 0);
3193 uint64_t data[] = { FUNC_CODE_INST_RET, instr->ret.value->id };