Lines Matching refs:err

79             err!($parser.loc, $err_msg)
262 err!(loc, "undefined stack slot {}", ss) in check_ss()
290 err!(loc, "undefined dynamic stack slot {}", dss) in check_dss()
327 err!(loc, "undefined global value {}", gv) in check_gv()
352 err!(loc, "undefined signature {}", sig) in check_sig()
376 err!(loc, "undefined function {}", fn_) in check_fn()
397 return err!(loc, "stack limit defined twice"); in add_stack_limit()
406 err!(loc, "undefined constant {}", c) in check_constant()
523 err!(self.loc, err_msg) in match_token()
543 err!(self.loc, err_msg) in match_identifier()
553 err!(self.loc, err_msg) in match_type()
565 err!(self.loc, err_msg) in match_ss()
576 err!(self.loc, err_msg) in match_dss()
587 err!(self.loc, err_msg) in match_dt()
603 err!(self.loc, err_msg) in match_gv()
614 err!(self.loc, err_msg) in match_fn()
625 err!(self.loc, err_msg) in match_sig()
636 err!(self.loc, "expected constant number: const«n»") in match_constant()
645 err!(self.loc, "expected identifier: stack_limit") in match_stack_limit()
654 err!(self.loc, err_msg) in match_block()
664 err!(self.loc, err_msg) in match_value()
684 err!(self.loc, err_msg) in match_imm64()
698 err!(self.loc, err_msg) in match_hexadecimal_constant()
737 err!(self.loc, err_msg) in match_uimm64()
749 err!(self.loc, err_msg) in match_uimm32()
769 err!(self.loc, err_msg) in match_uimm8()
836 err!(self.loc, err_msg) in match_ieee16()
848 err!(self.loc, err_msg) in match_ieee32()
860 err!(self.loc, err_msg) in match_ieee64()
872 err!(self.loc, err_msg) in match_ieee128()
882 err!(self.loc, err_msg) in match_enum()
895 Err(msg) => return err!(self.loc, msg), in optional_memflags()
907 err!(self.loc, err_msg) in match_any_identifier()
921 Err(_) => return err!(self.loc, "invalid source location: {}", text), in optional_srcloc()
943 return err!( in optional_debug_tags()
975 err!(self.loc, "Expected a controlling vector type, not {}", ty) in parse_literals_to_constant_data()
984 _ => return err!(self.loc, "Expected a type of: float, int, bool"), in parse_literals_to_constant_data()
1023 Err(err) => return err!(loc, err), in parse_cmdline_target()
1027 return err!(loc, "support disabled target '{}'", targ); in parse_cmdline_target()
1094 .map_err(|err| ParseError::from(err))?; in parse_target_specs()
1104 None => return err!(loc, "expected target triple"), in parse_target_specs()
1108 Err(err) => return err!(loc, err), in parse_target_specs()
1143 err!( in parse_target_specs()
1162 return err!( in parse_cranelift_features()
1181 if let Some(err) = self.lex_error { in parse_function_list()
1182 return match err { in parse_function_list()
1183 LexError::InvalidChar => err!(self.loc, "invalid character"), in parse_function_list()
1275 _ => err!(self.loc, "expected integer"), in parse_user_func_name()
1279 err!(self.loc, "expected user function name in the form uX:Y") in parse_user_func_name()
1283 _ => err!(self.loc, "expected external name"), in parse_user_func_name()
1339 _ => err!(self.loc, "expected integer"), in parse_external_name()
1342 err!(self.loc, "expected colon") in parse_external_name()
1346 _ => err!(self.loc, "expected external name"), in parse_external_name()
1375 _ => return err!(self.loc, "unknown calling convention: {}", text), in parse_signature()
1515 return err!(self.loc, "negative stack slot size"); in parse_stack_slot_decl()
1518 return err!(self.loc, "stack slot too large"); in parse_stack_slot_decl()
1549 return err!(self.loc, "stack slot alignment is not a power of two"); in parse_stack_slot_decl()
1626 return err!(self.loc, "global-value load must be notrap and aligned"); in parse_global_value_decl()
1674 other => return err!(self.loc, "Unknown global value kind '{}'", other), in parse_global_value_decl()
1743 return err!(self.loc, "attempted to use invalid signature ss{}", sig_src); in parse_function_decl()
1756 _ => return err!(self.loc, "expected 'function' or sig«n» in function decl"), in parse_function_decl()
1794 return err!(self.loc, "expected jump_table entry"); in parse_jump_table()
1798 _ => return err!(self.loc, "expected ']' after jump table contents"), in parse_jump_table()
1803 _ => return err!(self.loc, "expected jump_table entry"), in parse_jump_table()
1867 _ => return err!(self.loc, "invalid token"), in parse_exception_table()
1914 None => return err!(self.loc, "invalid global value number for stack limit"), in parse_stack_limit_decl()
1916 _ => return err!(self.loc, "expected global value"), in parse_stack_limit_decl()
1942 return err!( in parse_function_body()
1955 return err!(loc, "alias cycle involving {}", alias); in parse_function_body()
2027 _ if !results.is_empty() => return err!(self.loc, "expected -> or ="), in parse_basic_block()
2118 return err!(self.loc, "wrong number of aliases"); in parse_value_alias()
2127 return err!( in parse_value_alias()
2135 return err!(self.loc, "value {} is already defined"); in parse_value_alias()
2142 return err!(self.loc, "value {} is not yet defined", dest); in parse_value_alias()
2177 Err(msg) => return err!(self.loc, "{}: '{}'", msg, text), in parse_instruction()
2180 return err!(self.loc, "expected instruction opcode"); in parse_instruction()
2211 return err!( in parse_instruction()
2265 return err!( in parse_instruction()
2309 return err!( in infer_typevar()
2319 return err!( in infer_typevar()
2332 return err!( in infer_typevar()
2351 return err!( in infer_typevar()
2360 return err!(self.loc, "{} does not take a typevar", opcode); in infer_typevar()
2610 return err!( in parse_inst_operands()
2648 return err!( in parse_inst_operands()