12#ifndef LLVM_CLANG_AST_STMTSYCL_H
13#define LLVM_CLANG_AST_STMTSYCL_H
42 Stmt *OriginalStmt =
nullptr;
48 :
Stmt(SYCLKernelCallStmtClass), OriginalStmt(CS), OFDecl(OFD) {}
56 return cast<CompoundStmt>(OriginalStmt);
80 return T->getStmtClass() == SYCLKernelCallStmtClass;
84 return child_range(&OriginalStmt, &OriginalStmt + 1);
Defines the clang::ASTContext interface.
Defines the clang::SourceLocation class and associated facilities.
CompoundStmt - This represents a group of statements like { stmt stmt }.
SourceLocation getBeginLoc() const
SourceLocation getEndLoc() const
Represents a partial function definition.
SYCLKernelCallStmt represents the transformation that is applied to the body of a function declared w...
CompoundStmt * getOriginalStmt()
Retrieve the model statement.
void setOriginalStmt(CompoundStmt *CS)
static bool classof(const Stmt *T)
SourceRange getSourceRange() const LLVM_READONLY
SYCLKernelCallStmt(CompoundStmt *CS, OutlinedFunctionDecl *OFD)
Construct a SYCL kernel call statement.
SourceLocation getBeginLoc() const LLVM_READONLY
const OutlinedFunctionDecl * getOutlinedFunctionDecl() const
const CompoundStmt * getOriginalStmt() const
SYCLKernelCallStmt(EmptyShell Empty)
Construct an empty SYCL kernel call statement.
SourceLocation getEndLoc() const LLVM_READONLY
const_child_range children() const
OutlinedFunctionDecl * getOutlinedFunctionDecl()
Retrieve the outlined function declaration.
void setOutlinedFunctionDecl(OutlinedFunctionDecl *OFD)
Set the outlined function declaration.
Encodes a location in the source.
A trivial tuple used to represent a source range.
Stmt - This represents one statement.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
llvm::iterator_range< child_iterator > child_range
llvm::iterator_range< const_child_iterator > const_child_range
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T
A placeholder type used to construct an empty shell of a type, that will be filled in later (e....