Searched refs:clang (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/compile/slang/
H A Dslang_rs_ast_replace.h20 #include "clang/AST/StmtVisitor.h"
23 #include "clang/AST/ASTContext.h"
25 namespace clang { namespace
33 class RSASTReplace : public clang::StmtVisitor<RSASTReplace> {
35 clang::ASTContext &C;
36 clang::Stmt *mOuterStmt;
37 clang::Stmt *mOldStmt;
38 clang::Stmt *mNewStmt;
39 clang::Expr *mOldExpr;
40 clang
[all...]
H A Dslang_rs_object_ref_count.h23 #include "clang/AST/StmtVisitor.h"
28 namespace clang { namespace
45 class RSObjectRefCount : public clang::StmtVisitor<RSObjectRefCount> {
49 clang::CompoundStmt *mCS; // Associated compound statement ({ ... })
50 std::list<clang::VarDecl*> mRSO; // Declared RS objects in this scope
53 explicit Scope(clang::CompoundStmt *CS) : mCS(CS) {
57 inline void addRSObject(clang::VarDecl* VD) {
62 void ReplaceRSObjectAssignment(clang::BinaryOperator *AS);
64 void AppendRSObjectInit(clang::VarDecl *VD,
65 clang
[all...]
H A Dslang_rs_pragma_handler.h22 #include "clang/Lex/Pragma.h"
24 namespace clang { namespace
34 class RSPragmaHandler : public clang::PragmaHandler {
39 : clang::PragmaHandler(Name),
48 virtual void handleInt(clang::Preprocessor &PP, clang::Token &Tok,
52 void handleItemListPragma(clang::Preprocessor &PP,
53 clang::Token &FirstToken);
56 void handleNonParamPragma(clang::Preprocessor &PP,
57 clang
[all...]
H A Dslang_diagnostic_buffer.cpp19 #include "clang/Basic/SourceLocation.h"
20 #include "clang/Basic/SourceManager.h"
33 : clang::DiagnosticConsumer(src),
42 clang::DiagnosticsEngine::Level DiagLevel,
43 clang::Diagnostic const &Info) {
44 clang::SourceLocation const &SrcLoc = Info.getLocation();
55 case clang::DiagnosticsEngine::Note: {
59 case clang::DiagnosticsEngine::Warning: {
63 case clang::DiagnosticsEngine::Error: {
67 case clang
[all...]
H A Dslang_rs_check_ast.h21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/StmtVisitor.h"
29 class RSCheckAST : public clang::StmtVisitor<RSCheckAST> {
31 clang::ASTContext &C;
32 clang::DiagnosticsEngine &mDiagEngine;
33 clang::SourceManager &mSM;
39 explicit RSCheckAST(clang::ASTContext &Con, unsigned int TargetAPI,
46 void VisitStmt(clang::Stmt *S);
48 void VisitExpr(clang::Expr *E);
50 void VisitDeclStmt(clang
[all...]
H A Dslang_rs_object_ref_count.cpp21 #include "clang/AST/DeclGroup.h"
22 #include "clang/AST/Expr.h"
23 #include "clang/AST/NestedNameSpecifier.h"
24 #include "clang/AST/OperationKinds.h"
25 #include "clang/AST/Stmt.h"
26 #include "clang/AST/StmtVisitor.h"
35 clang::FunctionDecl *RSObjectRefCount::
38 clang::FunctionDecl *RSObjectRefCount::
42 void RSObjectRefCount::GetRSRefCountingFunctions(clang::ASTContext &C) {
44 i < (sizeof(RSClearObjectFD) / sizeof(clang
[all...]
H A Dslang_rs_pragma_handler.cpp22 #include "clang/Basic/TokenKinds.h"
24 #include "clang/Lex/LiteralSupport.h"
25 #include "clang/Lex/Preprocessor.h"
26 #include "clang/Lex/Token.h"
46 void HandlePragma(clang::Preprocessor &PP,
47 clang::PragmaIntroducerKind Introducer,
48 clang::Token &FirstToken) {
58 void HandlePragma(clang::Preprocessor &PP,
59 clang::PragmaIntroducerKind Introducer,
60 clang
[all...]
H A Dslang_backend.h20 #include "clang/AST/ASTConsumer.h"
39 namespace clang { namespace
49 class Backend : public clang::ASTConsumer {
51 const clang::TargetOptions &mTargetOpts;
60 clang::CodeGenerator *mGen;
81 clang::DiagnosticsEngine &mDiagEngine;
82 const clang::CodeGenOptions &mCodeGenOpts;
96 virtual void HandleTranslationUnitPre(clang::ASTContext &Ctx) { return; }
104 Backend(clang::DiagnosticsEngine *DiagEngine,
105 const clang
[all...]
H A Dslang_pragma_recorder.cpp21 #include "clang/Basic/TokenKinds.h"
23 #include "clang/Lex/Preprocessor.h"
24 #include "clang/Lex/Token.h"
28 bool PragmaRecorder::GetPragmaNameFromToken(const clang::Token &Token,
32 else if (Token.is(clang::tok::identifier))
40 bool PragmaRecorder::GetPragmaValueFromToken(const clang::Token &Token,
43 if (Token.is(clang::tok::r_paren))
56 void PragmaRecorder::HandlePragma(clang::Preprocessor &PP,
57 clang::PragmaIntroducerKind Introducer,
58 clang
[all...]
H A Dslang_pragma_recorder.h24 #include "clang/Lex/Pragma.h"
26 namespace clang { namespace
35 class PragmaRecorder : public clang::PragmaHandler {
39 static bool GetPragmaNameFromToken(const clang::Token &Token,
42 static bool GetPragmaValueFromToken(const clang::Token &Token,
48 virtual void HandlePragma(clang::Preprocessor &PP,
49 clang::PragmaIntroducerKind Introducer,
50 clang::Token &FirstToken);
H A Dslang_rs_check_ast.cpp25 void RSCheckAST::VisitStmt(clang::Stmt *S) {
29 for (clang::Stmt::child_iterator I = S->child_begin(), E = S->child_end();
32 if (clang::Stmt *Child = *I) {
38 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) {
45 if (clang::Stmt *Body = FD->getBody()) {
53 clang::QualType resultType = FD->getResultType().getCanonicalType();
63 clang::ParmVarDecl *PVD = FD->getParamDecl(i);
64 clang::QualType QT = PVD->getType().getCanonicalType();
71 if (clang::Stmt *Body = FD->getBody()) {
77 void RSCheckAST::ValidateVarDecl(clang
[all...]
H A Dslang_rs_backend.h29 namespace clang { namespace
47 clang::SourceManager &mSourceMgr;
65 void AnnotateFunction(clang::FunctionDecl *FD);
72 virtual bool HandleTopLevelDecl(clang::DeclGroupRef D);
74 virtual void HandleTranslationUnitPre(clang::ASTContext &C);
80 clang::DiagnosticsEngine *DiagEngine,
81 const clang::CodeGenOptions &CodeGenOpts,
82 const clang::TargetOptions &TargetOpts,
86 clang::SourceManager &SourceMgr,
H A Dslang_rs_ast_replace.cpp26 clang::Stmt *OuterStmt,
27 clang::Stmt *OldStmt,
28 clang::Stmt *NewStmt) {
35 mOldExpr = llvm::dyn_cast<clang::Expr>(OldStmt);
37 mNewExpr = llvm::dyn_cast<clang::Expr>(NewStmt);
42 void RSASTReplace::ReplaceInCompoundStmt(clang::CompoundStmt *CS) {
43 clang::Stmt **UpdatedStmtList = new clang::Stmt*[CS->size()];
46 clang::CompoundStmt::body_iterator bI = CS->body_begin();
47 clang
[all...]
H A Dslang_rs_export_foreach.h23 #include "clang/AST/Decl.h"
30 namespace clang { namespace
32 } // namespace clang
48 const clang::ParmVarDecl *mIn;
49 const clang::ParmVarDecl *mOut;
50 const clang::ParmVarDecl *mUsrData;
51 const clang::ParmVarDecl *mX;
52 const clang::ParmVarDecl *mY;
53 const clang::ParmVarDecl *mZ;
54 const clang
[all...]
H A Dslang_rs_export_var.cpp19 #include "clang/AST/ASTContext.h"
20 #include "clang/AST/Type.h"
31 static clang::DiagnosticBuilder ReportVarError(RSContext *Context,
32 const clang::SourceLocation Loc,
34 clang::DiagnosticsEngine *DiagEngine = Context->getDiagnostics();
35 const clang::SourceManager *SM = Context->getSourceManager();
36 return DiagEngine->Report(clang::FullSourceLoc(Loc, *SM),
37 DiagEngine->getCustomDiagID(clang::DiagnosticsEngine::Error, Message));
43 const clang::VarDecl *VD,
53 const clang
[all...]
H A Dslang_diagnostic_buffer.h22 #include "clang/Basic/Diagnostic.h"
33 class DiagnosticBuffer : public clang::DiagnosticConsumer {
45 virtual void HandleDiagnostic(clang::DiagnosticsEngine::Level DiagLevel,
46 const clang::Diagnostic& Info);
48 virtual clang::DiagnosticConsumer *
49 clone(clang::DiagnosticsEngine &Diags) const;
H A Dslang_rs_export_foreach.cpp21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/Decl.h"
23 #include "clang/AST/TypeLoc.h"
37 static void ReportNameError(clang::DiagnosticsEngine *DiagEngine,
38 clang::ParmVarDecl const *PVD) {
40 const clang::SourceManager &SM = DiagEngine->getSourceManager();
43 clang::FullSourceLoc(PVD->getLocation(), SM),
44 DiagEngine->getCustomDiagID(clang::DiagnosticsEngine::Error,
57 RSContext *Context, const clang::FunctionDecl *FD) {
60 clang
[all...]
H A Dslang_rs_export_var.h22 #include "clang/AST/Decl.h"
23 #include "clang/AST/Expr.h"
42 clang::Expr::EvalResult mInit;
46 llvm::SmallVector<clang::Expr::EvalResult, 0> mInitArray;
49 const clang::VarDecl *VD,
58 inline const clang::APValue &getInit() const { return mInit.Val; }
62 inline const clang::APValue &getInitArray(unsigned int i) const {
H A Dslang_rs_export_type.cpp22 #include "clang/AST/ASTContext.h"
23 #include "clang/AST/RecordLayout.h"
84 static const clang::Type *TypeExportableHelper(
85 const clang::Type *T,
86 llvm::SmallPtrSet<const clang::Type*, 8>& SPS,
87 clang::DiagnosticsEngine *DiagEngine,
88 const clang::VarDecl *VD,
89 const clang::RecordDecl *TopLevelRecord);
91 static void ReportTypeError(clang::DiagnosticsEngine *DiagEngine,
92 const clang
120 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, clang::DiagnosticsEngine *DiagEngine, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument
372 ValidateTypeHelper( clang::ASTContext &C, const clang::Type *&T, clang::NamedDecl *ND, clang::SourceLocation Loc, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, bool InCompositeType, clang::RecordDecl *UnionDecl, unsigned int TargetAPI, bool IsFilterscript) argument
[all...]
H A Dslang_rs_export_func.cpp21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/Decl.h"
35 static bool ValidateFuncDecl(clang::DiagnosticsEngine *DiagEngine,
36 const clang::FunctionDecl *FD) {
38 const clang::ASTContext &C = FD->getASTContext();
41 clang::FullSourceLoc(FD->getLocation(), DiagEngine->getSourceManager()),
42 DiagEngine->getCustomDiagID(clang::DiagnosticsEngine::Error,
53 const clang::FunctionDecl *FD) {
69 clang::ASTContext &Ctx = Context->getASTContext();
74 clang
[all...]
H A Dslang.cpp24 #include "clang/AST/ASTConsumer.h"
25 #include "clang/AST/ASTContext.h"
27 #include "clang/Basic/DiagnosticIDs.h"
28 #include "clang/Basic/FileManager.h"
29 #include "clang/Basic/FileSystemOptions.h"
30 #include "clang/Basic/LangOptions.h"
31 #include "clang/Basic/SourceManager.h"
32 #include "clang/Basic/TargetInfo.h"
33 #include "clang/Basic/TargetOptions.h"
35 #include "clang/Fronten
[all...]
H A Dslang.h24 #include "clang/Basic/TargetOptions.h"
25 #include "clang/Lex/ModuleLoader.h"
40 namespace clang { namespace
54 } // namespace clang
58 class Slang : public clang::ModuleLoader {
59 static clang::LangOptions LangOpts;
60 static clang::CodeGenOptions CodeGenOpts;
82 llvm::OwningPtr<clang::Diagnostic> mDiag;
85 clang::DiagnosticsEngine *mDiagEngine;
92 clang
[all...]
H A Dslang_rs_export_element.h22 #include "clang/Lex/Token.h"
29 namespace clang { namespace
32 } // namespace clang
58 const clang::Type *T,
67 const clang::DeclaratorDecl *DD);
/frameworks/compile/llvm-ndk-cc/
H A DBackend.h4 #include "clang/AST/ASTConsumer.h"
22 namespace clang { namespace
32 class Backend : public clang::ASTConsumer {
34 Backend(const clang::CodeGenOptions &CodeGenOpts,
35 const clang::TargetOptions &TargetOpts,
36 clang::DiagnosticsEngine *Diags,
44 virtual void Initialize(clang::ASTContext &Ctx);
50 virtual bool HandleTopLevelDecl(clang::DeclGroupRef D);
54 virtual void HandleTranslationUnit(clang::ASTContext &Ctx);
60 virtual void HandleTagDeclDefinition(clang
[all...]
H A DCompiler.cpp8 #include "clang/AST/ASTConsumer.h"
9 #include "clang/AST/ASTContext.h"
11 #include "clang/Basic/DiagnosticIDs.h"
12 #include "clang/Basic/FileManager.h"
13 #include "clang/Basic/FileSystemOptions.h"
14 #include "clang/Basic/LangOptions.h"
15 #include "clang/Basic/SourceManager.h"
16 #include "clang/Basic/TargetInfo.h"
17 #include "clang/Basic/TargetOptions.h"
19 #include "clang/Fronten
[all...]

Completed in 1379 milliseconds

123