/external/tensorflow/tensorflow/lite/kernels/ |
D | cpu_backend_gemm_ruy.h | 30 inline ruy::CachePolicy ToRuyCachePolicy(CachePolicy cache_policy) { in ToRuyCachePolicy() 32 case CachePolicy::kNeverCache: in ToRuyCachePolicy() 33 return ruy::CachePolicy::kNeverCache; in ToRuyCachePolicy() 34 case CachePolicy::kCacheIfLargeSpeedup: in ToRuyCachePolicy() 35 return ruy::CachePolicy::kCacheIfLargeSpeedup; in ToRuyCachePolicy() 36 case CachePolicy::kAlwaysCache: in ToRuyCachePolicy() 37 return ruy::CachePolicy::kAlwaysCache; in ToRuyCachePolicy() 40 return ruy::CachePolicy::kNeverCache; in ToRuyCachePolicy()
|
D | cpu_backend_gemm_params.h | 32 enum class CachePolicy : std::uint8_t { enum 38 inline CachePolicy DefaultCachePolicy(bool is_constant_data) { in DefaultCachePolicy() 39 return is_constant_data ? CachePolicy::kCacheIfLargeSpeedup in DefaultCachePolicy() 40 : CachePolicy::kNeverCache; in DefaultCachePolicy() 67 CachePolicy cache_policy = CachePolicy::kNeverCache;
|
/external/ruy/ruy/ |
D | prepare_packed_matrices.cc | 38 const CachePolicy cache_policy = params.src[side].cache_policy; in ShouldCache() 46 case CachePolicy::kNeverCache: in ShouldCache() 48 case CachePolicy::kAlwaysCache: in ShouldCache() 50 case CachePolicy::kCacheIfLargeSpeedup: in ShouldCache() 56 case CachePolicy::kCacheIfSignificantSpeedup: in ShouldCache()
|
D | matrix.h | 117 enum class CachePolicy : std::uint8_t { enum 149 CachePolicy cache_policy() const { return cache_policy_; } in cache_policy() 150 void set_cache_policy(CachePolicy value) { cache_policy_ = value; } in set_cache_policy() 166 CachePolicy cache_policy_ = CachePolicy::kNeverCache;
|
D | prepacked_cache_test.cc | 229 void TestCachePolicies(CachePolicy cache_policy, bool expected_cached) { in TestCachePolicies() 263 for (CachePolicy cache_policy : in TEST() 264 {CachePolicy::kNeverCache, CachePolicy::kCacheIfLargeSpeedup, in TEST() 265 CachePolicy::kCacheIfSignificantSpeedup, CachePolicy::kAlwaysCache}) { in TEST() 267 cache_policy != CachePolicy::kNeverCache); in TEST() 292 lhs.set_cache_policy(CachePolicy::kAlwaysCache); in TEST()
|
D | matrix_test.cc | 73 EXPECT_EQ(matrix.cache_policy(), CachePolicy::kNeverCache); in TEST() 81 matrix.set_cache_policy(CachePolicy::kAlwaysCache); in TEST() 88 EXPECT_EQ(matrix.cache_policy(), CachePolicy::kAlwaysCache); in TEST()
|
D | mat.h | 129 CachePolicy cache_policy = CachePolicy::kNeverCache; 241 CachePolicy cache_policy = CachePolicy::kNeverCache;
|
D | trace.h | 458 if (matrix.cache_policy() != CachePolicy::kNeverCache) { in RUY_IMPL_STR_TYPE() 483 if (mat.cache_policy != CachePolicy::kNeverCache) { in str()
|
D | test.h | 1743 lhs.matrix.set_cache_policy(CachePolicy::kAlwaysCache); 1746 rhs.matrix.set_cache_policy(CachePolicy::kAlwaysCache);
|
/external/ruy/example/ |
D | parametrized_example.cc | 104 lhs.set_cache_policy(static_cast<ruy::CachePolicy>(params.lhs_cache_policy)); in run() 105 rhs.set_cache_policy(static_cast<ruy::CachePolicy>(params.rhs_cache_policy)); in run()
|
/external/crosvm/devices/src/virtio/fs/ |
D | passthrough.rs | 366 pub enum CachePolicy { enum 383 impl FromStr for CachePolicy { implementation 388 "never" | "Never" | "NEVER" => Ok(CachePolicy::Never), in from_str() 389 "auto" | "Auto" | "AUTO" => Ok(CachePolicy::Auto), in from_str() 390 "always" | "Always" | "ALWAYS" => Ok(CachePolicy::Always), in from_str() 396 impl Default for CachePolicy { implementation 398 CachePolicy::Auto in default() 421 pub cache_policy: CachePolicy, 731 CachePolicy::Never => opts.set( in do_open() 735 CachePolicy::Always => { in do_open() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPURegisterBankInfo.cpp | 1345 static unsigned extractGLC(unsigned CachePolicy) { in extractGLC() argument 1346 return CachePolicy & 1; in extractGLC() 1349 static unsigned extractSLC(unsigned CachePolicy) { in extractSLC() argument 1350 return (CachePolicy >> 1) & 1; in extractSLC() 1353 static unsigned extractDLC(unsigned CachePolicy) { in extractDLC() argument 1354 return (CachePolicy >> 2) & 1; in extractDLC() 1382 unsigned CachePolicy = MI.getOperand(5).getImm(); in selectStoreIntrinsic() local 1421 .addImm(extractGLC(CachePolicy)) in selectStoreIntrinsic() 1422 .addImm(extractSLC(CachePolicy)) in selectStoreIntrinsic() 1424 .addImm(extractDLC(CachePolicy)) in selectStoreIntrinsic()
|
D | SIISelLowering.cpp | 5211 static bool parseCachePolicy(SDValue CachePolicy, SelectionDAG &DAG, in parseCachePolicy() argument 5213 auto CachePolicyConst = cast<ConstantSDNode>(CachePolicy.getNode()); in parseCachePolicy() 5216 SDLoc DL(CachePolicy); in parseCachePolicy() 5712 unsigned CachePolicy = cast<ConstantSDNode>(GLC)->getZExtValue(); in lowerSBuffer() local 5720 DAG.getTargetConstant(CachePolicy, DL, MVT::i32), // cachepolicy in lowerSBuffer()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPURegisterBankInfo.cpp | 1766 static unsigned extractGLC(unsigned CachePolicy) { in extractGLC() argument 1767 return CachePolicy & 1; in extractGLC() 1770 static unsigned extractSLC(unsigned CachePolicy) { in extractSLC() argument 1771 return (CachePolicy >> 1) & 1; in extractSLC() 1774 static unsigned extractDLC(unsigned CachePolicy) { in extractDLC() argument 1775 return (CachePolicy >> 2) & 1; in extractDLC() 1803 unsigned CachePolicy = MI.getOperand(5).getImm(); in selectStoreIntrinsic() local 1842 .addImm(extractGLC(CachePolicy)) in selectStoreIntrinsic() 1843 .addImm(extractSLC(CachePolicy)) in selectStoreIntrinsic() 1845 .addImm(extractDLC(CachePolicy)) in selectStoreIntrinsic()
|
D | SIISelLowering.h | 64 SDValue CachePolicy, SelectionDAG &DAG) const;
|
D | SIISelLowering.cpp | 5819 static bool parseCachePolicy(SDValue CachePolicy, SelectionDAG &DAG, in parseCachePolicy() argument 5821 auto CachePolicyConst = cast<ConstantSDNode>(CachePolicy.getNode()); in parseCachePolicy() 5824 SDLoc DL(CachePolicy); in parseCachePolicy() 6323 SDValue Offset, SDValue CachePolicy, in lowerSBuffer() argument 6341 CachePolicy in lowerSBuffer() 6382 CachePolicy, // cachepolicy in lowerSBuffer()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | sse_tensor_utils.cc | 188 lhs_params.cache_policy = cpu_backend_gemm::CachePolicy::kCacheIfLargeSpeedup; in SseCpuBackendGemm()
|
D | neon_tensor_utils.cc | 991 lhs_params.cache_policy = cpu_backend_gemm::CachePolicy::kCacheIfLargeSpeedup; in NeonCpuBackendGemm()
|