/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | mem_pass.cpp | 82 uint32_t varId = ptrId; in IsPtr() local 83 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 85 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr() 86 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 96 Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) { in GetPtr() argument 97 *varId = ptrId; in GetPtr() 98 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() 102 *varId = 0; in GetPtr() 113 *varId = varInst->result_id(); in GetPtr() 115 *varId = 0; in GetPtr() [all …]
|
D | local_single_block_elim_pass.cpp | 72 uint32_t varId; in LocalSingleBlockLoadStoreElim() local 73 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() 74 if (!IsTargetVar(varId)) continue; in LocalSingleBlockLoadStoreElim() 75 if (!HasOnlySupportedRefs(varId)) continue; in LocalSingleBlockLoadStoreElim() 83 auto prev_store = var2store_.find(varId); in LocalSingleBlockLoadStoreElim() 87 varId)) { in LocalSingleBlockLoadStoreElim() 93 auto li = var2load_.find(varId); in LocalSingleBlockLoadStoreElim() 104 var2store_[varId] = &*ii; in LocalSingleBlockLoadStoreElim() 105 var2load_.erase(varId); in LocalSingleBlockLoadStoreElim() 112 var2store_.erase(varId); in LocalSingleBlockLoadStoreElim() [all …]
|
D | local_access_chain_convert_pass.cpp | 46 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, in BuildAndAppendVarLoad() argument 53 *varId = ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in BuildAndAppendVarLoad() 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() 58 {{spv_operand_type_t::SPV_OPERAND_TYPE_ID, {*varId}}}, in BuildAndAppendVarLoad() 90 uint32_t varId; in ReplaceAccessChainLoad() local 93 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad() 137 uint32_t varId; in GenAccessChainStoreReplacement() local 140 BuildAndAppendVarLoad(ptrInst, &varId, &varPteTypeId, newInsts); in GenAccessChainStoreReplacement() 146 varId, ldResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() 161 varId, insResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() [all …]
|
D | aggressive_dead_code_elim_pass.cpp | 87 bool AggressiveDCEPass::IsVarOfStorage(uint32_t varId, uint32_t storageClass) { in IsVarOfStorage() argument 88 if (varId == 0) return false; in IsVarOfStorage() 89 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() 99 bool AggressiveDCEPass::IsLocalVar(uint32_t varId) { in IsLocalVar() argument 100 if (IsVarOfStorage(varId, SpvStorageClassFunction)) { in IsLocalVar() 107 return IsVarOfStorage(varId, SpvStorageClassPrivate) || in IsLocalVar() 108 IsVarOfStorage(varId, SpvStorageClassWorkgroup); in IsLocalVar() 179 void AggressiveDCEPass::ProcessLoad(Function* func, uint32_t varId) { in ProcessLoad() argument 181 if (!IsLocalVar(varId)) return; in ProcessLoad() 183 if (live_local_vars_.find(varId) != live_local_vars_.end()) return; in ProcessLoad() [all …]
|
D | mem_pass.h | 51 Instruction* GetPtr(Instruction* ip, uint32_t* varId); 63 bool IsTargetVar(uint32_t varId); 92 Instruction* GetPtr(uint32_t ptrId, uint32_t* varId); 102 bool HasLoads(uint32_t varId) const; 106 bool IsLiveVar(uint32_t varId) const; 142 bool HasOnlySupportedRefs(uint32_t varId);
|
D | aggressive_dead_code_elim_pass.h | 60 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass); 65 bool IsLocalVar(uint32_t varId); 102 void ProcessLoad(Function* func, uint32_t varId);
|
D | local_single_block_elim_pass.h | 56 bool HasOnlySupportedRefs(uint32_t varId);
|
D | local_access_chain_convert_pass.h | 74 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId,
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | mem_pass.cpp | 82 uint32_t varId = ptrId; in IsPtr() local 83 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 85 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr() 86 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 96 Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) { in GetPtr() argument 97 *varId = ptrId; in GetPtr() 98 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() 102 *varId = 0; in GetPtr() 113 *varId = varInst->result_id(); in GetPtr() 115 *varId = 0; in GetPtr() [all …]
|
D | local_single_block_elim_pass.cpp | 72 uint32_t varId; in LocalSingleBlockLoadStoreElim() local 73 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() 74 if (!IsTargetVar(varId)) continue; in LocalSingleBlockLoadStoreElim() 75 if (!HasOnlySupportedRefs(varId)) continue; in LocalSingleBlockLoadStoreElim() 83 auto prev_store = var2store_.find(varId); in LocalSingleBlockLoadStoreElim() 87 varId)) { in LocalSingleBlockLoadStoreElim() 93 auto li = var2load_.find(varId); in LocalSingleBlockLoadStoreElim() 104 var2store_[varId] = &*ii; in LocalSingleBlockLoadStoreElim() 105 var2load_.erase(varId); in LocalSingleBlockLoadStoreElim() 112 var2store_.erase(varId); in LocalSingleBlockLoadStoreElim() [all …]
|
D | local_access_chain_convert_pass.cpp | 46 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, in BuildAndAppendVarLoad() argument 53 *varId = ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in BuildAndAppendVarLoad() 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() 58 {{spv_operand_type_t::SPV_OPERAND_TYPE_ID, {*varId}}}, in BuildAndAppendVarLoad() 90 uint32_t varId; in ReplaceAccessChainLoad() local 93 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad() 137 uint32_t varId; in GenAccessChainStoreReplacement() local 140 BuildAndAppendVarLoad(ptrInst, &varId, &varPteTypeId, newInsts); in GenAccessChainStoreReplacement() 146 varId, ldResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() 161 varId, insResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() [all …]
|
D | aggressive_dead_code_elim_pass.cpp | 87 bool AggressiveDCEPass::IsVarOfStorage(uint32_t varId, uint32_t storageClass) { in IsVarOfStorage() argument 88 if (varId == 0) return false; in IsVarOfStorage() 89 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() 99 bool AggressiveDCEPass::IsLocalVar(uint32_t varId) { in IsLocalVar() argument 100 if (IsVarOfStorage(varId, SpvStorageClassFunction)) { in IsLocalVar() 107 return IsVarOfStorage(varId, SpvStorageClassPrivate) || in IsLocalVar() 108 IsVarOfStorage(varId, SpvStorageClassWorkgroup); in IsLocalVar() 179 void AggressiveDCEPass::ProcessLoad(Function* func, uint32_t varId) { in ProcessLoad() argument 181 if (!IsLocalVar(varId)) return; in ProcessLoad() 183 if (live_local_vars_.find(varId) != live_local_vars_.end()) return; in ProcessLoad() [all …]
|
D | mem_pass.h | 51 Instruction* GetPtr(Instruction* ip, uint32_t* varId); 63 bool IsTargetVar(uint32_t varId); 92 Instruction* GetPtr(uint32_t ptrId, uint32_t* varId); 102 bool HasLoads(uint32_t varId) const; 106 bool IsLiveVar(uint32_t varId) const; 142 bool HasOnlySupportedRefs(uint32_t varId);
|
D | aggressive_dead_code_elim_pass.h | 60 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass); 65 bool IsLocalVar(uint32_t varId); 102 void ProcessLoad(Function* func, uint32_t varId);
|
D | local_single_block_elim_pass.h | 56 bool HasOnlySupportedRefs(uint32_t varId);
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | mem_pass.cpp | 82 uint32_t varId = ptrId; in IsPtr() local 83 Instruction* ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 85 varId = ptrInst->GetSingleWordInOperand(kCopyObjectOperandInIdx); in IsPtr() 86 ptrInst = get_def_use_mgr()->GetDef(varId); in IsPtr() 96 Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) { in GetPtr() argument 97 *varId = ptrId; in GetPtr() 98 Instruction* ptrInst = get_def_use_mgr()->GetDef(*varId); in GetPtr() 102 *varId = 0; in GetPtr() 113 *varId = varInst->result_id(); in GetPtr() 115 *varId = 0; in GetPtr() [all …]
|
D | local_single_block_elim_pass.cpp | 72 uint32_t varId; in LocalSingleBlockLoadStoreElim() local 73 Instruction* ptrInst = GetPtr(&*ii, &varId); in LocalSingleBlockLoadStoreElim() 74 if (!IsTargetVar(varId)) continue; in LocalSingleBlockLoadStoreElim() 75 if (!HasOnlySupportedRefs(varId)) continue; in LocalSingleBlockLoadStoreElim() 83 auto prev_store = var2store_.find(varId); in LocalSingleBlockLoadStoreElim() 87 varId)) { in LocalSingleBlockLoadStoreElim() 93 auto li = var2load_.find(varId); in LocalSingleBlockLoadStoreElim() 104 var2store_[varId] = &*ii; in LocalSingleBlockLoadStoreElim() 105 var2load_.erase(varId); in LocalSingleBlockLoadStoreElim() 112 var2store_.erase(varId); in LocalSingleBlockLoadStoreElim() [all …]
|
D | local_access_chain_convert_pass.cpp | 46 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId, in BuildAndAppendVarLoad() argument 53 *varId = ptrInst->GetSingleWordInOperand(kAccessChainPtrIdInIdx); in BuildAndAppendVarLoad() 54 const Instruction* varInst = get_def_use_mgr()->GetDef(*varId); in BuildAndAppendVarLoad() 58 {{spv_operand_type_t::SPV_OPERAND_TYPE_ID, {*varId}}}, in BuildAndAppendVarLoad() 90 uint32_t varId; in ReplaceAccessChainLoad() local 93 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad() 137 uint32_t varId; in GenAccessChainStoreReplacement() local 140 BuildAndAppendVarLoad(ptrInst, &varId, &varPteTypeId, newInsts); in GenAccessChainStoreReplacement() 146 varId, ldResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() 161 varId, insResultId, {SpvDecorationRelaxedPrecision}); in GenAccessChainStoreReplacement() [all …]
|
D | aggressive_dead_code_elim_pass.cpp | 87 bool AggressiveDCEPass::IsVarOfStorage(uint32_t varId, uint32_t storageClass) { in IsVarOfStorage() argument 88 if (varId == 0) return false; in IsVarOfStorage() 89 const Instruction* varInst = get_def_use_mgr()->GetDef(varId); in IsVarOfStorage() 99 bool AggressiveDCEPass::IsLocalVar(uint32_t varId) { in IsLocalVar() argument 100 if (IsVarOfStorage(varId, SpvStorageClassFunction)) { in IsLocalVar() 107 return IsVarOfStorage(varId, SpvStorageClassPrivate) || in IsLocalVar() 108 IsVarOfStorage(varId, SpvStorageClassWorkgroup); in IsLocalVar() 179 void AggressiveDCEPass::ProcessLoad(Function* func, uint32_t varId) { in ProcessLoad() argument 181 if (!IsLocalVar(varId)) return; in ProcessLoad() 183 if (live_local_vars_.find(varId) != live_local_vars_.end()) return; in ProcessLoad() [all …]
|
D | mem_pass.h | 51 Instruction* GetPtr(Instruction* ip, uint32_t* varId); 63 bool IsTargetVar(uint32_t varId); 92 Instruction* GetPtr(uint32_t ptrId, uint32_t* varId); 102 bool HasLoads(uint32_t varId) const; 106 bool IsLiveVar(uint32_t varId) const; 142 bool HasOnlySupportedRefs(uint32_t varId);
|
D | aggressive_dead_code_elim_pass.h | 60 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass); 65 bool IsLocalVar(uint32_t varId); 102 void ProcessLoad(Function* func, uint32_t varId);
|
D | local_single_block_elim_pass.h | 56 bool HasOnlySupportedRefs(uint32_t varId);
|
D | local_access_chain_convert_pass.h | 74 const Instruction* ptrInst, uint32_t* varId, uint32_t* varPteTypeId,
|
/external/deqp-deps/glslang/SPIRV/ |
D | SPVRemapper.cpp | 948 const spv::Id varId = asId(start+3); in optLoadStore() local 951 if (idMap.find(varId) == idMap.end()) { in optLoadStore() 952 fnLocalVars.erase(varId); in optLoadStore() 953 idMap.erase(varId); in optLoadStore() 958 fnLocalVars.erase(varId); in optLoadStore() 959 idMap.erase(varId); in optLoadStore() 963 if (blockMap.find(varId) == blockMap.end()) { in optLoadStore() 964 blockMap[varId] = blockNum; // track block we found it in. in optLoadStore() 965 } else if (blockMap[varId] != blockNum) { in optLoadStore() 966 fnLocalVars.erase(varId); // Ignore if crosses flow control in optLoadStore() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/SPIRV/ |
D | SPVRemapper.cpp | 951 const spv::Id varId = asId(start+3); in optLoadStore() local 954 if (idMap.find(varId) == idMap.end()) { in optLoadStore() 955 fnLocalVars.erase(varId); in optLoadStore() 956 idMap.erase(varId); in optLoadStore() 961 fnLocalVars.erase(varId); in optLoadStore() 962 idMap.erase(varId); in optLoadStore() 966 if (blockMap.find(varId) == blockMap.end()) { in optLoadStore() 967 blockMap[varId] = blockNum; // track block we found it in. in optLoadStore() 968 } else if (blockMap[varId] != blockNum) { in optLoadStore() 969 fnLocalVars.erase(varId); // Ignore if crosses flow control in optLoadStore() [all …]
|