/frameworks/compile/slang/ |
D | slang_rs_reflection.h | 43 std::string mLastError; 44 std::vector<std::string> *mGeneratedFileNames; 46 inline void setError(const std::string &Error) { mLastError = Error; } in setError() 56 std::string mOutputPathBase; 58 std::string mInputRSFile; 60 std::string mPackageName; 61 std::string mResourceId; 63 std::string mClassName; 65 std::string mLicenseNote; 67 std::string mIndent; [all …]
|
D | slang_rs.h | 55 std::vector<std::string> mGeneratedFileNames; 63 typedef std::pair<RSExportRecordType*, const char*> ReflectedDefinitionTy; 68 bool reflectToJava(const std::string &OutputPathBase, 69 const std::string &OutputPackageName, 70 std::string *RealPackageName); 72 bool generateBitcodeAccessor(const std::string &OutputPathBase, 73 const std::string &PackageName); 127 bool compile(const std::list<std::pair<const char*, const char*> > &IOFiles, 128 const std::list<std::pair<const char*, const char*> > &DepFiles, 129 const std::vector<std::string> &IncludePaths, [all …]
|
D | slang.h | 60 static void LLVMErrorHandler(void *UserData, const std::string &Message); 89 void createTarget(const std::string &Triple, const std::string &CPU, 90 const std::vector<std::string> &Features); 115 std::string mInputFileName; 116 std::string mOutputFileName; 118 std::string mDepOutputFileName; 119 std::string mDepTargetBCFileName; 120 std::vector<std::string> mAdditionalDepTargets; 121 std::vector<std::string> mGeneratedFileNames; 130 std::vector<std::string> mIncludePaths; [all …]
|
D | slang_rs_reflection.cpp | 63 static bool GetClassNameFromFileName(const std::string &FileName, in GetClassNameFromFileName() 64 std::string &ClassName) { in GetClassNameFromFileName() 320 static std::string GetTypeName(const RSExportType *ET) { in GetTypeName() 344 std::string ElementTypeName = GetTypeName(CAT->getElementType()); in GetTypeName() 609 const std::string &ClassName, in genScriptClass() 610 std::string &ErrorMsg) { in genScriptClass() 649 C.indent() << "// Constructor" << std::endl; in genScriptClassConstructor() 659 C.indent() << "super(rs, resources, id);" << std::endl; in genScriptClassConstructor() 691 for (std::set<std::string>::iterator I = C.mTypesToCheck.begin(), in genScriptClassConstructor() 695 C.indent() << "private Element __" << *I << ";" << std::endl; in genScriptClassConstructor() [all …]
|
D | slang_rs_context.h | 60 typedef std::list<RSExportable*> ExportableList; 61 typedef std::list<RSExportVar*> ExportVarList; 62 typedef std::list<RSExportFunc*> ExportFuncList; 63 typedef std::list<RSExportForEach*> ExportForEachList; 72 std::vector<std::string> *mGeneratedFileNames; 81 std::string *mLicenseNote; 82 std::string mReflectJavaPackageName; 83 std::string mReflectJavaPathName; 103 std::vector<std::string> *GeneratedFileNames); 122 inline void setLicenseNote(const std::string &S) { in setLicenseNote() [all …]
|
D | llvm-rs-link.cpp | 48 static llvm::cl::list<std::string> 52 static llvm::cl::list<std::string> 59 static llvm::cl::list<std::string> 66 std::vector<const char *> &Names) { in GetExportSymbolNames() 94 static bool GetExportSymbols(Module *M, std::vector<const char *> &Names) { in GetExportSymbols() 105 static inline MemoryBuffer *LoadFileIntoMemory(const std::string &F) { in LoadFileIntoMemory() 117 std::string Err; in ParseBitcodeFromMemoryBuffer() 128 static inline Module *LoadBitcodeFile(const std::string &F, in LoadBitcodeFile() 145 const std::vector<std::string> &AdditionalLibs, in PreloadLibraries() 146 std::list<MemoryBuffer *> &LibBitcode) { in PreloadLibraries() [all …]
|
D | llvm-rs-cc.cpp | 61 static inline const char *SaveStringInSet(std::set<std::string> &SavedStrings, in SaveStringInSet() 67 std::set<std::string> &SavedStrings); 70 std::set<std::string> &SavedStrings); 106 std::vector<std::string> mIncludePaths; 109 std::string mOutputDir; 117 std::string mTriple; 120 std::string mCPU; 124 std::vector<std::string> mFeatures; 126 std::string mJavaReflectionPathBase; 128 std::string mJavaReflectionPackageName; [all …]
|
D | slang_rs.cpp | 59 bool SlangRS::reflectToJava(const std::string &OutputPathBase, in reflectToJava() 60 const std::string &OutputPackageName, in reflectToJava() 61 std::string *RealPackageName) { in reflectToJava() 69 bool SlangRS::generateBitcodeAccessor(const std::string &OutputPathBase, in generateBitcodeAccessor() 70 const std::string &PackageName) { in generateBitcodeAccessor() 156 ME->setValue(std::make_pair(ERT, CurInputFile)); in checkODR() 198 std::stringstream RSH; in initPreprocessor() 199 RSH << "#define RS_VERSION " << mTargetAPI << std::endl; in initPreprocessor() 200 RSH << "#include \"rs_core." RS_HEADER_SUFFIX "\"" << std::endl; in initPreprocessor() 259 const std::list<std::pair<const char*, const char*> > &IOFiles, in compile() [all …]
|
D | slang_pragma_recorder.h | 33 typedef std::list< std::pair<std::string, std::string> > PragmaList; 40 std::string &PragmaName); 43 std::string &PragmaValue);
|
D | slang.cpp | 79 if (std::getenv("bar") != reinterpret_cast<char*>(-1)) in ForceSlangLinking() 119 std::string* Error, in OpenOutputFile() 166 void Slang::LLVMErrorHandler(void *UserData, const std::string &Message) { in LLVMErrorHandler() 180 void Slang::createTarget(const std::string &Triple, const std::string &CPU, in createTarget() 181 const std::vector<std::string> &Features) { in createTarget() 224 std::vector<clang::DirectoryLookup> SearchList; in createPreprocessor() 273 void Slang::init(const std::string &Triple, const std::string &CPU, in init() 274 const std::vector<std::string> &Features) { in init() 329 std::string Error; in setOutput() 367 std::string Error; in setDepOutput() [all …]
|
D | slang_rs_metadata_spec_encoder.cpp | 63 typedef std::map</* key */unsigned, unsigned/* index */> TypesMapTy; 65 std::list<unsigned> mEncodedRSTypeInfo; // simply a sequece of integers 69 typedef std::map</* name */std::string, unsigned/* index */> RecordTypesMapTy; 72 typedef std::map<std::string, unsigned/* index */> StringsMapTy; 74 std::list<const char*> mEncodedStrings; 91 unsigned joinString(const std::string &S); 131 unsigned RSMetadataEncoderInternal::joinString(const std::string &S) { in joinString() 138 std::pair<StringsMapTy::iterator, bool> Res = in joinString() 139 mStrings.insert(std::make_pair(S, mCurStringIndex)); in joinString() 165 std::pair<TypesMapTy::iterator, bool> Res = in encodeTypeBaseAsKey() [all …]
|
D | slang_rs_reflect_utils.h | 51 static std::string GetFileNameStem(const char* fileName); 56 static std::string ComputePackagedPath(const char *prefixPath, 64 static std::string JavaClassNameFromRSFileName(const char *rsFileName); 75 static std::string BCFileNameFromRSFileName(const char *rsFileName);
|
D | slang_rs_context.cpp | 53 std::vector<std::string> *GeneratedFileNames) in RSContext() 249 bool RSContext::reflectToJava(const std::string &OutputPathBase, in reflectToJava() 250 const std::string &OutputPackageName, in reflectToJava() 251 const std::string &InputFileName, in reflectToJava() 252 const std::string &OutputBCFileName, in reflectToJava() 253 std::string *RealPackageName) { in reflectToJava() 257 const std::string &PackageName = in reflectToJava() 261 std::cerr << "Error: Missing \"#pragma rs " in reflectToJava() 263 << InputFileName << std::endl; in reflectToJava()
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
D | ScriptCompiled.h | 41 typedef std::list<std::pair<std::string, std::string> > PragmaList; 42 typedef std::list<void*> ExportVarList; 43 typedef std::list<void*> ExportFuncList; 44 typedef std::map<std::string, FuncInfo *> FuncInfoMap; 45 typedef std::list<uint32_t> ObjectSlotList; 54 std::vector<std::string> mExportVarsName; 55 std::vector<std::string> mExportFuncsName; 125 void getExportVarNameList(std::vector<std::string> &varList); 127 void getExportFuncNameList(std::vector<std::string> &funcList); 139 std::vector<char const *> const & getUserDefinedExternalSymbols() const { in getUserDefinedExternalSymbols()
|
D | MCCacheWriter.h | 38 std::vector<std::pair<char const *, size_t> > mStringPool; 40 std::map<std::string, 41 std::pair<uint32_t, unsigned char const *> > mDependencies; 52 std::vector<std::string> varNameList; 53 std::vector<std::string> funcNameList; 68 std::string const &resName, in addDependency() 70 mDependencies.insert(std::make_pair(resName, in addDependency() 71 std::make_pair((uint32_t)resType, sha1))); in addDependency() 90 mStringPool.push_back(std::make_pair(str, size)); in addString()
|
D | Script.h | 63 std::string mCacheDir; 64 std::string mCacheName; 76 std::vector<char const *> mUserDefinedExternalSymbols; 112 std::vector<char const *> const &getUserDefinedExternalSymbols() const { in getUserDefinedExternalSymbols() 143 void getExportVarNameList(std::vector<std::string> &list); 145 void getExportFuncNameList(std::vector<std::string> &list);
|
D | Compiler.h | 64 static std::string Triple; 71 static std::string CPU; 75 static std::vector<std::string> Features; 77 static void LLVMErrorHandler(void *UserData, const std::string &Message); 91 std::string mError; 122 static std::string const &getTargetTriple() { in getTargetTriple() 190 void setError(const std::string &Error) { in setError()
|
D | MCCacheReader.h | 52 std::map<std::string, 53 std::pair<uint32_t, unsigned char const *> > mDependencies; 71 std::string const &resName, in addDependency() 73 mDependencies.insert(std::make_pair(resName, in addDependency() 74 std::make_pair((uint32_t)resType, sha1))); in addDependency()
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
D | BitcodeReader.h | 41 std::vector<WeakVH> ValuePtrs; 50 typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy; 100 std::vector<WeakVH> MDValuePtrs; 139 std::vector<Type*> TypeList; 144 std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInits; 145 std::vector<std::pair<GlobalAlias*, unsigned> > AliasInits; 150 std::vector<AttrListPtr> MAttributes; 154 std::vector<BasicBlock*> FunctionBBs; 158 std::vector<Function*> FunctionsWithBodies; 162 typedef std::vector<std::pair<Function*, Function*> > UpgradedIntrinsicMap; [all …]
|
D | BitReader_2_7.h | 38 std::string *ErrMsg); 40 std::string getBitcodeTargetTriple(llvm::MemoryBuffer *Buffer, 42 std::string *ErrMsg); 46 std::string *ErrMsg);
|
/frameworks/compile/linkloader/tests/images/ |
D | gen-test-elf.sh | 19 clang -integrated-as -std=c89 -c test.c -o test-tegra2.o -ccc-host-triple armv7-none-linux-gnueabi … 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-lin… 25 clang -integrated-as -std=c89 -c simple-test.c -o simple-test-x86_32.o -ccc-host-triple i686-none-l… 26 clang -integrated-as -std=c89 -c simple-test.c -o simple-test-x86_64.o -ccc-host-triple x86_64-none… 28 clang -integrated-as -std=c89 -c rodata-test.c -o rodata-test-tegra2.o -ccc-host-triple armv7-none-… 29 clang -integrated-as -std=c89 -c rodata-test.c -o rodata-test-arm.o -ccc-host-triple armv7-none-lin… 30 clang -integrated-as -std=c89 -c rodata-test.c -o rodata-test-x86_32.o -ccc-host-triple i686-none-l… [all …]
|
/frameworks/compile/libbcc/lib/ExecutionEngine/OldJIT/ |
D | CacheWriter.h | 39 std::vector<std::pair<char const *, size_t> > mStringPool; 41 std::map<std::string, 42 std::pair<uint32_t, unsigned char const *> > mDependencies; 70 std::string const &resName, in addDependency() 72 mDependencies.insert(std::make_pair(resName, in addDependency() 73 std::make_pair((uint32_t)resType, sha1))); in addDependency() 93 mStringPool.push_back(std::make_pair(str, size)); in addString()
|
D | CacheReader.h | 50 std::map<std::string, 51 std::pair<uint32_t, unsigned char const *> > mDependencies; 65 std::string const &resName, in addDependency() 67 mDependencies.insert(std::make_pair(resName, in addDependency() 68 std::make_pair((uint32_t)resType, sha1))); in addDependency()
|
/frameworks/compile/linkloader/utils/ |
D | serialize.h | 41 std::swap(array[0], array[1]); in swap_byte_order() 45 std::swap(array[0], array[3]); in swap_byte_order() 46 std::swap(array[1], array[2]); in swap_byte_order() 50 std::swap(array[0], array[7]); in swap_byte_order() 51 std::swap(array[1], array[6]); in swap_byte_order() 52 std::swap(array[2], array[5]); in swap_byte_order() 53 std::swap(array[3], array[4]); in swap_byte_order()
|
/frameworks/compile/slang/BitWriter_2_9/ |
D | ValueEnumerator.h | 38 typedef std::vector<Type*> TypeList; 41 typedef std::vector<std::pair<const Value*, unsigned> > ValueList; 56 std::vector<AttrListPtr> Attributes; 68 std::vector<const BasicBlock*> BasicBlocks; 117 const std::vector<const BasicBlock*> &getBasicBlocks() const { in getBasicBlocks() 120 const std::vector<AttrListPtr> &getAttributes() const { in getAttributes()
|