MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ProcessCurrentModule

Method ProcessCurrentModule

source/opt/graphics_robust_access_pass.cpp:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216spv_result_t GraphicsRobustAccessPass::ProcessCurrentModule() {
217 auto err = IsCompatibleModule();
218 if (err != SPV_SUCCESS) return err;
219
220 ProcessFunction fn = [this](opt::Function* f) { return ProcessAFunction(f); };
221 module_status_.modified |= context()->ProcessReachableCallTree(fn);
222
223 // Need something here. It's the price we pay for easier failure paths.
224 return SPV_SUCCESS;
225}
226
227bool GraphicsRobustAccessPass::ProcessAFunction(opt::Function* function) {
228 // Ensure that all pointers computed inside a function are within bounds.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected