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

12

/frameworks/compile/slang/
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"
38 clang::FunctionDecl *
40 clang::FunctionDecl *
43 void RSObjectRefCount::GetRSRefCountingFunctions(clang::ASTContext &C) {
49 clang
[all...]
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) {
56 inline void addRSObject(clang::VarDecl* VD) {
60 void ReplaceRSObjectAssignment(clang::BinaryOperator *AS);
62 void AppendRSObjectInit(clang::VarDecl *VD,
63 clang
[all...]
H A Dslang_rs_check_ast.h22 #include "clang/AST/ASTContext.h"
23 #include "clang/AST/StmtVisitor.h"
30 class RSCheckAST : public clang::StmtVisitor<RSCheckAST> {
33 clang::ASTContext &C;
34 clang::SourceManager &mSM;
46 void WarnOnSetElementAt(clang::CallExpr*);
60 void VisitStmt(clang::Stmt *S);
62 void VisitCallExpr(clang::CallExpr *CE);
64 void VisitCastExpr(clang::CastExpr *CE);
66 void VisitExpr(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),
47 virtual void handleInt(clang::Preprocessor &PP, clang::Token &Tok,
51 void handleItemListPragma(clang::Preprocessor &PP,
52 clang::Token &FirstToken);
55 void handleNonParamPragma(clang::Preprocessor &PP,
56 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.cpp26 void RSCheckAST::VisitStmt(clang::Stmt *S) {
30 for (clang::Stmt::child_iterator I = S->child_begin(), E = S->child_end();
33 if (clang::Stmt *Child = *I) {
39 void RSCheckAST::WarnOnSetElementAt(clang::CallExpr *E) {
40 clang::FunctionDecl *Decl;
41 Decl = clang::dyn_cast_or_null<clang::FunctionDecl>(E->getCalleeDecl());
47 clang::Expr *Expr;
48 clang::ImplicitCastExpr *ImplCast;
50 ImplCast = clang
[all...]
H A Dslang_backend.h20 #include "clang/AST/ASTConsumer.h"
37 namespace clang { namespace
47 class Backend : public clang::ASTConsumer {
49 const clang::TargetOptions &mTargetOpts;
58 clang::CodeGenerator *mGen;
79 clang::DiagnosticsEngine &mDiagEngine;
80 const clang::CodeGenOptions &mCodeGenOpts;
94 virtual void HandleTranslationUnitPre(clang::ASTContext &Ctx) { }
102 Backend(clang::DiagnosticsEngine *DiagEngine,
103 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))
55 void PragmaRecorder::HandlePragma(clang::Preprocessor &PP,
56 clang::PragmaIntroducerKind Introducer,
57 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_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_export_type.cpp22 #include "clang/AST/ASTContext.h"
23 #include "clang/AST/Attr.h"
24 #include "clang/AST/RecordLayout.h"
92 clang::BuiltinType::Kind builtinTypeKind;
102 {clang::BuiltinType::Bool, DataTypeBoolean,
104 {clang::BuiltinType::Char_U, DataTypeUnsigned8,
106 {clang::BuiltinType::UChar, DataTypeUnsigned8,
108 {clang::BuiltinType::Char16, DataTypeSigned16,
110 {clang::BuiltinType::Char32, DataTypeSigned32,
112 {clang
193 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, slang::RSContext *Context, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument
444 ValidateTypeHelper( slang::RSContext *Context, 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.cpp24 #include "clang/AST/ASTConsumer.h"
25 #include "clang/AST/ASTContext.h"
27 #include "clang/Basic/DiagnosticIDs.h"
28 #include "clang/Basic/DiagnosticOptions.h"
29 #include "clang/Basic/FileManager.h"
30 #include "clang/Basic/FileSystemOptions.h"
31 #include "clang/Basic/LangOptions.h"
32 #include "clang/Basic/SourceManager.h"
33 #include "clang/Basic/TargetInfo.h"
34 #include "clang/Basi
[all...]
H A Dslang_rs_backend.h29 namespace clang { namespace
47 clang::SourceManager &mSourceMgr;
64 void AnnotateFunction(clang::FunctionDecl *FD);
76 virtual bool HandleTopLevelDecl(clang::DeclGroupRef D);
78 virtual void HandleTranslationUnitPre(clang::ASTContext &C);
84 clang::DiagnosticsEngine *DiagEngine,
85 const clang::CodeGenOptions &CodeGenOpts,
86 const clang::TargetOptions &TargetOpts,
90 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.h24 #include "clang/AST/Decl.h"
31 namespace clang { namespace
33 } // namespace clang
42 typedef llvm::SmallVectorImpl<const clang::ParmVarDecl*> InVec;
57 llvm::SmallVector<const clang::ParmVarDecl*, 16> mIns;
58 const clang::ParmVarDecl *mOut;
59 const clang::ParmVarDecl *mUsrData;
60 const clang::ParmVarDecl *mX;
61 const clang::ParmVarDecl *mY;
63 clang
[all...]
H A Dslang_rs_context.h25 #include "clang/Lex/Preprocessor.h"
26 #include "clang/AST/Mangle.h"
38 namespace clang { namespace
44 } // namespace clang
66 clang::Preprocessor &mPP;
67 clang::ASTContext &mCtx;
90 std::unique_ptr<clang::MangleContext> mMangleCtx;
94 bool processExportVar(const clang::VarDecl *VD);
95 bool processExportFunc(const clang::FunctionDecl *FD);
106 RSContext(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_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.h84 virtual clang::ASTConsumer
85 *createBackend(const clang::CodeGenOptions& CodeGenOpts,
95 static bool IsLocInRSHeaderFile(const clang::SourceLocation &Loc,
96 const clang::SourceManager &SourceMgr);
119 virtual void makeModuleVisible(clang::Module *Mod,
120 clang::Module::NameVisibilityKind Visibility,
121 clang::SourceLocation ImportLoc,
124 virtual clang::GlobalModuleIndex *loadGlobalModuleIndex(
125 clang::SourceLocation TriggerLoc) { }
128 clang
[all...]
H A Dslang_rs_export_foreach.cpp21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/Attr.h"
23 #include "clang/AST/Decl.h"
24 #include "clang/AST/TypeLoc.h"
38 RSContext *Context, const clang::FunctionDecl *FD) {
59 if (FD->hasAttr<clang::KernelAttr>()) {
70 RSContext *Context, const clang::FunctionDecl *FD) {
78 clang::ASTContext &C = Context->getASTContext();
96 const clang::ParmVarDecl *PVD = FD->getParamDecl(i);
97 clang
[all...]
H A Dslang.h28 #include "clang/Basic/TargetOptions.h"
29 #include "clang/Lex/ModuleLoader.h"
42 namespace clang { namespace
55 } // namespace clang
59 class Slang : public clang::ModuleLoader {
60 static clang::LangOptions LangOpts;
61 static clang::CodeGenOptions CodeGenOpts;
84 std::unique_ptr<clang::Diagnostic> mDiag;
87 clang::DiagnosticsEngine *mDiagEngine;
94 std::shared_ptr<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);
H A Dslang_rs_context.cpp21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/Decl.h"
23 #include "clang/AST/DeclBase.h"
24 #include "clang/AST/Mangle.h"
25 #include "clang/AST/Type.h"
27 #include "clang/Basic/Linkage.h"
28 #include "clang/Basic/TargetInfo.h"
45 RSContext::RSContext(clang::Preprocessor &PP,
46 clang::ASTContext &Ctx,
47 const clang
[all...]
H A Dslang_rs_export_func.cpp21 #include "clang/AST/ASTContext.h"
22 #include "clang/AST/Decl.h"
36 const clang::FunctionDecl *FD) {
38 const clang::ASTContext &C = FD->getASTContext();
51 const clang::FunctionDecl *FD) {
67 clang::ASTContext &Ctx = Context->getASTContext();
71 clang::RecordDecl *RD =
72 clang::RecordDecl::Create(Ctx, clang::TTK_Struct,
74 clang
[all...]

Completed in 206 milliseconds

12