Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 261) sorted by relevance

1234567891011

/frameworks/ml/bordeaux/learning/multiclass_pa/native/
Dmulticlass_pa.h49 float Score(const std::vector<float>& inputs,
50 const std::vector<float>& parameters) const;
51 float SparseScore(const std::vector<std::pair<int, float> >& inputs,
52 const std::vector<float>& parameters) const;
55 float L2NormSquare(const std::vector<float>& inputs) const;
56 float SparseL2NormSquare(const std::vector<std::pair<int, float> >& inputs) const;
61 virtual float TrainOneExample(const std::vector<float>& inputs, int target);
63 const std::vector<std::pair<int, float> >& inputs, int target);
66 float Train(const std::vector<std::pair<std::vector<float>, int> >& data,
69 const std::vector<std::pair<std::vector<std::pair<int, float> >, int> >& data,
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection.h43 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;
62 std::string mPaddingPrefix;
64 std::string mClassName;
66 std::string mLicenseNote;
[all …]
Dslang_rs_reflection_base.h49 std::string mLicenseNote;
50 std::string mInputFileName;
52 std::string mClassName;
53 std::string mOutputPath;
54 std::string mOutputBCFileName;
56 std::vector< std::string > mText;
57 std::string mIndent;
59 bool openFile(const std::string &name, std::string &errorMsg);
60 void startFile(const std::string &filename);
63 void write(const std::string &t);
[all …]
Dslang_rs_reflection.cpp71 static bool GetClassNameFromFileName(const std::string &FileName, in GetClassNameFromFileName()
72 std::string &ClassName) { in GetClassNameFromFileName()
158 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) { in GetTypeName()
176 std::stringstream VecName; in GetTypeName()
187 std::string ElementTypeName = GetTypeName(CAT->getElementType()); in GetTypeName()
232 static std::string GetBuiltinElementConstruct(const RSExportType *ET) { in GetBuiltinElementConstruct()
234 return std::string("Element.") + ET->getElementName(); in GetBuiltinElementConstruct()
265 const std::string &ClassName, in genScriptClass()
266 std::string &ErrorMsg) { in genScriptClass()
305 C.indent() << "// Constructor" << std::endl; in genScriptClassConstructor()
[all …]
Dslang_rs.h55 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);
132 bool compile(const std::list<std::pair<const char*, const char*> > &IOFiles,
133 const std::list<std::pair<const char*, const char*> > &DepFiles,
134 const std::vector<std::string> &IncludePaths,
[all …]
Dslang.h64 static void LLVMErrorHandler(void *UserData, const std::string &Message);
94 void createTarget(std::string const &Triple, std::string const &CPU,
95 std::vector<std::string> const &Features);
124 std::string mInputFileName;
125 std::string mOutputFileName;
127 std::string mDepOutputFileName;
128 std::string mDepTargetBCFileName;
129 std::vector<std::string> mAdditionalDepTargets;
130 std::vector<std::string> mGeneratedFileNames;
140 std::vector<std::string> mIncludePaths;
[all …]
Dslang_rs_context.h60 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;
105 std::vector<std::string> *GeneratedFileNames);
124 inline void setLicenseNote(const std::string &S) { in setLicenseNote()
[all …]
Dllvm-rs-link.cpp51 static llvm::cl::list<std::string>
55 static llvm::cl::list<std::string>
62 static llvm::cl::list<std::string>
69 std::vector<const char *> &Names) { in GetExportSymbolNames()
97 static bool GetExportSymbols(Module *M, std::vector<const char *> &Names) { in GetExportSymbols()
108 static inline MemoryBuffer *LoadFileIntoMemory(const std::string &F) { in LoadFileIntoMemory()
120 std::string Err; in ParseBitcodeFromMemoryBuffer()
131 static inline Module *LoadBitcodeFile(const std::string &F, in LoadBitcodeFile()
148 const std::vector<std::string> &AdditionalLibs, in PreloadLibraries()
149 std::list<MemoryBuffer *> &LibBitcode) { in PreloadLibraries()
[all …]
Dslang_rs.cpp65 bool SlangRS::reflectToJava(const std::string &OutputPathBase, in reflectToJava()
66 const std::string &OutputPackageName, in reflectToJava()
67 std::string *RealPackageName) { in reflectToJava()
75 bool SlangRS::generateBitcodeAccessor(const std::string &OutputPathBase, in generateBitcodeAccessor()
76 const std::string &PackageName) { in generateBitcodeAccessor()
162 ME->setValue(std::make_pair(ERT, CurInputFile)); in checkODR()
207 std::stringstream RSH; in initPreprocessor()
208 RSH << "#define RS_VERSION " << mTargetAPI << std::endl; in initPreprocessor()
209 RSH << "#include \"rs_core." RS_HEADER_SUFFIX "\"" << std::endl; in initPreprocessor()
264 const std::list<std::pair<const char*, const char*> > &IOFiles, in compile()
[all …]
Dllvm-rs-cc.cpp64 static inline const char *SaveStringInSet(std::set<std::string> &SavedStrings, in SaveStringInSet()
70 std::set<std::string> &SavedStrings);
73 std::set<std::string> &SavedStrings);
109 std::vector<std::string> mIncludePaths;
112 std::string mOutputDir;
120 std::string mTriple;
123 std::string mCPU;
127 std::vector<std::string> mFeatures;
129 std::string mJavaReflectionPathBase;
131 std::string mJavaReflectionPackageName;
[all …]
Dslang_pragma_recorder.h33 typedef std::list< std::pair<std::string, std::string> > PragmaList;
40 std::string &PragmaName);
43 std::string &PragmaValue);
/frameworks/compile/libbcc/lib/ExecutionEngine/
DScriptCompiled.h43 typedef std::list<std::pair<std::string, std::string> > PragmaList;
44 typedef std::list<void*> ExportVarList;
45 typedef std::list<void*> ExportFuncList;
46 typedef std::list<void*> ExportForEachList;
47 typedef std::map<std::string, FuncInfo *> FuncInfoMap;
48 typedef std::list<uint32_t> ObjectSlotList;
57 std::vector<std::string> mExportVarsName;
58 std::vector<std::string> mExportFuncsName;
59 std::vector<std::string> mExportForEachName;
124 void getExportVarNameList(std::vector<std::string> &varList);
[all …]
DMCCacheWriter.h38 std::vector<std::pair<char const *, size_t> > mStringPool;
40 std::map<std::string,
41 std::pair<uint32_t, unsigned char const *> > mDependencies;
53 std::vector<std::string> varNameList;
54 std::vector<std::string> funcNameList;
55 std::vector<std::string> forEachNameList;
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()
DCompiler.cpp109 std::string Compiler::Triple;
112 std::string Compiler::CPU;
114 std::vector<std::string> Compiler::Features;
160 std::string Err; in GlobalInitialization()
210 void Compiler::LLVMErrorHandler(void *UserData, const std::string &Message) { in LLVMErrorHandler()
211 std::string *Error = static_cast<std::string*>(UserData); in LLVMErrorHandler()
249 std::vector<std::string> ExtraFeatures; in compile()
251 std::string FeaturesStr; in compile()
265 std::vector<std::string> &VarNameList = mpResult->mExportVarsName; in compile()
266 std::vector<std::string> &FuncNameList = mpResult->mExportFuncsName; in compile()
[all …]
DCompiler.h61 static std::string Triple;
69 static std::string CPU;
73 static std::vector<std::string> Features;
75 static void LLVMErrorHandler(void *UserData, const std::string &Message);
83 std::string mError;
103 static std::string const &getTargetTriple() { in getTargetTriple()
151 int runInternalPasses(std::vector<std::string>& Names,
152 std::vector<uint32_t>& Signatures);
155 std::vector<const char*>& ExportSymbols,
166 void setError(const std::string &Error) { in setError()
DScript.h75 std::string mCacheDir;
76 std::string mCacheName;
78 inline std::string getCachedObjectPath() const { in getCachedObjectPath()
79 return std::string(mCacheDir + mCacheName + ".o"); in getCachedObjectPath()
82 inline std::string getCacheInfoPath() const { in getCacheInfoPath()
95 std::vector<char const *> mUserDefinedExternalSymbols;
132 std::vector<char const *> const &getUserDefinedExternalSymbols() const { in getUserDefinedExternalSymbols()
186 void getExportVarNameList(std::vector<std::string> &list);
188 void getExportFuncNameList(std::vector<std::string> &list);
190 void getExportForEachNameList(std::vector<std::string> &list);
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h80 explicit ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader);
89 const std::string& vertex_shader,
90 const std::string& fragment_shader);
97 bool Process(const std::vector<const GLFrame*>& inputs, GLFrame* output);
102 bool Process(const std::vector<const GLTextureHandle*>& input,
175 ProgramVar GetUniform(const std::string& name) const;
195 bool SetUniformValue(ProgramVar var, const std::vector<int>& values);
199 bool SetUniformValue(ProgramVar var, const std::vector<float>& values);
204 bool SetUniformValue(const std::string& name, const Value& value);
208 Value GetUniformValue(const std::string& name);
[all …]
Dnative_program.h44 bool OpenLibrary(const std::string& lib_name);
46 bool BindInitFunction(const std::string& func_name);
47 bool BindSetValueFunction(const std::string& func_name);
48 bool BindGetValueFunction(const std::string& func_name);
49 bool BindProcessFunction(const std::string& func_name);
50 bool BindResetFunction(const std::string& func_name);
51 bool BindTeardownFunction(const std::string& func_name);
54 bool CallSetValue(const std::string& key, const std::string& value);
55 std::string CallGetValue(const std::string& key);
56 bool CallProcess(const std::vector<const char*>& inputs,
[all …]
Dnative_program.cpp45 bool NativeProgram::OpenLibrary(const std::string& lib_name) { in OpenLibrary()
57 bool NativeProgram::BindProcessFunction(const std::string& func_name) { in BindProcessFunction()
68 bool NativeProgram::BindInitFunction(const std::string& func_name) { in BindInitFunction()
75 bool NativeProgram::BindSetValueFunction(const std::string& func_name) { in BindSetValueFunction()
82 bool NativeProgram::BindGetValueFunction(const std::string& func_name) { in BindGetValueFunction()
89 bool NativeProgram::BindResetFunction(const std::string& func_name) { in BindResetFunction()
96 bool NativeProgram::BindTeardownFunction(const std::string& func_name) { in BindTeardownFunction()
103 bool NativeProgram::CallProcess(const std::vector<const char*>& inputs, in CallProcess()
104 const std::vector<int>& input_sizes, in CallProcess()
126 bool NativeProgram::CallSetValue(const std::string& key, const std::string& value) { in CallSetValue()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.h41 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 …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.h41 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 …]
/frameworks/compile/mclinker/include/mcld/LD/
DSectionMap.h32 std::string inputSubStr;
33 std::string outputStr;
37 typedef std::vector<struct Mapping> SectionMappingTy;
48 const std::string& getOutputSectName(const std::string& pInput);
51 bool push_back(const std::string& pInput,
52 const std::string& pOutput,
56 iterator find(const std::string& pInput);
59 Mapping* at(const std::string& pInput);
/frameworks/compile/mclinker/include/mcld/ADT/
DStringHash.h41 struct StringHash : public std::unary_function<const llvm::StringRef&, size_t>
53 struct StringHash<RS> : public std::unary_function<const llvm::StringRef&, size_t>
73 struct StringHash<JS> : public std::unary_function<const llvm::StringRef&, size_t>
90 struct StringHash<PJW> : public std::unary_function<const llvm::StringRef&, size_t>
116 struct StringHash<ELF> : public std::unary_function<const llvm::StringRef&, size_t>
137 struct StringHash<BKDR> : public std::unary_function<const llvm::StringRef&, size_t>
156 struct StringHash<SDBM> : public std::unary_function<const llvm::StringRef&, size_t>
173 struct StringHash<DJB> : public std::unary_function<const llvm::StringRef&, size_t>
191 struct StringHash<DEK> : public std::unary_function<const llvm::StringRef&, size_t>
209 struct StringHash<BP> : public std::unary_function<const llvm::StringRef&, size_t>
[all …]
/frameworks/compile/mclinker/lib/LD/
DStaticResolver.cpp85 m_Mesg = std::string("internal error [StaticResolver.cpp:loc 86].\n") + in resolve()
86 std::string("Please report to `mclinker@googlegroups.com'.\n"); in resolve()
113 m_Mesg = std::string("symbol `") + in resolve()
115 std::string("' uses the type, dynamic, size and type in the dynamic symbol."); in resolve()
133 m_Mesg = std::string("common '") + in resolve()
135 std::string("' overriden by previous definition."); in resolve()
145 m_Mesg = std::string("definition of '") + in resolve()
147 std::string("' is overriding common."); in resolve()
171 m_Mesg = std::string("indirect symbol `") + in resolve()
173 std::string("' point to a common symbol.\n"); in resolve()
[all …]
/frameworks/compile/mclinker/include/mcld/Support/
DTargetRegistry.h42 const std::string&);
44 typedef SectLinker *(*SectLinkerCtorTy)(const std::string& pTriple,
49 const std::string&);
63 mcld::LLVMTargetMachine *createTargetMachine(const std::string &pTriple,
64 const std::string &pCPU, const std::string &pFeatures,
80 SectLinker *createSectLinker(const std::string &pTriple, in createSectLinker()
93 TargetLDBackend *createLDBackend(const llvm::Target& T, const std::string& Triple) const { in createLDBackend()
114 typedef std::list<mcld::Target*> TargetListTy;
177 static const mcld::Target *lookupTarget(const std::string &Triple,
178 std::string &Error);
[all …]

1234567891011