HomePhabricator

[Syntax] Add nodes for most common statements

Authored by ilya-biryukov on Nov 6 2019, 1:56 AM.

Description

[Syntax] Add nodes for most common statements

Summary:
Most of the statements mirror the ones provided by clang AST.
Major differences are:

  • expressions are wrapped into 'ExpressionStatement' instead of being a subclass of statement,
  • semicolons are always consumed by the leaf expressions (return, expression satement, etc),
  • some clang statements are not handled yet, we wrap those into an UnknownStatement class, which is not present in clang.

We also define an 'Expression' and 'UnknownExpression' classes in order
to produce 'ExpressionStatement' where needed. The actual implementation
of expressions is not yet ready, it will follow later.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63835

Details

Committed
ilya-biryukovNov 6 2019, 1:56 AM
Reviewer
sammccall
Differential Revision
D63835: [Syntax] Add nodes for most common statements
Parents
rG6c3fee47a649: [ARM,MVE] Add intrinsics for gather/scatter load/stores.
Branches
Unknown
Tags
Unknown