Home
last modified time | relevance | path

Searched refs:Ast (Results 1 – 25 of 52) sorted by relevance

123

/external/rust/crates/regex-syntax/src/ast/
Dmod.rs443 pub ast: Ast,
469 pub enum Ast { enum
493 impl Ast { impl
497 Ast::Empty(ref span) => span, in span()
498 Ast::Flags(ref x) => &x.span, in span()
499 Ast::Literal(ref x) => &x.span, in span()
500 Ast::Dot(ref span) => span, in span()
501 Ast::Assertion(ref x) => &x.span, in span()
502 Ast::Class(ref x) => x.span(), in span()
503 Ast::Repetition(ref x) => &x.span, in span()
[all …]
Dvisitor.rs3 use ast::{self, Ast};
38 fn visit_pre(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_pre()
44 fn visit_post(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_post()
119 pub fn visit<V: Visitor>(ast: &Ast, visitor: V) -> Result<V::Output, V::Err> { in visit() argument
128 stack: Vec<(&'a Ast, Frame<'a>)>,
148 head: &'a Ast,
150 tail: &'a [Ast],
156 head: &'a Ast,
158 tail: &'a [Ast],
208 mut ast: &'a Ast, in visit() argument
[all …]
Dparse.rs10 use ast::{self, Ast, Position, Span};
45 fn into_ast(self) -> Ast { in into_ast() argument
47 Primitive::Literal(lit) => Ast::Literal(lit), in into_ast()
48 Primitive::Assertion(assert) => Ast::Assertion(assert), in into_ast()
49 Primitive::Dot(span) => Ast::Dot(span), in into_ast()
50 Primitive::Perl(cls) => Ast::Class(ast::Class::Perl(cls)), in into_ast()
51 Primitive::Unicode(cls) => Ast::Class(ast::Class::Unicode(cls)), in into_ast()
337 pub fn parse(&mut self, pattern: &str) -> Result<Ast> { in parse() argument
695 concat.asts.push(Ast::Flags(set)); in push_group()
768 prior_concat.asts.push(Ast::Group(group)); in pop_group()
[all …]
Dprint.rs8 use ast::{self, Ast};
59 pub fn print<W: fmt::Write>(&mut self, ast: &Ast, wtr: W) -> fmt::Result { in print() argument
78 fn visit_pre(&mut self, ast: &Ast) -> fmt::Result { in visit_pre()
80 Ast::Group(ref x) => self.fmt_group_pre(x), in visit_pre()
81 Ast::Class(ast::Class::Bracketed(ref x)) => { in visit_pre()
88 fn visit_post(&mut self, ast: &Ast) -> fmt::Result { in visit_post()
92 Ast::Empty(_) => Ok(()), in visit_post()
93 Ast::Flags(ref x) => self.fmt_set_flags(x), in visit_post()
94 Ast::Literal(ref x) => self.fmt_literal(x), in visit_post()
95 Ast::Dot(_) => self.wtr.write_str("."), in visit_post()
[all …]
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml20 | [< 'Token.Number n >] -> Ast.Number n
42 Ast.Call (id, Array.of_list (List.rev args))
45 | [< >] -> Ast.Variable id
53 Ast.If (c, t, e)
75 Ast.For (id, start, end_, step, body)
91 Ast.Unary (op, operand)
127 let lhs = Ast.Binary (c, lhs, rhs) in
160 Ast.Prototype (id, Array.of_list (List.rev args))
176 Ast.Prototype (name, args)
178 Ast.BinOpPrototype (name, args, binary_precedence)
[all …]
Dcodegen.ml16 | Ast.Number n -> const_float double_type n
17 | Ast.Variable name ->
20 | Ast.Unary (op, operand) ->
29 | Ast.Binary (op, lhs, rhs) ->
52 | Ast.Call (callee, args) ->
66 | Ast.If (cond, then_, else_) ->
117 | Ast.For (var_name, start, end_, step, body) ->
190 | Ast.Prototype (name, args) | Ast.BinOpPrototype (name, args, _) ->
220 | Ast.Function (proto, body) ->
226 | Ast.BinOpPrototype (name, args, prec) ->
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml20 | [< 'Token.Number n >] -> Ast.Number n
42 Ast.Call (id, Array.of_list (List.rev args))
45 | [< >] -> Ast.Variable id
53 Ast.If (c, t, e)
75 Ast.For (id, start, end_, step, body)
91 Ast.Unary (op, operand)
127 let lhs = Ast.Binary (c, lhs, rhs) in
160 Ast.Prototype (id, Array.of_list (List.rev args))
176 Ast.Prototype (name, args)
178 Ast.BinOpPrototype (name, args, binary_precedence)
[all …]
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dparser.ml21 | [< 'Token.Number n >] -> Ast.Number n
43 Ast.Call (id, Array.of_list (List.rev args))
46 | [< >] -> Ast.Variable id
54 Ast.If (c, t, e)
76 Ast.For (id, start, end_, step, body)
95 Ast.Var (Array.of_list (List.rev var_names), body)
105 Ast.Unary (op, operand)
141 let lhs = Ast.Binary (c, lhs, rhs) in
186 Ast.Prototype (id, Array.of_list (List.rev args))
202 Ast.Prototype (name, args)
[all …]
Dcodegen.ml22 | Ast.Number n -> const_float double_type n
23 | Ast.Variable name ->
29 | Ast.Unary (op, operand) ->
38 | Ast.Binary (op, lhs, rhs) ->
45 | Ast.Variable name -> name
82 | Ast.Call (callee, args) ->
96 | Ast.If (cond, then_, else_) ->
147 | Ast.For (var_name, start, end_, step, body) ->
241 | Ast.Var (var_names, body) ->
288 | Ast.Prototype (name, args) | Ast.BinOpPrototype (name, args, _) ->
[all …]
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dparser.ml21 | [< 'Token.Number n >] -> Ast.Number n
43 Ast.Call (id, Array.of_list (List.rev args))
46 | [< >] -> Ast.Variable id
54 Ast.If (c, t, e)
76 Ast.For (id, start, end_, step, body)
95 Ast.Var (Array.of_list (List.rev var_names), body)
105 Ast.Unary (op, operand)
141 let lhs = Ast.Binary (c, lhs, rhs) in
186 Ast.Prototype (id, Array.of_list (List.rev args))
202 Ast.Prototype (name, args)
[all …]
Dcodegen.ml22 | Ast.Number n -> const_float double_type n
23 | Ast.Variable name ->
29 | Ast.Unary (op, operand) ->
38 | Ast.Binary (op, lhs, rhs) ->
45 | Ast.Variable name -> name
82 | Ast.Call (callee, args) ->
96 | Ast.If (cond, then_, else_) ->
147 | Ast.For (var_name, start, end_, step, body) ->
241 | Ast.Var (var_names, body) ->
288 | Ast.Prototype (name, args) | Ast.BinOpPrototype (name, args, _) ->
[all …]
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml20 | [< 'Token.Number n >] -> Ast.Number n
42 Ast.Call (id, Array.of_list (List.rev args))
45 | [< >] -> Ast.Variable id
53 Ast.If (c, t, e)
75 Ast.For (id, start, end_, step, body)
116 let lhs = Ast.Binary (c, lhs, rhs) in
140 Ast.Prototype (id, Array.of_list (List.rev args))
148 Ast.Function (p, e)
154 Ast.Function (Ast.Prototype ("", [||]), e)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml20 | [< 'Token.Number n >] -> Ast.Number n
42 Ast.Call (id, Array.of_list (List.rev args))
45 | [< >] -> Ast.Variable id
53 Ast.If (c, t, e)
75 Ast.For (id, start, end_, step, body)
116 let lhs = Ast.Binary (c, lhs, rhs) in
140 Ast.Prototype (id, Array.of_list (List.rev args))
148 Ast.Function (p, e)
154 Ast.Function (Ast.Prototype ("", [||]), e)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
Dcodegen.ml16 | Ast.Number n -> const_float double_type n
17 | Ast.Variable name ->
20 | Ast.Binary (op, lhs, rhs) ->
34 | Ast.Call (callee, args) ->
50 | Ast.Prototype (name, args) ->
80 | Ast.Function (proto, body) ->
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
Dcodegen.ml16 | Ast.Number n -> const_float double_type n
17 | Ast.Variable name ->
20 | Ast.Binary (op, lhs, rhs) ->
34 | Ast.Call (callee, args) ->
50 | Ast.Prototype (name, args) ->
80 | Ast.Function (proto, body) ->
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
Dcodegen.ml16 | Ast.Number n -> const_float double_type n
17 | Ast.Variable name ->
20 | Ast.Binary (op, lhs, rhs) ->
34 | Ast.Call (callee, args) ->
50 | Ast.Prototype (name, args) ->
80 | Ast.Function (proto, body) ->
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
/external/llvm-project/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml18 | [< 'Token.Number n >] -> Ast.Number n
40 Ast.Call (id, Array.of_list (List.rev args))
43 | [< >] -> Ast.Variable id
80 let lhs = Ast.Binary (c, lhs, rhs) in
104 Ast.Prototype (id, Array.of_list (List.rev args))
112 Ast.Function (p, e)
118 Ast.Function (Ast.Prototype ("", [||]), e)
Dcodegen.ml16 | Ast.Number n -> const_float double_type n
17 | Ast.Variable name ->
20 | Ast.Binary (op, lhs, rhs) ->
34 | Ast.Call (callee, args) ->
50 | Ast.Prototype (name, args) ->
80 | Ast.Function (proto, body) ->
/external/llvm-project/polly/include/polly/CodeGen/
DIslAst.h113 IslAst Ast; variable
116 IslAstInfo(Scop &S, const Dependences &D) : S(S), Ast(IslAst::create(S, D)) {} in IslAstInfo()
119 IslAst &getIslAst() { return Ast; } in getIslAst()
184 std::unique_ptr<IslAstInfo> Ast; variable
191 IslAstInfo &getAI() { return *Ast; } in getAI()
192 const IslAstInfo &getAI() const { return *Ast; } in getAI()
/external/llvm-project/polly/lib/CodeGen/
DIslAst.cpp474 static void walkAstForStatistics(__isl_keep isl_ast_node *Ast) { in walkAstForStatistics() argument
475 assert(Ast); in walkAstForStatistics()
477 Ast, in walkAstForStatistics()
575 IslAst Ast{Scop}; in create() local
576 Ast.init(D); in create()
577 return Ast; in create()
585 __isl_give isl_ast_node *IslAstInfo::getAst() { return Ast.getAst(); } in getAst()
587 return Ast.getRunCondition(); in getRunCondition()
722 isl_ast_node *RootNode = Ast.getAst(); in print()
737 isl_ast_expr *RunCondition = Ast.getRunCondition(); in print()
[all …]

123