HomeSort by: relevance | last modified time | path
    Searched defs:STMT (Results 1 - 19 of 19) sorted by relevancy

  /src/external/apache2/llvm/dist/clang/include/clang/AST/
ASTFwd.h 22 class Stmt;
23 #define STMT(DERIVED, BASE) class DERIVED;
StmtVisitor.h 1 //===- StmtVisitor.h - Visitor for Stmt subclasses --------------*- C++ -*-===//
20 #include "clang/AST/Stmt.h"
31 /// StmtVisitorBase - This class implements a simple visitor for Stmt
32 /// subclasses. Since Expr derives from Stmt, this also includes support for
43 RetTy Visit(PTR(Stmt) S, ParamTys... P) {
45 // optimizer (e.g. LLVM) will fold this comparison into the switch stmt
104 // Top switch stmt: dispatch to VisitFooStmt for each FooStmt.
106 default: llvm_unreachable("Unknown stmt kind!");
107 #define ABSTRACT_STMT(STMT)
108 #define STMT(CLASS, PARENT)
    [all...]
ASTTypeTraits.h 66 static ASTNodeKind getFromNode(const Stmt &S);
146 #define STMT(DERIVED, BASE) NKI_##DERIVED,
201 KIND_TO_KIND_ID(Stmt)
207 #define STMT(DERIVED, BASE) KIND_TO_KIND_ID(DERIVED)
247 /// (like \c Stmt, \c Decl, \c Type and \c NestedNameSpecifier) the returned
293 /// only Stmt, Decl, Type and NestedNameSpecifier return memoization data).
476 T, std::enable_if_t<std::is_base_of<Stmt, T>::value>>
477 : public DynCastPtrConverter<T, Stmt> {};
RecursiveASTVisitor.h 33 #include "clang/AST/Stmt.h"
105 /// the node's dynamic type, until the top-most class (e.g. Stmt,
117 /// TraverseStmt(Stmt *x) and TraverseType(QualType x) work
171 typedef SmallVectorImpl<llvm::PointerIntPair<Stmt *, 1, bool>>
210 bool TraverseStmt(Stmt *S, DataRecursionQueue *Queue = nullptr);
215 bool dataTraverseStmtPre(Stmt *S) { return true; }
222 bool dataTraverseStmtPost(Stmt *S) { return true; }
341 Stmt::child_range getStmtChildren(Stmt *S) { return S->children(); }
366 if (!TRAVERSE_STMT_BASE(Stmt, Stmt, S, Queue))
    [all...]
Stmt.h 1 //===- Stmt.h - Classes for representing statements -------------*- C++ -*-===//
9 // This file defines the Stmt interface and subclasses.
66 /// Stmt - This represents one statement.
68 class alignas(void *) Stmt {
72 #define STMT(CLASS, PARENT) CLASS##Class,
77 #define ABSTRACT_STMT(STMT)
99 friend class Stmt;
719 /// Do we allocate an array? If so, the first trailing "Stmt *" is the
1113 /// Iterator for iterating over Stmt * arrays that contain only T *.
1115 /// This is needed because AST nodes use Stmt* arrays to stor
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/AST/
ASTTypeTraits.cpp 37 {NKI_None, "Stmt"},
38 #define STMT(DERIVED, BASE) { NKI_##BASE, #DERIVED },
105 ASTNodeKind ASTNodeKind::getFromNode(const Stmt &S) {
107 case Stmt::NoStmtClass: return NKI_None;
108 #define STMT(CLASS, PARENT) \
109 case Stmt::CLASS##Class: return ASTNodeKind(NKI_##CLASS);
113 llvm_unreachable("invalid stmt kind");
137 llvm_unreachable("invalid stmt kind");
161 else if (const Stmt *S = get<Stmt>())
    [all...]
ExprClassification.cpp 107 case Stmt::NoStmtClass:
109 #define STMT(Kind, Base) case Expr::Kind##Class:
ASTStructuralEquivalence.cpp 159 /// Encapsulates Stmt comparison logic.
275 bool IsStmtEquivalent(const Stmt *S1, const Stmt *S2) { return true; }
337 bool TraverseStmt(const Stmt *S1, const Stmt *S2) { return true; }
343 // overload of 'Expr' which then calls the overload for 'Stmt'.
344 #define STMT(CLASS, PARENT) \
359 bool IsEquivalent(const Stmt *S1, const Stmt *S2) {
364 // the root class 'Stmt' (e.g. 'BinaryOperator' -> 'Expr' -> 'Stmt'). Cas
    [all...]
Stmt.cpp 1 //===- Stmt.cpp - Statement AST Node Implementation -----------------------===//
9 // This file implements the Stmt class and statement subclasses.
13 #include "clang/AST/Stmt.h"
54 } StmtClassInfo[Stmt::lastStmtConstant+1];
56 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) {
63 #define ABSTRACT_STMT(STMT)
64 #define STMT(CLASS, PARENT) \
65 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \
66 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS);
72 void *Stmt::operator new(size_t bytes, const ASTContext& C
    [all...]
Expr.cpp 208 // See also Stmt.cpp:{getBeginLoc(),getEndLoc()}.
231 case Stmt::NoStmtClass: llvm_unreachable("statement without class");
233 #define STMT(type, base) \
234 case Stmt::type##Class: break;
236 case Stmt::type##Class: return getExprLocImpl<type>(this, &type::getExprLoc);
530 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName),
537 void *Mem = Ctx.Allocate(totalSizeToAlloc<Stmt *>(HasFunctionName),
1888 case Stmt::Type##Class: \
1890 #define STMT(Type, Base)
2286 if (Stmt *S = *I)
    [all...]
ItaniumMangle.cpp 4147 #define STMT(Type, Base) \
StmtPrinter.cpp 1 //===- StmtPrinter.cpp - Printing implementation for Stmt ASTs ------------===//
9 // This file implements the Stmt::dumpPretty/Stmt::printPretty methods, which
29 #include "clang/AST/Stmt.h"
81 void PrintStmt(Stmt *S) { PrintStmt(S, Policy.Indentation); }
83 void PrintStmt(Stmt *S, int SubIndent) {
86 // If this is an expr used in a stmt context, indent and newline it.
98 void PrintInitStmt(Stmt *S, unsigned PrefixWidth) {
109 void PrintControlledStmt(Stmt *S) {
144 void Visit(Stmt* S)
    [all...]
StmtProfile.cpp 1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
9 // This file implements the Stmt::Profile method, which builds a unique bit
39 void VisitStmt(const Stmt *S);
41 virtual void HandleStmtClass(Stmt::StmtClass SC) = 0;
43 #define STMT(Node, Base) void Visit##Node(const Node *S);
85 void HandleStmtClass(Stmt::StmtClass SC) override {
172 void HandleStmtClass(Stmt::StmtClass SC) override {
173 if (SC == Stmt::UnresolvedLookupExprClass) {
176 ID.AddInteger(Stmt::DeclRefExprClass);
218 void StmtProfiler::VisitStmt(const Stmt *S)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGStmt.cpp 9 // This contains code to emit Stmt nodes as LLVM code.
20 #include "clang/AST/Stmt.h"
42 void CodeGenFunction::EmitStopPoint(const Stmt *S) {
52 void CodeGenFunction::EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs) {
91 case Stmt::NoStmtClass:
92 case Stmt::CXXCatchStmtClass:
93 case Stmt::SEHExceptStmtClass:
94 case Stmt::SEHFinallyStmtClass:
95 case Stmt::MSDependentExistsStmtClass:
97 case Stmt::NullStmtClass
    [all...]
  /src/external/bsd/pcc/dist/pcc/mip/
optim2.c 249 #define STMT 4
267 if (dl->op == STMT) {
268 printf("STMT(%p)\n", dl);
321 p->op = STMT;
340 p->op = STMT;
346 p->op = STMT;
  /src/external/gpl3/gcc.old/dist/gcc/d/dmd/
statement.h 62 typedef unsigned char STMT;
110 STMT stmt; member in class:Statement
129 ErrorStatement *isErrorStatement() { return stmt == STMTerror ? (ErrorStatement*)this : NULL; }
130 ScopeStatement *isScopeStatement() { return stmt == STMTscope ? (ScopeStatement*)this : NULL; }
131 ExpStatement *isExpStatement() { return stmt == STMTexp ? (ExpStatement*)this : NULL; }
132 CompoundStatement *isCompoundStatement() { return stmt == STMTcompound ? (CompoundStatement*)this : NULL; }
133 ReturnStatement *isReturnStatement() { return stmt == STMTreturn ? (ReturnStatement*)this : NULL; }
134 IfStatement *isIfStatement() { return stmt == STMTif ? (IfStatement*)this : NULL; }
135 ConditionalStatement *isConditionalStatement() { return stmt == STMTconditional ? (ConditionalStatement*)this : NULL;
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Serialization/
ASTWriterStmt.cpp 55 void VisitStmt(Stmt *S);
56 #define STMT(Type, Base) \
71 void ASTStmtWriter::VisitStmt(Stmt *S) {
358 for (Stmt *S : CoroStmt->children())
375 for (Stmt *S : E->children())
394 for (Stmt *S : E->children())
873 for (Stmt *Child : E->children())
1225 Stmt **Stmts = E->getTrailingObjects<Stmt *>();
1227 // expression in the trailing array of Stmt *. This is not needed fo
    [all...]
ASTReaderStmt.cpp 1 //===- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------------------===//
32 #include "clang/AST/Stmt.h"
104 /// The number of record fields required for the Stmt class
122 void VisitStmt(Stmt *S);
123 #define STMT(Type, Base) \
142 void ASTStmtReader::VisitStmt(Stmt *S) {
154 SmallVector<Stmt *, 16> Stmts;
385 SmallVector<Stmt*, 16> Exprs;
703 E->getTrailingObjects<Stmt *>()[I] = Record.readSubStmt();
1361 Stmt **Stmts = E->getTrailingObjects<Stmt *>()
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Sema/
TreeTransform.h 27 #include "clang/AST/Stmt.h"
140 static inline StmtResult Owned(Stmt *S) { return S; }
363 StmtResult TransformStmt(Stmt *S, StmtDiscardKind SDK = SDK_Discarded);
651 StmtResult TransformSEHHandler(Stmt *Handler);
693 StmtResult TransformLambdaBody(LambdaExpr *E, Stmt *Body);
696 StmtResult SkipLambdaBody(LambdaExpr *E, Stmt *Body);
722 #define STMT(Node, Parent) \
731 #define ABSTRACT_STMT(Stmt)
1284 StmtResult RebuildCaseStmtBody(Stmt *S, Stmt *Body)
    [all...]

Completed in 120 milliseconds