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

12

/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_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_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) {
45 clang::SourceLocation const &SrcLoc = Info.getLocation();
56 case clang::DiagnosticsEngine::Note: {
60 case clang::DiagnosticsEngine::Warning: {
64 case clang::DiagnosticsEngine::Error: {
68 case 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),
51 void handleItemListPragma(clang::Preprocessor &PP,
52 clang::Token &FirstToken);
55 void handleNonParamPragma(clang::Preprocessor &PP,
56 clang::Token &FirstToken);
59 void handleOptionalStringLiteralParamPragma(clang::Preprocessor &PP,
60 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_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::CodeGenOptions &mCodeGenOpts;
52 const clang::TargetOptions &mTargetOpts;
61 clang::CodeGenerator *mGen;
82 clang::DiagnosticsEngine &mDiagEngine;
96 virtual void HandleTranslationUnitPre(clang::ASTContext &Ctx) { return; }
104 Backend(clang::DiagnosticsEngine *DiagEngine,
105 const clang
[all...]
H A Dslang.h24 #include "clang/Basic/TargetOptions.h"
25 #include "clang/Lex/ModuleLoader.h"
38 namespace clang { namespace
56 class Slang : public clang::ModuleLoader {
57 static clang::LangOptions LangOpts;
58 static clang::CodeGenOptions CodeGenOpts;
80 llvm::OwningPtr<clang::Diagnostic> mDiag;
83 llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> mDiagIDs;
86 llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine> mDiagEngine;
96 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_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_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,
56 RSContext *Context, const clang::FunctionDecl *FD) {
59 clang
[all...]
H A Dslang_rs_export_type.cpp22 #include "clang/AST/RecordLayout.h"
45 static const clang::Type *TypeExportableHelper(
46 const clang::Type *T,
47 llvm::SmallPtrSet<const clang::Type*, 8>& SPS,
48 clang::DiagnosticsEngine *DiagEngine,
49 const clang::VarDecl *VD,
50 const clang::RecordDecl *TopLevelRecord);
52 static void ReportTypeError(clang::DiagnosticsEngine *DiagEngine,
53 const clang::VarDecl *VD,
54 const clang
80 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, clang::DiagnosticsEngine *DiagEngine, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument
289 ValidateVarDeclHelper( clang::VarDecl *VD, const clang::Type *&T, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, clang::RecordDecl *UnionDecl) argument
[all...]
H A Dslang_rs_backend.h28 namespace clang { namespace
46 clang::SourceManager &mSourceMgr;
59 void AnnotateFunction(clang::FunctionDecl *FD);
66 virtual void HandleTopLevelDecl(clang::DeclGroupRef D);
68 virtual void HandleTranslationUnitPre(clang::ASTContext &C);
74 clang::DiagnosticsEngine *DiagEngine,
75 const clang::CodeGenOptions &CodeGenOpts,
76 const clang::TargetOptions &TargetOpts,
80 clang::SourceManager &SourceMgr,
H A Dslang_rs_export_var.h22 #include "clang/AST/Decl.h"
23 #include "clang/AST/Expr.h"
29 namespace clang { namespace
44 clang::Expr::EvalResult mInit;
47 const clang::VarDecl *VD,
55 inline const clang::APValue &getInit() const { return mInit.Val; }
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_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_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_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"
30 #include "clang/Index/ASTLocation.h"
48 RSContext::RSContext(clang::Preprocessor &PP,
49 clang
[all...]
H A Dslang_rs_export_element.cpp19 #include "clang/AST/Decl.h"
20 #include "clang/AST/Type.h"
22 #include "clang/Basic/SourceLocation.h"
23 #include "clang/Basic/IdentifierTable.h"
61 const clang::Type *T,
78 case clang::Type::Builtin:
79 case clang::Type::Pointer: {
93 case clang::Type::ExtVector: {
98 static_cast<const clang::ExtVectorType*>(
123 const clang
[all...]
H A Dslang_rs_export_var.cpp19 #include "clang/AST/Type.h"
30 const clang::VarDecl *VD,
37 const clang::Expr *Initializer = VD->getAnyInitializer();
48 clang::Expr::NPC_ValueDependentIsNotNull)
50 mInit.Val = clang::APValue(llvm::APSInt(1));
71 clang::QualType QT = VD->getTypeSourceInfo()->getType();
H A Dslang_rs_backend.cpp46 clang::DiagnosticsEngine *DiagEngine,
47 const clang::CodeGenOptions &CodeGenOpts,
48 const clang::TargetOptions &TargetOpts,
52 clang::SourceManager &SourceMgr,
67 void RSBackend::AnnotateFunction(clang::FunctionDecl *FD) {
77 void RSBackend::HandleTopLevelDecl(clang::DeclGroupRef D) {
81 for (clang::DeclGroupRef::iterator I = D.begin(), E = D.end();
83 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
90 clang
[all...]
H A Dslang_rs_export_element.h22 #include "clang/Lex/Token.h"
29 namespace clang { namespace
32 } // namespace clang
59 const clang::Type *T,
68 const clang::DeclaratorDecl *DD);
/frameworks/compile/linkloader/tests/images/
H A Dgen-test-elf.sh19 clang -integrated-as -std=c89 -c test.c -o test-tegra2.o -ccc-host-triple armv7-none-linux-gnueabi -mcpu=cortex-a9 -mfpu=vfp
20 clang -integrated-as -std=c89 -c test.c -o test-arm.o -ccc-host-triple armv7-none-linux-gnueabi
21 clang -integrated-as -std=c89 -c test.c -o test-x86_32.o -ccc-host-triple i686-none-linux
22 clang -integrated-as -std=c89 -c test.c -o test-x86_64.o -ccc-host-triple x86_64-none-linux
24 clang -integrated-as -std=c89 -c simple-test.c -o simple-test-arm.o -ccc-host-triple armv7-none-linux-gnueabi
25 clang -integrated-as -std=c89 -c simple-test.c -o simple-test-x86_32.o -ccc-host-triple i686-none-linux
26 clang -integrated-as -std=c89 -c simple-test.c -o simple-test-x86_64.o -ccc-host-triple x86_64-none-linux
28 clang -integrated-as -std=c89 -c rodata-test.c -o rodata-test-tegra2.o -ccc-host-triple armv7-none-linux-gnueabi -mcpu=cortex-a9 -mfpu=vfp
29 clang -integrated-as -std=c89 -c rodata-test.c -o rodata-test-arm.o -ccc-host-triple armv7-none-linux-gnueabi
30 clang
[all...]

Completed in 239 milliseconds

12