Home
last modified time | relevance | path

Searched refs:ptrId (Results 1 – 19 of 19) sorted by relevance

/external/deqp-deps/SPIRV-Tools/source/opt/
Dlocal_single_block_elim_pass.cpp31 bool LocalSingleBlockLoadStoreElimPass::HasOnlySupportedRefs(uint32_t ptrId) { in HasOnlySupportedRefs() argument
32 if (supported_ref_ptrs_.find(ptrId) != supported_ref_ptrs_.end()) return true; in HasOnlySupportedRefs()
33 if (get_def_use_mgr()->WhileEachUser(ptrId, [this](Instruction* user) { in HasOnlySupportedRefs()
50 supported_ref_ptrs_.insert(ptrId); in HasOnlySupportedRefs()
Dscalar_replacement_pass.cpp457 uint32_t ptrId = GetOrCreatePointerType(typeId); in CreateVariable() local
465 context(), SpvOpVariable, ptrId, id, in CreateVariable()
522 uint32_t ptrId = 0; in GetOrCreatePointerType() local
525 ptrId = context()->get_type_mgr()->GetTypeInstruction(pointerTy.get()); in GetOrCreatePointerType()
526 pointee_to_pointer_[id] = ptrId; in GetOrCreatePointerType()
527 return ptrId; in GetOrCreatePointerType()
538 ptrId = global.result_id(); in GetOrCreatePointerType()
544 if (ptrId != 0) { in GetOrCreatePointerType()
545 pointee_to_pointer_[id] = ptrId; in GetOrCreatePointerType()
546 return ptrId; in GetOrCreatePointerType()
[all …]
Dmem_pass.cpp81 bool MemPass::IsPtr(uint32_t ptrId) { in IsPtr() argument
82 uint32_t varId = ptrId; in IsPtr()
96 Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) { in GetPtr() argument
97 *varId = ptrId; in GetPtr()
131 const uint32_t ptrId = ip->GetSingleWordInOperand(0); in GetPtr() local
132 return GetPtr(ptrId, varId); in GetPtr()
Dmem_pass.h87 bool IsPtr(uint32_t ptrId);
92 Instruction* GetPtr(uint32_t ptrId, uint32_t* varId);
Dlocal_access_chain_convert_pass.cpp184 bool LocalAccessChainConvertPass::HasOnlySupportedRefs(uint32_t ptrId) { in HasOnlySupportedRefs() argument
185 if (supported_ref_ptrs_.find(ptrId) != supported_ref_ptrs_.end()) return true; in HasOnlySupportedRefs()
186 if (get_def_use_mgr()->WhileEachUser(ptrId, [this](Instruction* user) { in HasOnlySupportedRefs()
202 supported_ref_ptrs_.insert(ptrId); in HasOnlySupportedRefs()
Dinline_pass.h61 void AddStore(uint32_t ptrId, uint32_t valId,
66 void AddLoad(uint32_t typeId, uint32_t resultId, uint32_t ptrId,
Dlocal_access_chain_convert_pass.h58 bool HasOnlySupportedRefs(uint32_t ptrId);
Daggressive_dead_code_elim_pass.h88 void AddStores(Function* func, uint32_t ptrId);
Daggressive_dead_code_elim_pass.cpp111 void AggressiveDCEPass::AddStores(Function* func, uint32_t ptrId) { in AddStores() argument
112 get_def_use_mgr()->ForEachUser(ptrId, [this, ptrId, func](Instruction* user) { in AddStores()
127 if (user->GetSingleWordInOperand(kCopyMemoryTargetAddrInIdx) == ptrId) { in AddStores()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dlocal_single_block_elim_pass.cpp31 bool LocalSingleBlockLoadStoreElimPass::HasOnlySupportedRefs(uint32_t ptrId) { in HasOnlySupportedRefs() argument
32 if (supported_ref_ptrs_.find(ptrId) != supported_ref_ptrs_.end()) return true; in HasOnlySupportedRefs()
33 if (get_def_use_mgr()->WhileEachUser(ptrId, [this](Instruction* user) { in HasOnlySupportedRefs()
50 supported_ref_ptrs_.insert(ptrId); in HasOnlySupportedRefs()
Dscalar_replacement_pass.cpp456 uint32_t ptrId = GetOrCreatePointerType(typeId); in CreateVariable() local
464 context(), SpvOpVariable, ptrId, id, in CreateVariable()
521 uint32_t ptrId = 0; in GetOrCreatePointerType() local
524 ptrId = context()->get_type_mgr()->GetTypeInstruction(pointerTy.get()); in GetOrCreatePointerType()
525 pointee_to_pointer_[id] = ptrId; in GetOrCreatePointerType()
526 return ptrId; in GetOrCreatePointerType()
537 ptrId = global.result_id(); in GetOrCreatePointerType()
543 if (ptrId != 0) { in GetOrCreatePointerType()
544 pointee_to_pointer_[id] = ptrId; in GetOrCreatePointerType()
545 return ptrId; in GetOrCreatePointerType()
[all …]
Dmem_pass.cpp81 bool MemPass::IsPtr(uint32_t ptrId) { in IsPtr() argument
82 uint32_t varId = ptrId; in IsPtr()
96 Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) { in GetPtr() argument
97 *varId = ptrId; in GetPtr()
131 const uint32_t ptrId = ip->GetSingleWordInOperand(0); in GetPtr() local
132 return GetPtr(ptrId, varId); in GetPtr()
Dmem_pass.h87 bool IsPtr(uint32_t ptrId);
92 Instruction* GetPtr(uint32_t ptrId, uint32_t* varId);
Dlocal_access_chain_convert_pass.cpp184 bool LocalAccessChainConvertPass::HasOnlySupportedRefs(uint32_t ptrId) { in HasOnlySupportedRefs() argument
185 if (supported_ref_ptrs_.find(ptrId) != supported_ref_ptrs_.end()) return true; in HasOnlySupportedRefs()
186 if (get_def_use_mgr()->WhileEachUser(ptrId, [this](Instruction* user) { in HasOnlySupportedRefs()
202 supported_ref_ptrs_.insert(ptrId); in HasOnlySupportedRefs()
Dinline_pass.h61 void AddStore(uint32_t ptrId, uint32_t valId,
66 void AddLoad(uint32_t typeId, uint32_t resultId, uint32_t ptrId,
Dlocal_access_chain_convert_pass.h58 bool HasOnlySupportedRefs(uint32_t ptrId);
Daggressive_dead_code_elim_pass.h88 void AddStores(Function* func, uint32_t ptrId);
Daggressive_dead_code_elim_pass.cpp111 void AggressiveDCEPass::AddStores(Function* func, uint32_t ptrId) { in AddStores() argument
112 get_def_use_mgr()->ForEachUser(ptrId, [this, ptrId, func](Instruction* user) { in AddStores()
127 if (user->GetSingleWordInOperand(kCopyMemoryTargetAddrInIdx) == ptrId) { in AddStores()
/external/swiftshader/src/Pipeline/
DSpirvShaderGLSLstd450.cpp399 auto ptrId = Object::ID(insn.word(6)); in EmitExtGLSLstd450() local
410 Store(ptrId, whole, false, std::memory_order_relaxed, state); in EmitExtGLSLstd450()
536 auto ptrId = Object::ID(insn.word(6)); in EmitExtGLSLstd450() local
547 Store(ptrId, exp, false, std::memory_order_relaxed, state); in EmitExtGLSLstd450()