Lines Matching refs:Out

31 static Error intFromJsonTemplate(const json::Value &V, T &Out) {  in intFromJsonTemplate()  argument
37 Out = Value; in intFromJsonTemplate()
43 static Error fromJson(const json::Value &V, bool &Out) { in fromJson() argument
45 Out = *B; in fromJson()
51 static Error fromJson(const json::Value &V, double &Out) { in fromJson() argument
53 Out = *S; in fromJson()
59 static Error fromJson(const json::Value &V, std::string &Out) { in fromJson() argument
61 Out = std::string(*S); in fromJson()
67 static Error fromJson(const json::Value &V, uint32_t &Out) { in fromJson() argument
68 return intFromJsonTemplate(V, Out); in fromJson()
71 static Error fromJson(const json::Value &V, int &Out) { in fromJson() argument
72 return intFromJsonTemplate(V, Out); in fromJson()
82 static Error fromJson(const json::Value &V, MaybeAlign &Out) { in fromJson() argument
89 Out = None; in fromJson()
93 Out = Align(Value); in fromJson()
101 libc_benchmarks::BenchmarkLog &Out) { in fromJson() argument
117 Out = *Parsed; in fromJson()
122 Error vectorFromJsonTemplate(const json::Value &V, C &Out) { in vectorFromJsonTemplate() argument
126 Out.clear(); in vectorFromJsonTemplate()
127 Out.resize(A->size()); in vectorFromJsonTemplate()
128 for (auto InOutPair : llvm::zip(*A, Out)) in vectorFromJsonTemplate()
135 static Error fromJson(const json::Value &V, std::vector<T> &Out) { in fromJson() argument
136 return vectorFromJsonTemplate(V, Out); in fromJson()
163 template <typename T> void map(StringRef Key, T &Out) { in map() argument
168 E = fromJson(*Value, Out); in map()
174 libc_benchmarks::BenchmarkOptions &Out) { in fromJson() argument
176 O.map("MinDuration", Out.MinDuration); in fromJson()
177 O.map("MaxDuration", Out.MaxDuration); in fromJson()
178 O.map("InitialIterations", Out.InitialIterations); in fromJson()
179 O.map("MaxIterations", Out.MaxIterations); in fromJson()
180 O.map("MinSamples", Out.MinSamples); in fromJson()
181 O.map("MaxSamples", Out.MaxSamples); in fromJson()
182 O.map("Epsilon", Out.Epsilon); in fromJson()
183 O.map("ScalingFactor", Out.ScalingFactor); in fromJson()
184 O.map("Log", Out.Log); in fromJson()
189 libc_benchmarks::StudyConfiguration &Out) { in fromJson() argument
191 O.map("Function", Out.Function); in fromJson()
192 O.map("NumTrials", Out.NumTrials); in fromJson()
193 O.map("IsSweepMode", Out.IsSweepMode); in fromJson()
194 O.map("SweepModeMaxSize", Out.SweepModeMaxSize); in fromJson()
195 O.map("SizeDistributionName", Out.SizeDistributionName); in fromJson()
196 O.map("AccessAlignment", Out.AccessAlignment); in fromJson()
197 O.map("MemcmpMismatchAt", Out.MemcmpMismatchAt); in fromJson()
201 static Error fromJson(const json::Value &V, libc_benchmarks::CacheInfo &Out) { in fromJson() argument
203 O.map("Type", Out.Type); in fromJson()
204 O.map("Level", Out.Level); in fromJson()
205 O.map("Size", Out.Size); in fromJson()
206 O.map("NumSharing", Out.NumSharing); in fromJson()
210 static Error fromJson(const json::Value &V, libc_benchmarks::HostState &Out) { in fromJson() argument
212 O.map("CpuName", Out.CpuName); in fromJson()
213 O.map("CpuFrequency", Out.CpuFrequency); in fromJson()
214 O.map("Caches", Out.Caches); in fromJson()
218 static Error fromJson(const json::Value &V, libc_benchmarks::Runtime &Out) { in fromJson() argument
220 O.map("Host", Out.Host); in fromJson()
221 O.map("BufferSize", Out.BufferSize); in fromJson()
222 O.map("BatchParameterCount", Out.BatchParameterCount); in fromJson()
223 O.map("BenchmarkOptions", Out.BenchmarkOptions); in fromJson()
227 static Error fromJson(const json::Value &V, libc_benchmarks::Study &Out) { in fromJson() argument
229 O.map("StudyName", Out.StudyName); in fromJson()
230 O.map("Runtime", Out.Runtime); in fromJson()
231 O.map("Configuration", Out.Configuration); in fromJson()
232 O.map("Measurements", Out.Measurements); in fromJson()