Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 25 of 1709) sorted by relevance

12345678910>>...69

/external/deqp-deps/SPIRV-Tools/source/opt/
Dfold.cpp222 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
226 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
268 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
277 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
284 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
297 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
307 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
311 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
322 if (constants[i] != nullptr) { in FoldBinaryIntegerOpToConstant()
326 uint32_t mask = constants[i]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfolding_rules.cpp76 const std::vector<const analysis::Constant*>& constants) { in ConstInput() argument
77 return constants[0] ? constants[0] : constants[1]; in ConstInput()
204 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
214 if (constants[1] != nullptr) { in ReciprocalFDiv()
217 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
225 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
227 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
228 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
248 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
250 (void)constants; in MergeNegateArithmetic()
[all …]
Dconst_folding_rules.cpp39 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
66 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
69 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
70 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
122 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
134 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
135 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
199 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
208 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold.cpp240 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
244 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
286 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
295 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
302 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
315 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
325 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
330 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
341 if (constants[i] != nullptr) { in FoldBinaryIntegerOpToConstant()
345 uint32_t mask = constants[i]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfolding_rules.cpp76 const std::vector<const analysis::Constant*>& constants) { in ConstInput() argument
77 return constants[0] ? constants[0] : constants[1]; in ConstInput()
204 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
214 if (constants[1] != nullptr) { in ReciprocalFDiv()
217 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
225 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
227 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
228 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
248 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
250 (void)constants; in MergeNegateArithmetic()
[all …]
Dconst_folding_rules.cpp39 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
66 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
69 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
70 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
122 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
134 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
135 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
199 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
208 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DConstantPoolGen.java67 protected Constant[] constants; field in ConstantPoolGen
100 constants = new Constant[size]; in ConstantPoolGen()
102 System.arraycopy(cs, 0, constants, 0, cs.length); in ConstantPoolGen()
109 final Constant c = constants[i]; in ConstantPoolGen()
112 final ConstantUtf8 u8 = (ConstantUtf8) constants[s.getStringIndex()]; in ConstantPoolGen()
119 final ConstantUtf8 u8 = (ConstantUtf8) constants[s.getNameIndex()]; in ConstantPoolGen()
126 final ConstantUtf8 u8 = (ConstantUtf8) constants[n.getNameIndex()]; in ConstantPoolGen()
127 final ConstantUtf8 u8_2 = (ConstantUtf8) constants[n.getSignatureIndex()]; in ConstantPoolGen()
154 final ConstantClass clazz = (ConstantClass) constants[m.getClassIndex()]; in ConstantPoolGen()
155 u8 = (ConstantUtf8) constants[clazz.getNameIndex()]; in ConstantPoolGen()
[all …]
/external/tensorflow/tensorflow/contrib/session_bundle/
Dsession_bundle.py26 from tensorflow.contrib.session_bundle import constants
50 constants.META_GRAPH_DEF_FILENAME)
83 constants.META_GRAPH_DEF_FILENAME)
97 constants.VARIABLES_INDEX_FILENAME_V2)
104 export_dir, constants.VARIABLES_FILENAME_PATTERN_V2)
109 variables_filename = os.path.join(export_dir, constants.VARIABLES_FILENAME)
114 constants.VARIABLES_FILENAME_PATTERN)
124 restore_files = constants.VARIABLES_FILENAME
126 restore_files = constants.VARIABLES_FILENAME_PATTERN
128 assets_dir = os.path.join(export_dir, constants.ASSETS_DIRECTORY)
[all …]
Dexporter_test.py23 from tensorflow.contrib.session_bundle import constants
139 os.path.join(export_path, constants.VERSION_FORMAT_SPECIFIER %
140 global_step, constants.META_GRAPH_DEF_FILENAME))
146 graph_def_any = collection_def[constants.GRAPH_KEY].any_list.value
156 init_ops = collection_def[constants.INIT_OP_KEY].node_list.value
161 signatures_any = collection_def[constants.SIGNATURES_KEY].any_list.value
177 assets_any = collection_def[constants.ASSETS_KEY].any_list.value
182 constants.VERSION_FORMAT_SPECIFIER %
183 global_step, constants.ASSETS_DIRECTORY,
190 constants.VERSION_FORMAT_SPECIFIER %
[all …]
/external/autotest/client/site_tests/video_GlitchDetection/
Dvideo_GlitchDetection.py12 from autotest_lib.client.cros import constants as cros_constants
17 from autotest_lib.client.cros.video import constants
41 shutil.copy2(constants.VIDEO_HTML_FILEPATH, self.bindir)
43 file_utils.make_leaf_dir(constants.TEST_DIR)
93 box = (0, 0, constants.DESIRED_WIDTH, constants.DESIRED_HEIGHT)
96 for n in xrange(constants.NUM_CAPTURE_TRIES):
99 player, max_frame_count = constants.FCOUNT,
107 constants.MAX_FRAME_REPEAT_COUNT)
117 'tries. Checksums: %s' % (constants.NUM_CAPTURE_TRIES,
131 constants.TEST_DIR,
[all …]
/external/minijail/tools/
Darch.py48 constants = json.load(json_file)
50 arch_nr=constants['arch_nr'],
51 arch_name=constants['arch_name'],
52 bits=constants['bits'],
53 syscalls=constants['syscalls'],
54 constants=constants['constants'],
55 syscall_groups=constants.get('syscall_groups', {}),
/external/autotest/client/cros/
Dlogin.py7 import constants, cros_logging, cros_ui, cryptohome
79 lambda: os.system('pgrep ^%s$ >/dev/null' % constants.BROWSER) == 0,
82 process=constants.BROWSER,
98 lambda: os.system('pgrep ^%s$ >/dev/null' % constants.BROWSER) != 0,
101 process=constants.BROWSER,
124 def wait_for_ownership(timeout=constants.DEFAULT_OWNERSHIP_TIMEOUT):
131 if os.access(constants.OWNER_KEY_FILE, os.F_OK):
134 condition=lambda: os.access(constants.OWNER_KEY_FILE, os.F_OK),
137 process=constants.BROWSER,
Downership.py7 import common, constants, cryptohome
103 __unlink(constants.OWNER_KEY_FILE)
104 __unlink(constants.SIGNED_POLICY_FILE)
105 __unlink(os.path.join(constants.USER_DATA_DIR, 'Local State'))
112 mock_certfile = os.path.join(dirname, constants.MOCK_OWNER_CERT)
114 constants.MOCK_OWNER_POLICY)
115 utils.open_write_close(constants.OWNER_KEY_FILE,
118 constants.SIGNED_POLICY_FILE)
250 mock_keyfile = os.path.join(dirname, constants.MOCK_OWNER_KEY)
251 mock_certfile = os.path.join(dirname, constants.MOCK_OWNER_CERT)
[all …]
Dcryptohome.py8 import common, constants
275 if os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
284 for item in os.listdir(constants.SHADOW_ROOT):
285 abs_item = os.path.join(constants.SHADOW_ROOT, item)
308 if not os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
318 if os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
428 constants.CRYPTOHOME_FS_REGEX_ANY :
429 constants.CRYPTOHOME_DEV_REGEX_ANY
455 if (re.match(constants.CRYPTOHOME_FS_REGEX_EXT4, mount_info[2])
456 and not(re.match(constants.CRYPTOHOME_DEV_REGEX_LOOP_DEVICE,
[all …]
/external/tensorflow/tensorflow/python/saved_model/
Dloader_impl.py33 from tensorflow.python.saved_model import constants
57 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PBTXT))
61 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PB))
82 constants.SAVED_MODEL_FILENAME_PBTXT,
83 constants.SAVED_MODEL_FILENAME_PB))
112 elif constants.ASSETS_KEY in collection_def:
113 assets_any_proto = collection_def[constants.ASSETS_KEY].any_list.value
121 compat.as_bytes(export_dir), compat.as_bytes(constants.ASSETS_DIRECTORY))
135 meta_graph_def_to_load, init_op_key=constants.MAIN_OP_KEY):
179 meta_graph_def, constants.INIT_OP_SIGNATURE_KEY, import_scope) or
[all …]
Dbuilder_impl.py35 from tensorflow.python.saved_model import constants
94 constants.SAVED_MODEL_SCHEMA_VERSION)
205 if constants.INIT_OP_SIGNATURE_KEY in signature_def_map:
208 "use a different key.".format(constants.INIT_OP_SIGNATURE_KEY))
209 if constants.TRAIN_OP_SIGNATURE_KEY in signature_def_map:
212 "use a different key.".format(constants.TRAIN_OP_SIGNATURE_KEY))
276 constants.INIT_OP_SIGNATURE_KEY)
278 constants.TRAIN_OP_SIGNATURE_KEY)
354 constants.INIT_OP_SIGNATURE_KEY)
356 constants.TRAIN_OP_SIGNATURE_KEY)
[all …]
/external/swiftshader/src/Shader/
DVertexRoutine.cpp52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
129 Int4 finiteZ = CmpLE(Abs(o[pos].z), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
[all …]
/external/swiftshader/src/Pipeline/
DVertexRoutine.cpp52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
129 Int4 finiteZ = CmpLE(Abs(o[pos].z), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
[all …]
/external/autotest/site_utils/lxc/
Dcontainer_bucket.py15 from autotest_lib.site_utils.lxc import constants
19 from autotest_lib.site_utils.lxc.constants import \
43 def __init__(self, container_path=constants.DEFAULT_CONTAINER_PATH,
132 containers, key=lambda n: 1 if n.name == constants.BASE else 0):
141 '%s/setup_test_duration' % constants.STATS_KEY)
211 mount_entries = [(constants.SITE_PACKAGES_PATH,
212 constants.CONTAINER_SITE_PACKAGES_PATH,
215 os.path.join(constants.RESULT_DIR_FMT % job_folder),
228 constants.CONTAINER_AUTOTEST_DIR.lstrip(os.path.sep))
242 container.set_hostname(constants.CONTAINER_UTSNAME_FORMAT %
Dlxc.py15 from autotest_lib.site_utils.lxc import constants
40 ','.join(constants.ATTRIBUTES))
48 info_collection.append(dict(zip(constants.ATTRIBUTES, line.split())))
95 timeout_min=(constants.DEVSERVER_CALL_TIMEOUT *
96 constants.DEVSERVER_CALL_RETRY / 60),
97 delay_sec=constants.DEVSERVER_CALL_DELAY)
100 url, target_file_path, timeout=constants.DEVSERVER_CALL_TIMEOUT)
118 if not constants.SSP_ENABLED and not common_utils.is_in_container():
136 '%s/install_packages_duration' % constants.STATS_KEY)
/external/autotest/client/site_tests/desktopui_HangDetector/
Ddesktopui_HangDetector.py10 from autotest_lib.client.cros import constants, cros_logging, cros_ui, login
43 os.mknod(constants.ENABLE_BROWSER_HANG_DETECTION_FILE)
46 browser_pid = self._get_oldest_pid_by_name(constants.BROWSER)
47 sm_pid = self._get_oldest_pid_by_name(constants.SESSION_MANAGER)
82 if sm_pid != self._get_oldest_pid_by_name(constants.SESSION_MANAGER):
87 if os.path.exists(constants.ENABLE_BROWSER_HANG_DETECTION_FILE):
88 os.remove(constants.ENABLE_BROWSER_HANG_DETECTION_FILE)
/external/deqp/external/vulkancts/modules/vulkan/robustness/
DvktRobustBufferAccessWithVariablePointersTests.cpp518 << constants.str() in str()
708 return constants; in selectStream()
726 std::stringstream constants; member in vkt::robustness::__anon5998134f0111::ShaderStream
776 constants.push_back(Variable(autoincrement)); in Variables()
782 std::vector<Variable> constants; member in vkt::robustness::__anon5998134f0111::Variables
876 (var.constants[6], is, op::Constant, var.f32, 1) in MakeShader()
877 …(var.constants[7], is, op::ConstantComposite, var.v4f32, var.constants[6], var.constants[6], var.c… in MakeShader()
999 (var.constants[0], is, op::Constant, var.s32, 0) in MakeShader()
1000 (var.constants[1], is, op::Constant, var.s32, 1) in MakeShader()
1001 (var.constants[2], is, op::Constant, var.s32, 2) in MakeShader()
[all …]
/external/autotest/client/site_tests/desktopui_GmailLatency/
Ddesktopui_GmailLatency.py8 from autotest_lib.client.cros import constants, cros_ui
36 constants.SESSION_MANAGER)
37 open(constants.DISABLE_BROWSER_RESTART_MAGIC_FILE, 'w').close()
45 utils.nuke_process_by_name(name=constants.BROWSER)
51 constants.SESSION_MANAGER)
71 os.unlink(constants.DISABLE_BROWSER_RESTART_MAGIC_FILE)
/external/python/cpython2/Doc/library/
Dcarbon.rst61 :mod:`Carbon.Appearance` --- Appearance Manager constants
102 :mod:`Carbon.CarbonEvents` --- Carbon Event Manager constants
120 :mod:`Carbon.Components` --- Component Manager constants
137 :mod:`Carbon.Controls` --- Control Manager constants
145 :mod:`Carbon.CoreFounation` --- CoreFounation constants
153 :mod:`Carbon.CoreGraphics` --- CoreGraphics constants
169 :mod:`Carbon.Dialogs` --- Dialog Manager constants
193 :mod:`Carbon.Dragconst` --- Drag and Drop Manager constants
201 :mod:`Carbon.Events` --- Event Manager constants
225 :mod:`Carbon.Files` --- File Manager constants
[all …]
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
Dfast-isel-pred.ll15 define internal void @__aa(<4 x i32> %v, i8* %p, i32 %offset, <4 x float>* %constants) nounwind inl…
21 %constants.addr = alloca <4 x float>*, align 4
25 store <4 x float>* %constants, <4 x float>** %constants.addr, align 4
34 %tmp3 = load <4 x float>** %constants.addr, align 4
39 define internal void @__bb(<4 x float> %v, i8* %p, i32 %offset, <4 x float>* %constants) nounwind i…
44 %constants.addr = alloca <4 x float>*, align 4
49 store <4 x float>* %constants, <4 x float>** %constants.addr, align 4

12345678910>>...69