Home
last modified time | relevance | path

Searched refs:hir (Results 1 – 25 of 31) sorted by relevance

12

/third_party/rust/crates/regex/regex-syntax/src/hir/
Dprint.rs7 use crate::hir::visitor::{self, Visitor};
8 use crate::hir::{self, Hir, HirKind};
67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print()
68 visitor::visit(hir, Writer { wtr }) in print()
85 fn visit_pre(&mut self, hir: &Hir) -> fmt::Result { in visit_pre()
86 match *hir.kind() { in visit_pre()
91 HirKind::Literal(hir::Literal::Unicode(c)) => { in visit_pre()
94 HirKind::Literal(hir::Literal::Byte(b)) => { in visit_pre()
97 HirKind::Class(hir::Class::Unicode(ref cls)) => { in visit_pre()
110 HirKind::Class(hir::Class::Bytes(ref cls)) => { in visit_pre()
[all …]
Dtranslate.rs9 use crate::hir::{self, Error, ErrorKind, Hir};
149 ClassUnicode(hir::ClassUnicode),
157 ClassBytes(hir::ClassBytes),
197 fn unwrap_class_unicode(self) -> hir::ClassUnicode { in unwrap_class_unicode()
210 fn unwrap_class_bytes(self) -> hir::ClassBytes { in unwrap_class_bytes()
248 let cls = hir::ClassUnicode::empty(); in visit_pre()
251 let cls = hir::ClassBytes::empty(); in visit_pre()
305 let hcls = hir::Class::Unicode(cls); in visit_post()
309 let hcls = hir::Class::Bytes(cls); in visit_post()
314 let cls = hir::Class::Unicode(self.hir_unicode_class(x)?); in visit_post()
[all …]
Dvisitor.rs1 use crate::hir::{self, Hir, HirKind};
59 pub fn visit<V: Visitor>(hir: &Hir, visitor: V) -> Result<V::Output, V::Err> { in visit()
60 HeapVisitor::new().visit(hir, visitor) in visit()
76 Repetition(&'a hir::Repetition),
79 Group(&'a hir::Group),
105 mut hir: &'a Hir, in visit()
112 visitor.visit_pre(hir)?; in visit()
113 if let Some(x) = self.induct(hir) { in visit()
115 self.stack.push((hir, x)); in visit()
116 hir = child; in visit()
[all …]
Dmod.rs12 use crate::hir::interval::{Interval, IntervalSet, IntervalSetIter};
15 pub use crate::hir::visitor::{visit, Visitor};
354 info.set_always_utf8(rep.hir.is_always_utf8()); in repetition()
355 info.set_all_assertions(rep.hir.is_all_assertions()); in repetition()
359 !rep.is_match_empty() && rep.hir.is_anchored_start(), in repetition()
362 !rep.is_match_empty() && rep.hir.is_anchored_end(), in repetition()
365 !rep.is_match_empty() && rep.hir.is_anchored_start(), in repetition()
368 !rep.is_match_empty() && rep.hir.is_anchored_end(), in repetition()
370 info.set_any_anchored_start(rep.hir.is_any_anchored_start()); in repetition()
371 info.set_any_anchored_end(rep.hir.is_any_anchored_end()); in repetition()
[all …]
/third_party/rust/crates/regex/regex-syntax/src/
Dparser.rs2 use crate::hir;
17 hir: hir::translate::TranslatorBuilder, field
28 Parser { ast: self.ast.build(), hir: self.hir.build() } in build()
93 self.hir.allow_invalid_utf8(yes); in allow_invalid_utf8()
115 self.hir.case_insensitive(yes); in case_insensitive()
124 self.hir.multi_line(yes); in multi_line()
133 self.hir.dot_matches_new_line(yes); in dot_matches_new_line()
142 self.hir.swap_greed(yes); in swap_greed()
155 self.hir.unicode(yes); in unicode()
177 hir: hir::translate::Translator, field
[all …]
Dunicode.rs5 use crate::hir;
288 pub fn class(query: ClassQuery<'_>) -> Result<hir::ClassUnicode> { in class()
296 let mut class = hir::ClassUnicode::empty(); in class()
325 pub fn perl_word() -> Result<hir::ClassUnicode> { in perl_word()
327 fn imp() -> Result<hir::ClassUnicode> { in perl_word()
332 fn imp() -> Result<hir::ClassUnicode> { in perl_word()
343 pub fn perl_space() -> Result<hir::ClassUnicode> { in perl_space()
345 fn imp() -> Result<hir::ClassUnicode> { in perl_space()
350 fn imp() -> Result<hir::ClassUnicode> { in perl_space()
356 fn imp() -> Result<hir::ClassUnicode> { in perl_space()
[all …]
Derror.rs7 use crate::hir;
20 Translate(hir::Error),
36 impl From<hir::Error> for Error {
37 fn from(err: hir::Error) -> Error { in from()
93 impl<'e> From<&'e hir::Error> for Formatter<'e, hir::ErrorKind> {
94 fn from(err: &'e hir::Error) -> Self { in from()
Dlib.rs168 pub mod hir; module
/third_party/rust/crates/regex/src/
Dcompile.rs7 use regex_syntax::hir::{self, Hir};
270 use regex_syntax::hir::HirKind::*; in c()
275 Literal(hir::Literal::Unicode(c)) => self.c_char(c), in c()
276 Literal(hir::Literal::Byte(b)) => { in c()
280 Class(hir::Class::Unicode(ref cls)) => self.c_class(cls.ranges()), in c()
281 Class(hir::Class::Bytes(ref cls)) => { in c()
289 char_ranges.push(hir::ClassUnicodeRange::new(s, e)); in c()
294 Anchor(hir::Anchor::StartLine) if self.compiled.is_reverse => { in c()
298 Anchor(hir::Anchor::StartLine) => { in c()
302 Anchor(hir::Anchor::EndLine) if self.compiled.is_reverse => { in c()
[all …]
Dexec.rs8 use regex_syntax::hir::literal::Literals;
9 use regex_syntax::hir::Hir;
1550 use regex_syntax::hir::{HirKind, Literal}; in alternation_literals()
/third_party/mesa3d/src/compiler/glsl/
Dast.h63 virtual ir_rvalue *hir(exec_list *instructions,
240 virtual ir_rvalue *hir(exec_list *instructions,
327 virtual ir_rvalue *hir(exec_list *instructions,
429 virtual ir_rvalue *hir(exec_list *instructions,
442 virtual ir_rvalue *hir(exec_list *instructions,
884 virtual ir_rvalue *hir(exec_list *instructions,
928 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *);
964 virtual ir_rvalue *hir(exec_list *instructions,
994 virtual ir_rvalue *hir(exec_list *instructions,
1024 virtual ir_rvalue *hir(exec_list *instructions,
[all …]
Dast_to_hir.cpp159 ast->hir(instructions, state); in _mesa_ast_to_hir()
1081 ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) in hir() function in ast_node
1104 (void)hir(instructions, state); in hir_no_rvalue()
1111 (void)hir(instructions, state); in hir_no_rvalue()
1217 ir_rvalue *val = expr->hir(instructions, state); in get_scalar_boolean_operand()
1313 ast_expression::hir(exec_list *instructions, in hir() function in ast_expression
1420 op[0] = this->subexpressions[0]->hir(instructions, state); in do_hir()
1421 op[1] = this->subexpressions[1]->hir(instructions, state); in do_hir()
1432 op[0] = this->subexpressions[0]->hir(instructions, state); in do_hir()
1442 op[0] = this->subexpressions[0]->hir(instructions, state); in do_hir()
[all …]
Dhir_field_selection.cpp38 op = expr->subexpressions[0]->hir(instructions, state); in _mesa_ast_field_selection_to_hir()
Dast_function.cpp51 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
771 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
789 ir_rvalue *outer_array_idx = idx->hir(instructions, state); in generate_array_index()
2036 op = field->subexpressions[0]->hir(instructions, state); in handle_method()
2104 ast_function_expression::hir(exec_list *instructions, in hir() function in ast_function_expression
2208 ir_rvalue *result = ast->hir(instructions, state); in hir()
2531 ast_aggregate_initializer::hir(exec_list *instructions, in hir() function in ast_aggregate_initializer
Dast_type.cpp942 ir_rvalue *const ir = const_expression->hir(&dummy_instructions, state); in process_qualifier_constant()
999 ir_rvalue *const ir = const_expression->hir(&dummy_instructions, state); in process_qualifier_constant()
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/
Dmod.rs11 use crate::hir::{self, Hir, HirKind};
451 pub fn add_char_class(&mut self, cls: &hir::ClassUnicode) -> bool { in add_char_class()
459 fn add_char_class_reverse(&mut self, cls: &hir::ClassUnicode) -> bool { in add_char_class_reverse()
465 cls: &hir::ClassUnicode, in _add_char_class()
496 pub fn add_byte_class(&mut self, cls: &hir::ClassBytes) -> bool { in add_byte_class()
584 HirKind::Literal(hir::Literal::Unicode(c)) => { in prefixes()
588 HirKind::Literal(hir::Literal::Byte(b)) => { in prefixes()
591 HirKind::Class(hir::Class::Unicode(ref cls)) => { in prefixes()
596 HirKind::Class(hir::Class::Bytes(ref cls)) => { in prefixes()
601 HirKind::Group(hir::Group { ref hir, .. }) => { in prefixes()
[all …]
/third_party/rust/crates/regex/regex-debug/src/
Dmain.rs8 use regex_syntax::hir::literal::Literals;
9 use regex_syntax::hir::Hir;
135 let hir = parser.parse(&args.arg_pattern)?; in cmd_hir() localVariable
136 println!("{:#?}", hir); in cmd_hir()
221 use regex_syntax::hir::{self, HirKind}; in cmd_utf8_ranges()
225 let hir = ParserBuilder::new() in cmd_utf8_ranges() localVariable
228 let cls = match hir.into_kind() { in cmd_utf8_ranges()
229 HirKind::Class(hir::Class::Unicode(cls)) => cls, in cmd_utf8_ranges()
254 use regex_syntax::hir::{self, HirKind}; in cmd_utf8_ranges_rev()
258 let hir = ParserBuilder::new() in cmd_utf8_ranges_rev() localVariable
[all …]
/third_party/rust/crates/regex/regex-syntax/
DREADME.md34 use regex_syntax::hir::{self, Hir};
36 let hir = Parser::new().parse("a|b").unwrap();
37 assert_eq!(hir, Hir::alternation(vec![
38 Hir::literal(hir::Literal::Unicode('a')),
39 Hir::literal(hir::Literal::Unicode('b')),
92 compile a `regex::Regex` from a `regex_syntax::hir::Hir`. Instead, one must
/third_party/rust/crates/regex/src/literal/
Dmod.rs9 use regex_syntax::hir::literal::Literals;
Dimp.rs5 use regex_syntax::hir::literal::{Literal, Literals};
/third_party/mesa3d/docs/relnotes/
D10.1.5.rst41 - glsl: fix use-after free bug/crash in ast_declarator_list::hir()
D17.0.1.rst176 - glsl: fix heap-use-after-free in ast_declarator_list::hir()
D7.9.1.rst184 - glsl: Fix ast-to-hir for ARB_fragment_coord_conventions
186 - glsl: Fix erroneous cast in ast_jump_statement::hir()
D13.0.6.rst243 - glsl: fix heap-use-after-free in ast_declarator_list::hir()
/third_party/mesa3d/docs/
Dshading.rst153 - **--dump-hir** - dump high-level IR code

12