Lines Matching refs:loc
303 gcc_jit_location *loc,
309 gcc_jit_location *loc,
316 ctxt->add_error_va (loc, fmt, ap);
411 gcc_jit_location_as_object (gcc_jit_location *loc)
413 RETURN_NULL_IF_FAIL (loc, NULL, NULL, "NULL location");
415 return static_cast <gcc_jit_object *> (loc->as_object ());
521 gcc_jit_location *loc,
525 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
528 RETURN_NULL_IF_FAIL (element_type, ctxt, loc, "NULL type");
531 return (gcc_jit_type *)ctxt->new_array_type (loc,
544 gcc_jit_location *loc,
551 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
552 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
555 ctxt, loc,
560 return (gcc_jit_field *)ctxt->new_field (loc, type, name);
571 gcc_jit_location *loc,
579 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
580 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
582 ctxt, loc,
586 width > 0, ctxt, loc,
591 ctxt, loc,
596 return (gcc_jit_field *)ctxt->new_bitfield (loc, type, width, name);
622 gcc_jit_location *loc,
630 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
632 RETURN_NULL_IF_FAIL (fields, ctxt, loc, "NULL fields ptr");
635 RETURN_NULL_IF_FAIL (fields[i], ctxt, loc, "NULL field ptr");
638 ctxt, loc,
645 ctxt->new_struct_type (loc, name);
646 result->set_fields (loc,
660 gcc_jit_location *loc,
663 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
666 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
668 return (gcc_jit_struct *)ctxt->new_struct_type (loc, name);
693 gcc_jit_location *loc,
697 RETURN_IF_FAIL (struct_type, NULL, loc, "NULL struct_type");
702 struct_type->get_fields () == NULL, ctxt, loc,
706 RETURN_IF_FAIL (fields, ctxt, loc, "NULL fields ptr");
711 ctxt, loc,
717 ctxt, loc,
723 struct_type->set_fields (loc, num_fields,
736 gcc_jit_location *loc,
744 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
746 RETURN_NULL_IF_FAIL (fields, ctxt, loc, "NULL fields ptr");
749 RETURN_NULL_IF_FAIL (fields[i], ctxt, loc, "NULL field ptr");
752 ctxt, loc,
759 ctxt->new_union_type (loc, name);
760 result->set_fields (loc,
774 gcc_jit_location *loc,
780 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
783 RETURN_NULL_IF_FAIL (return_type, ctxt, loc, "NULL return_type");
786 ctxt, loc,
791 ctxt, loc,
795 ctxt->new_function_ptr_type (loc, return_type,
810 gcc_jit_location *loc,
814 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
817 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
818 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
820 return (gcc_jit_param *)ctxt->new_param (loc, type, name);
872 gcc_jit_location *loc,
880 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
886 ctxt, loc,
889 RETURN_NULL_IF_FAIL (return_type, ctxt, loc, "NULL return_type");
890 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
901 ctxt, loc,
909 ctxt, loc,
916 ctxt, loc,
922 ctxt, loc,
926 ctxt, loc,
938 ctxt->new_function (loc, kind, return_type, name,
1074 gcc_jit_location *loc,
1079 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1085 ctxt, loc,
1088 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
1089 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
1092 ctxt, loc,
1097 return (gcc_jit_lvalue *)ctxt->new_global (loc, kind, type, name);
1326 gcc_jit_location *loc,
1331 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1337 ctxt, loc,
1340 RETURN_NULL_IF_FAIL (result_type, ctxt, loc, "NULL result_type");
1342 result_type->is_numeric (), ctxt, loc,
1348 RETURN_NULL_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
1350 return (gcc_jit_rvalue *)ctxt->new_unary_op (loc, op, result_type, rvalue);
1372 gcc_jit_location *loc,
1377 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1382 ctxt, loc,
1385 RETURN_NULL_IF_FAIL (result_type, ctxt, loc, "NULL result_type");
1386 RETURN_NULL_IF_FAIL (a, ctxt, loc, "NULL a");
1387 RETURN_NULL_IF_FAIL (b, ctxt, loc, "NULL b");
1390 ctxt, loc,
1398 result_type->is_numeric (), ctxt, loc,
1405 return (gcc_jit_rvalue *)ctxt->new_binary_op (loc, op, result_type, a, b);
1416 gcc_jit_location *loc,
1420 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1426 ctxt, loc,
1429 RETURN_NULL_IF_FAIL (a, ctxt, loc, "NULL a");
1430 RETURN_NULL_IF_FAIL (b, ctxt, loc, "NULL b");
1433 ctxt, loc,
1441 return (gcc_jit_rvalue *)ctxt->new_comparison (loc, op, a, b);
1452 gcc_jit_location *loc,
1456 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1459 RETURN_NULL_IF_FAIL (func, ctxt, loc, "NULL function");
1461 RETURN_NULL_IF_FAIL (args, ctxt, loc, "NULL args");
1468 ctxt, loc,
1476 ctxt, loc,
1489 ctxt, loc,
1500 ctxt, loc,
1511 return (gcc_jit_rvalue *)ctxt->new_call (loc,
1525 gcc_jit_location *loc,
1529 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1532 RETURN_NULL_IF_FAIL (fn_ptr, ctxt, loc, "NULL fn_ptr");
1534 RETURN_NULL_IF_FAIL (args, ctxt, loc, "NULL args");
1538 ptr_type, ctxt, loc,
1547 fn_type, ctxt, loc,
1558 ctxt, loc,
1566 ctxt, loc,
1579 ctxt, loc,
1589 ctxt, loc,
1601 ctxt->new_call_through_ptr (loc,
1655 gcc_jit_location *loc,
1659 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1662 RETURN_NULL_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
1663 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
1666 ctxt, loc,
1672 return static_cast <gcc_jit_rvalue *> (ctxt->new_cast (loc, rvalue, type));
1683 gcc_jit_location *loc,
1687 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL context");
1690 RETURN_NULL_IF_FAIL (ptr, ctxt, loc, "NULL ptr");
1691 RETURN_NULL_IF_FAIL (index, ctxt, loc, "NULL index");
1694 ctxt, loc,
1700 ctxt, loc,
1705 return (gcc_jit_lvalue *)ctxt->new_array_access (loc, ptr, index);
1744 gcc_jit_location *loc,
1747 RETURN_NULL_IF_FAIL (struct_, NULL, loc, "NULL struct");
1751 RETURN_NULL_IF_FAIL (field, ctxt, loc, "NULL field");
1752 RETURN_NULL_IF_FAIL_PRINTF1 (field->get_container (), field->m_ctxt, loc,
1760 struct_->m_ctxt, loc,
1765 return (gcc_jit_lvalue *)struct_->access_field (loc, field);
1776 gcc_jit_location *loc,
1779 RETURN_NULL_IF_FAIL (struct_, NULL, loc, "NULL struct");
1783 RETURN_NULL_IF_FAIL (field, ctxt, loc, "NULL field");
1784 RETURN_NULL_IF_FAIL_PRINTF1 (field->get_container (), field->m_ctxt, loc,
1792 struct_->m_ctxt, loc,
1797 return (gcc_jit_rvalue *)struct_->access_field (loc, field);
1808 gcc_jit_location *loc,
1811 RETURN_NULL_IF_FAIL (ptr, NULL, loc, "NULL ptr");
1814 RETURN_NULL_IF_FAIL (field, NULL, loc, "NULL field");
1817 RETURN_NULL_IF_FAIL_PRINTF1 (field->get_container (), field->m_ctxt, loc,
1822 ptr->m_ctxt, loc,
1830 ptr->m_ctxt, loc,
1835 return (gcc_jit_lvalue *)ptr->dereference_field (loc, field);
1846 gcc_jit_location *loc)
1848 RETURN_NULL_IF_FAIL (rvalue, NULL, loc, "NULL rvalue");
1857 rvalue->m_ctxt, loc,
1864 rvalue->m_ctxt, loc,
1869 return (gcc_jit_lvalue *)rvalue->dereference (loc);
1879 gcc_jit_location *loc)
1881 RETURN_NULL_IF_FAIL (lvalue, NULL, loc, "NULL lvalue");
1885 return (gcc_jit_rvalue *)lvalue->get_address (loc);
1895 gcc_jit_location *loc,
1899 RETURN_NULL_IF_FAIL (func, NULL, loc, "NULL function");
1904 ctxt, loc,
1906 RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
1907 RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
1910 ctxt, loc,
1915 return (gcc_jit_lvalue *)func->new_local (loc, type, name);
1925 gcc_jit_location *loc,
1928 RETURN_IF_NOT_VALID_BLOCK (block, loc);
1932 RETURN_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
1934 gcc::jit::recording::statement *stmt = block->add_eval (loc, rvalue);
1952 gcc_jit_location *loc,
1956 RETURN_IF_NOT_VALID_BLOCK (block, loc);
1960 RETURN_IF_FAIL (lvalue, ctxt, loc, "NULL lvalue");
1961 RETURN_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
1965 ctxt, loc,
1973 gcc::jit::recording::statement *stmt = block->add_assignment (loc, lvalue, rvalue);
1992 gcc_jit_location *loc,
1997 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2001 RETURN_IF_FAIL (lvalue, ctxt, loc, "NULL lvalue");
2004 ctxt, loc,
2007 RETURN_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
2011 ctxt, loc,
2019 gcc::jit::recording::statement *stmt = block->add_assignment_op (loc, lvalue, op, rvalue);
2050 gcc_jit_location *loc,
2055 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2059 RETURN_IF_FAIL (boolval, ctxt, loc, "NULL boolval");
2061 is_bool (boolval), ctxt, loc,
2065 RETURN_IF_FAIL (on_true, ctxt, loc, "NULL on_true");
2066 RETURN_IF_FAIL (on_true, ctxt, loc, "NULL on_false");
2069 ctxt, loc,
2079 ctxt, loc,
2088 gcc::jit::recording::statement *stmt = block->end_with_conditional (loc, boolval, on_true, on_false);
2106 gcc_jit_location *loc,
2109 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2113 RETURN_IF_FAIL (text, ctxt, loc, "NULL text");
2115 block->add_comment (loc, text);
2126 gcc_jit_location *loc,
2129 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2133 RETURN_IF_FAIL (target, ctxt, loc, "NULL target");
2136 ctxt, loc,
2145 block->end_with_jump (loc, target);
2156 gcc_jit_location *loc,
2159 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2164 RETURN_IF_FAIL (rvalue, ctxt, loc, "NULL rvalue");
2169 ctxt, loc,
2177 gcc::jit::recording::statement *stmt = block->end_with_return (loc, rvalue);
2195 gcc_jit_location *loc)
2197 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2204 ctxt, loc,
2210 block->end_with_return (loc, NULL);
2285 gcc_jit_location *loc,
2293 jit_error (ctxt, loc, "%s: NULL %s", api_funcname, dest_block_desc);
2300 jit_error (ctxt, loc,
2320 gcc_jit_location *loc,
2330 jit_error (ctxt, loc,
2337 if (!valid_dest_for_switch (ctxt, loc,
2346 jit_error (ctxt, loc,
2361 jit_error (ctxt, loc,
2384 gcc_jit_location *loc,
2387 m_loc (loc),
2404 gcc_jit_location *loc,
2425 gcc_jit_location *loc,
2427 : api_call_validator (ctxt, loc, funcname),
2540 gcc_jit_location *loc,
2546 RETURN_IF_NOT_VALID_BLOCK (block, loc);
2550 RETURN_IF_FAIL (expr, ctxt, loc,
2555 ctxt, loc,
2559 if (!valid_dest_for_switch (ctxt, loc,
2565 RETURN_IF_FAIL (num_cases >= 0, ctxt, loc, "num_cases < 0");
2566 case_range_validator crv (ctxt, loc, __func__);
2572 if (!valid_case_for_switch (ctxt, loc,
2584 block->end_with_switch (loc, expr, default_block,
3111 gcc_jit_location *loc)
3120 return (gcc_jit_rvalue *)fn->get_address (loc);
3131 gcc_jit_location *loc,
3136 RETURN_NULL_IF_FAIL (ctxt, NULL, loc, "NULL ctxt");
3140 RETURN_NULL_IF_FAIL (vec_type, ctxt, loc, "NULL vec_type");
3145 RETURN_NULL_IF_FAIL_PRINTF1 (as_vec_type, ctxt, loc,
3151 num_elements == as_vec_type->get_num_units (), ctxt, loc,
3155 RETURN_NULL_IF_FAIL (elements, ctxt, loc, "NULL elements");
3163 elements[i], ctxt, loc, "NULL elements[%zi]", i);
3167 ctxt, loc,
3176 (loc,