/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 303 Instruction* index_inst = in ClampIndicesForAccessChain() local 306 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 349 if (auto* index_constant = constant_mgr->GetConstantFromInst(index_inst)) { in ClampIndicesForAccessChain() 378 << index_inst->PrettyPrint(); in ClampIndicesForAccessChain() 395 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain() 396 index_inst, &inst); in ClampIndicesForAccessChain() 400 return clamp_index(operand_index, index_inst, in ClampIndicesForAccessChain() 414 Instruction* index_inst = in ClampIndicesForAccessChain() local 417 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 445 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() [all …]
|
D | combine_access_chains.cpp | 108 Instruction* index_inst = in GetIndexedType() local 111 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexedType() 283 Instruction* index_inst = in Has64BitIndices() local 286 context()->get_type_mgr()->GetType(index_inst->type_id()); in Has64BitIndices()
|
D | upgrade_memory_model.cpp | 420 Instruction* index_inst = context()->get_def_use_mgr()->GetDef(index); in CheckType() local 421 assert(index_inst->opcode() == SpvOpConstant); in CheckType() 422 uint64_t value = GetIndexValue(index_inst); in CheckType() 489 uint64_t UpgradeMemoryModel::GetIndexValue(Instruction* index_inst) { in GetIndexValue() argument 491 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexValue()
|
D | upgrade_memory_model.h | 115 uint64_t GetIndexValue(Instruction* index_inst);
|
D | inst_bindless_check_pass.cpp | 612 Instruction* index_inst = get_def_use_mgr()->GetDef(ref.desc_idx_id); in GenDescIdxCheckCode() local 614 if (index_inst->opcode() == SpvOpConstant && in GenDescIdxCheckCode() 616 index_inst->GetSingleWordInOperand(kSpvConstantValueInIdx) < in GenDescIdxCheckCode()
|
/third_party/spirv-tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 302 Instruction* index_inst = in ClampIndicesForAccessChain() local 305 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 348 if (auto* index_constant = constant_mgr->GetConstantFromInst(index_inst)) { in ClampIndicesForAccessChain() 377 << index_inst->PrettyPrint(); in ClampIndicesForAccessChain() 394 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain() 395 index_inst, &inst); in ClampIndicesForAccessChain() 399 return clamp_index(operand_index, index_inst, in ClampIndicesForAccessChain() 413 Instruction* index_inst = in ClampIndicesForAccessChain() local 416 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 444 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() [all …]
|
D | combine_access_chains.cpp | 104 Instruction* index_inst = in GetIndexedType() local 107 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexedType() 279 Instruction* index_inst = in Has64BitIndices() local 282 context()->get_type_mgr()->GetType(index_inst->type_id()); in Has64BitIndices()
|
D | upgrade_memory_model.cpp | 420 Instruction* index_inst = context()->get_def_use_mgr()->GetDef(index); in CheckType() local 421 assert(index_inst->opcode() == SpvOpConstant); in CheckType() 422 uint64_t value = GetIndexValue(index_inst); in CheckType() 489 uint64_t UpgradeMemoryModel::GetIndexValue(Instruction* index_inst) { in GetIndexValue() argument 491 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexValue()
|
D | upgrade_memory_model.h | 115 uint64_t GetIndexValue(Instruction* index_inst);
|
D | inst_bindless_check_pass.cpp | 612 Instruction* index_inst = get_def_use_mgr()->GetDef(ref.desc_idx_id); in GenDescIdxCheckCode() local 614 if (index_inst->opcode() == SpvOpConstant && in GenDescIdxCheckCode() 616 index_inst->GetSingleWordInOperand(kSpvConstantValueInIdx) < in GenDescIdxCheckCode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | graphics_robust_access_pass.cpp | 303 Instruction* index_inst = in ClampIndicesForAccessChain() local 306 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 349 if (auto* index_constant = constant_mgr->GetConstantFromInst(index_inst)) { in ClampIndicesForAccessChain() 378 << index_inst->PrettyPrint(); in ClampIndicesForAccessChain() 395 index_inst = WidenInteger(index_type->IsSigned(), maxval_width, in ClampIndicesForAccessChain() 396 index_inst, &inst); in ClampIndicesForAccessChain() 400 return clamp_index(operand_index, index_inst, in ClampIndicesForAccessChain() 414 Instruction* index_inst = in ClampIndicesForAccessChain() local 417 type_mgr->GetType(index_inst->type_id())->AsInteger(); in ClampIndicesForAccessChain() 445 index_inst = WidenInteger(true, target_width, index_inst, &inst); in ClampIndicesForAccessChain() [all …]
|
D | combine_access_chains.cpp | 108 Instruction* index_inst = in GetIndexedType() local 111 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexedType() 283 Instruction* index_inst = in Has64BitIndices() local 286 context()->get_type_mgr()->GetType(index_inst->type_id()); in Has64BitIndices()
|
D | upgrade_memory_model.cpp | 420 Instruction* index_inst = context()->get_def_use_mgr()->GetDef(index); in CheckType() local 421 assert(index_inst->opcode() == SpvOpConstant); in CheckType() 422 uint64_t value = GetIndexValue(index_inst); in CheckType() 489 uint64_t UpgradeMemoryModel::GetIndexValue(Instruction* index_inst) { in GetIndexValue() argument 491 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexValue()
|
D | upgrade_memory_model.h | 115 uint64_t GetIndexValue(Instruction* index_inst);
|
D | inst_bindless_check_pass.cpp | 612 Instruction* index_inst = get_def_use_mgr()->GetDef(ref.desc_idx_id); in GenDescIdxCheckCode() local 614 if (index_inst->opcode() == SpvOpConstant && in GenDescIdxCheckCode() 616 index_inst->GetSingleWordInOperand(kSpvConstantValueInIdx) < in GenDescIdxCheckCode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_add_function.cpp | 824 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in TryToClampAccessChainIndices() local 826 ir_context->get_def_use_mgr()->GetDef(index_inst->type_id()); in TryToClampAccessChainIndices() 834 if (index_inst->opcode() != SpvOpConstant || in TryToClampAccessChainIndices() 835 index_inst->GetSingleWordInOperand(0) >= bound) { in TryToClampAccessChainIndices() 871 {{SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 880 {SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 911 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in FollowCompositeIndex() local 912 assert(index_inst->opcode() == SpvOpConstant); in FollowCompositeIndex() 914 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() 917 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() [all …]
|
D | fuzzer_pass_donate_modules.cpp | 1162 auto index_inst = in MaybeAddLivesafeFunction() local 1165 index_inst->type_id()); in MaybeAddLivesafeFunction() 1171 if (index_inst->opcode() != SpvOpConstant) { in MaybeAddLivesafeFunction()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | transformation_add_function.cpp | 824 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in TryToClampAccessChainIndices() local 826 ir_context->get_def_use_mgr()->GetDef(index_inst->type_id()); in TryToClampAccessChainIndices() 834 if (index_inst->opcode() != SpvOpConstant || in TryToClampAccessChainIndices() 835 index_inst->GetSingleWordInOperand(0) >= bound) { in TryToClampAccessChainIndices() 871 {{SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 880 {SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 911 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in FollowCompositeIndex() local 912 assert(index_inst->opcode() == SpvOpConstant); in FollowCompositeIndex() 914 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() 917 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() [all …]
|
D | fuzzer_pass_donate_modules.cpp | 1162 auto index_inst = in MaybeAddLivesafeFunction() local 1165 index_inst->type_id()); in MaybeAddLivesafeFunction() 1171 if (index_inst->opcode() != SpvOpConstant) { in MaybeAddLivesafeFunction()
|
/third_party/spirv-tools/source/fuzz/ |
D | transformation_add_function.cpp | 824 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in TryToClampAccessChainIndices() local 826 ir_context->get_def_use_mgr()->GetDef(index_inst->type_id()); in TryToClampAccessChainIndices() 834 if (index_inst->opcode() != SpvOpConstant || in TryToClampAccessChainIndices() 835 index_inst->GetSingleWordInOperand(0) >= bound) { in TryToClampAccessChainIndices() 871 {{SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 880 {SPV_OPERAND_TYPE_ID, {index_inst->result_id()}}, in TryToClampAccessChainIndices() 911 auto index_inst = ir_context->get_def_use_mgr()->GetDef(index_id); in FollowCompositeIndex() local 912 assert(index_inst->opcode() == SpvOpConstant); in FollowCompositeIndex() 914 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() 917 ->GetDef(index_inst->type_id()) in FollowCompositeIndex() [all …]
|
D | fuzzer_pass_donate_modules.cpp | 1161 auto index_inst = in MaybeAddLivesafeFunction() local 1164 index_inst->type_id()); in MaybeAddLivesafeFunction() 1170 if (index_inst->opcode() != SpvOpConstant) { in MaybeAddLivesafeFunction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_extensions.cpp | 3119 auto index_inst = _.FindDef(inst->word(word_index)); in ValidateExtInst() local 3120 auto type_id = index_inst != nullptr ? index_inst->type_id() : 0; in ValidateExtInst()
|
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
D | validate_extensions.cpp | 3119 auto index_inst = _.FindDef(inst->word(word_index)); in ValidateExtInst() local 3120 auto type_id = index_inst != nullptr ? index_inst->type_id() : 0; in ValidateExtInst()
|