Home
last modified time | relevance | path

Searched refs:constant_inst (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dcombine_access_chains.cpp59 const analysis::Constant* constant_inst) { in GetConstantValue() argument
60 if (constant_inst->type()->AsInteger()->width() <= 32) { in GetConstantValue()
61 if (constant_inst->type()->AsInteger()->IsSigned()) { in GetConstantValue()
62 return static_cast<uint32_t>(constant_inst->GetS32()); in GetConstantValue()
64 return constant_inst->GetU32(); in GetConstantValue()
Dcombine_access_chains.h51 uint32_t GetConstantValue(const analysis::Constant* constant_inst);
/external/deqp-deps/SPIRV-Tools/source/opt/
Dcombine_access_chains.cpp59 const analysis::Constant* constant_inst) { in GetConstantValue() argument
60 if (constant_inst->type()->AsInteger()->width() <= 32) { in GetConstantValue()
61 if (constant_inst->type()->AsInteger()->IsSigned()) { in GetConstantValue()
62 return static_cast<uint32_t>(constant_inst->GetS32()); in GetConstantValue()
64 return constant_inst->GetU32(); in GetConstantValue()
Dcombine_access_chains.h50 uint32_t GetConstantValue(const analysis::Constant* constant_inst);