diff options
author | Umar Arshad <umar@arrayfire.com> | 2016-08-06 13:29:33 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2016-08-09 15:50:03 -0400 |
commit | 816f29805b9c66bc6143f8506cb0976224d43336 (patch) | |
tree | 035414186591c05bf1ca6762ff7ba20990ed6574 /source/validate.h | |
parent | d49928f0cc9bc56a3f46ecf452a069e0512b2af5 (diff) | |
download | spirv-tools-816f29805b9c66bc6143f8506cb0976224d43336.tar.gz |
Refactor Id -> Instruction
Diffstat (limited to 'source/validate.h')
-rw-r--r-- | source/validate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/validate.h b/source/validate.h index c6ffac03..b8ba662b 100644 --- a/source/validate.h +++ b/source/validate.h @@ -101,6 +101,16 @@ std::vector<std::pair<BasicBlock*, BasicBlock*>> CalculateDominators( /// @return SPV_SUCCESS if no errors are found. SPV_ERROR_INVALID_CFG otherwise spv_result_t PerformCfgChecks(ValidationState_t& _); +/// @brief Updates the use vectors of all instructions that can be referenced +/// +/// This function will update the vector which define where an instruction was +/// referenced in the binary. +/// +/// @param[in] _ the validation state of the module +/// +/// @return SPV_SUCCESS if no errors are found. +spv_result_t UpdateIdUse(ValidationState_t& _); + /// @brief This function checks all ID definitions dominate their use in the /// CFG. /// |