/frameworks/compile/slang/ |
H A D | slang_rs_export_var.cpp | 29 RSExportVar::RSExportVar(RSContext *Context, argument 32 : RSExportable(Context, RSExportable::EX_VAR, VD->getLocation()), 45 Initializer->EvaluateAsRValue(mInit, Context->getASTContext()); 49 if (Initializer->isNullPointerConstant(Context->getASTContext(), 53 if (!Initializer->EvaluateAsRValue(mInit, Context->getASTContext())) { 54 Context->ReportError(Initializer->getExprLoc(), 64 Context->ReportError(VD->getLocation(), 75 Context->getASTContext())) { 76 Context->ReportError(IList->getInit(i)->getExprLoc(), 85 Context [all...] |
H A D | llvm-rs-as.cpp | 114 LLVMContext Context; local 132 std::unique_ptr<Module> M(parseAssemblyFile(InputFilename, Err, Context));
|
H A D | slang_rs_check_ast.h | 32 slang::RSContext *Context; member in class:slang::RSCheckAST 51 : Context(Con),
|
H A D | slang_rs_pragma_handler.h | 38 RSPragmaHandler(llvm::StringRef Name, RSContext *Context) argument 40 mContext(Context) {
|
H A D | slang_rs_special_func.cpp | 55 slang::RSContext *Context, 57 slangAssert(Context && FD); 68 Context->ReportError(PVD->getLocation(), 78 Context->ReportError(FD->getLocation(), 85 Context->ReportError(FD->getLocation(), 93 Context->ReportError(FD->getLocation(), 54 validateSpecialFuncDecl(unsigned int targetAPI, slang::RSContext *Context, clang::FunctionDecl const *FD) argument
|
H A D | slang_rs_export_func.h | 49 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, argument 51 : RSExportable(Context, RSExportable::EX_FUNC, FD->getLocation()), 57 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD); 61 Context->getMangleContext().mangleName(FD, BufStm); 67 static RSExportFunc *Create(RSContext *Context,
|
H A D | slang_rs_export_element.cpp | 71 RSExportType *RSExportElement::Create(RSContext *Context, argument 84 if (!RSExportType::NormalizeType(T, TypeName, Context, nullptr, 94 RSExportPrimitiveType::Create(Context, 107 RSExportVectorType::Create(Context, 131 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context, argument 141 return RSExportType::Create(Context, T, NotLegacyKernelArgument); 161 return RSExportType::Create(Context, T, NotLegacyKernelArgument); 163 return RSExportElement::Create(Context, T, EI);
|
H A D | slang_rs_export_func.cpp | 35 static bool ValidateFuncDecl(slang::RSContext *Context, argument 37 slangAssert(Context && FD); 40 Context->ReportError( 50 RSExportFunc *RSExportFunc::Create(RSContext *Context, argument 57 if (!ValidateFuncDecl(Context, FD)) { 61 F = new RSExportFunc(Context, Name, FD); 67 clang::ASTContext &Ctx = Context->getASTContext(); 108 RSExportType::Create(Context, T.getTypePtr(), NotLegacyKernelArgument);
|
H A D | slang_rs_exportable.h | 43 RSExportable(RSContext *Context, RSExportable::Kind K, clang::SourceLocation Loc) argument 44 : mContext(Context), 47 Context->newExportable(this);
|
H A D | slang_rs_export_foreach.cpp | 55 RSContext *Context, const clang::FunctionDecl *FD) { 56 slangAssert(Context && FD); 61 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) { 64 Context->ReportError(FD->getLocation(), 77 valid &= validateAndConstructKernelParams(Context, FD); 79 valid &= validateAndConstructOldStyleParams(Context, FD); 82 valid &= setSignatureMetadata(Context, FD); 87 RSContext *Context, const clang::FunctionDecl *FD) { 88 slangAssert(Context && FD); 95 clang::ASTContext &C = Context 54 validateAndConstructParams( RSContext *Context, const clang::FunctionDecl *FD) argument 86 validateAndConstructOldStyleParams( RSContext *Context, const clang::FunctionDecl *FD) argument 164 validateAndConstructKernelParams( RSContext *Context, const clang::FunctionDecl *FD) argument 253 processSpecialParameters( RSContext *Context, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter) argument 268 setSignatureMetadata(RSContext *Context, const clang::FunctionDecl *FD) argument 309 Create(RSContext *Context, const clang::FunctionDecl *FD) argument 426 CreateDummyRoot(RSContext *Context) argument [all...] |
H A D | slang_rs_special_kernel_param.cpp | 97 slang::RSContext *Context, 105 clang::ASTContext &C = Context->getASTContext(); 129 Context->ReportError( 141 Context->ReportError(PVD->getLocation(), 146 << listSpecialKernelParameters(Context->getTargetAPI()); 155 if (Context->getTargetAPI() < SP.minAPI) { 156 Context->ReportError(PVD->getLocation(), 167 Context->ReportError( 182 Context->ReportError(PVD->getLocation(), 192 Context 96 processSpecialKernelParameters( slang::RSContext *Context, const std::function<std::string ()> &DiagnosticDescription, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter, unsigned int *SignatureMetadata) argument [all...] |
H A D | slang_rs_export_foreach.h | 75 RSExportForEach(RSContext *Context, const llvm::StringRef &Name, clang::SourceLocation Loc) argument 76 : RSExportable(Context, RSExportable::EX_FOREACH, Loc), 85 bool validateAndConstructParams(RSContext *Context, 88 bool validateAndConstructOldStyleParams(RSContext *Context, 91 bool validateAndConstructKernelParams(RSContext *Context, 94 bool processSpecialParameters(RSContext *Context, 98 bool setSignatureMetadata(RSContext *Context, 101 static RSExportForEach *Create(RSContext *Context, 104 static RSExportForEach *CreateDummyRoot(RSContext *Context);
|
H A D | slang_rs_export_reduce.h | 80 RSExportReduce(RSContext *Context, argument 88 : RSExportable(Context, RSExportable::EX_REDUCE, Location), 133 static RSExportReduce *Create(RSContext *Context,
|
H A D | slang_rs_pragma_handler.cpp | 48 RSExportTypePragmaHandler(llvm::StringRef Name, RSContext *Context) argument 49 : RSPragmaHandler(Name, Context) { } 60 RSJavaPackageNamePragmaHandler(llvm::StringRef Name, RSContext *Context) argument 61 : RSPragmaHandler(Name, Context) { } 129 RSReducePragmaHandler(llvm::StringRef Name, RSContext *Context) argument 130 : RSPragmaHandler(Name, Context) { } 351 RSReflectLicensePragmaHandler(llvm::StringRef Name, RSContext *Context) argument 352 : RSPragmaHandler(Name, Context) { } 381 RSVersionPragmaHandler(llvm::StringRef Name, RSContext *Context) argument 382 : RSPragmaHandler(Name, Context) { } 396 RSPrecisionPragmaHandler(llvm::StringRef Name, RSContext *Context) argument [all...] |
/frameworks/rs/rsov/compiler/ |
H A D | Context.cpp | 17 #include "Context.h" 30 Context &Context::getInstance() { 31 static Context c; 35 Context::Context() : mInitialized(false) {} function in class:rs2spirv::Context 37 bool Context::Initialize(std::unique_ptr<bcinfo::MetadataExtractor> ME) { 70 void Context::addExportVarIndex(const char *varName, uint32_t index) {
|
H A D | rs2spirv.cpp | 34 #include "Context.h" 64 static bool WriteBitcode(rs2spirv::Context &Ctxt, Module *M, 76 LLVMContext Context; local 85 getStreamedBitcodeModule(InputFile, std::move(DS), Context); 105 rs2spirv::Context &Ctxt = rs2spirv::Context::getInstance();
|
H A D | Context.h | 52 class Context { class in namespace:rs2spirv 56 static Context &getInstance(); 58 Context();
|
/frameworks/compile/libbcc/lib/ |
H A D | RSX86TranslateGEPPass.cpp | 40 llvm::LLVMContext *Context; member in class:__anon1215::RSX86TranslateGEPPass 86 llvm::Type::getInt32Ty(*Context), EltOffset); 91 llvm::Type::getInt32Ty(*Context), 107 llvm::Type::getInt8PtrTy(*Context), 114 llvm::Type::getInt8Ty(*Context), Int8Ptr, llvm::makeArrayRef(Indices), 138 Context = &F.getParent()->getContext();
|
H A D | RSCompilerDriver.cpp | 304 BCCContext& Context, const char* pOutputFilepath, const char* pRuntimePath, 325 llvm::LLVMContext& context = Context.getLLVMContext(); 375 if (!fuseKernels(Context, sourcesToFuse, slots, nameOfFused, &module)) { 391 if (!renameInvoke(Context, source, slot, newName, &module)) { 401 Source::CreateFromModule(Context, pOutputFilepath, module, 303 buildScriptGroup( BCCContext& Context, const char* pOutputFilepath, const char* pRuntimePath, const char* pRuntimeRelaxedPath, bool dumpIR, const char* buildChecksum, const std::vector<Source*>& sources, const std::list<std::list<std::pair<int, int>>>& toFuse, const std::list<std::string>& fused, const std::list<std::list<std::pair<int, int>>>& invokes, const std::list<std::string>& invokeBatchNames) argument
|
H A D | RSScriptGroupFusion.cpp | 78 // The whitelist of supported signature bits. Context or user data arguments are 133 llvm::FunctionType* getFusedFuncType(bcc::BCCContext& Context, argument 154 llvm::Type* I32Ty = llvm::IntegerType::get(Context.getLLVMContext(), 32); 176 bool fuseKernels(bcc::BCCContext& Context, argument 186 getFusedFuncType(Context, sources, slots, mergedModule, &fusedFunctionSignature); 195 llvm::LLVMContext& ctxt = Context.getLLVMContext(); 319 bool renameInvoke(BCCContext& Context, const Source* source, const int slot, argument 336 llvm::BasicBlock* block = llvm::BasicBlock::Create(Context.getLLVMContext(),
|
/frameworks/compile/libbcc/tools/bcc_strip_attr/ |
H A D | bcc_strip_attr.cpp | 98 LLVMContext& Context) { 100 std::unique_ptr<Module> Result = parseIRFile(FN, Err, Context); 115 LLVMContext Context; local 121 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context)); 96 LoadFile(const char *argv0, const std::string &FN, LLVMContext& Context) argument
|
/frameworks/base/tools/aapt2/ |
H A D | StringPool.h | 55 class Context { class in class:aapt::StringPool 65 Context() = default; 66 Context(uint32_t p, const ConfigDescription& c) : priority(p), config(c) {} function in class:aapt::StringPool::Context 67 explicit Context(uint32_t p) : priority(p) {} function in class:aapt::StringPool::Context 68 explicit Context(const ConfigDescription& c) : priority(kNormalPriority), config(c) { function in class:aapt::StringPool::Context 87 const Context& GetContext() const; 112 const Context& GetContext() const; 125 Context context; 145 Context context; 169 Ref MakeRef(const android::StringPiece& str, const Context [all...] |
/frameworks/base/tools/aapt2/test/ |
H A D | Context.h | 34 class Context : public IAaptContext { class in namespace:aapt::test 36 Context() : name_mangler_({}), symbols_(&name_mangler_), min_sdk_version_(0) {} function in class:aapt::test::Context 85 DISALLOW_COPY_AND_ASSIGN(Context); 130 std::unique_ptr<Context> Build() { return std::move(context_); } 133 std::unique_ptr<Context> context_ = std::unique_ptr<Context>(new Context());
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Convert.cpp | 273 class Context : public IAaptContext { class in namespace:aapt 275 Context() : mangler_({}), symbols_(&mangler_) { function in class:aapt::Context 317 DISALLOW_COPY_AND_ASSIGN(Context); 329 Context context;
|
/frameworks/compile/libbcc/tools/bcc/ |
H A D | Main.cpp | 197 bool compileScriptGroup(BCCContext& Context, RSCompilerDriver& RSCD) { argument 201 bcc::Source::CreateFromFile(Context, OptInputFilenames[i]); 222 Context, outputFilepath.c_str(), OptBCLibFilename.c_str(),
|