/* Copyright (c) 2024 LunarG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "buffer_device_address_pass.h" #include "module.h" #include <spirv/unified1/spirv.hpp> #include <iostream> #include "generated/instrumentation_buffer_device_address_comp.h" namespace gpu { namespace spirv { static LinkInfo link_info = …; // By appending the LinkInfo, it will attempt at linking stage to add the function. uint32_t BufferDeviceAddressPass::GetLinkFunctionId() { … } uint32_t BufferDeviceAddressPass::CreateFunctionCall(BasicBlock& block, InstructionIt* inst_it, const InjectionData& injection_data) { … } void BufferDeviceAddressPass::Reset() { … } bool BufferDeviceAddressPass::AnalyzeInstruction(const Function& function, const Instruction& inst) { … } void BufferDeviceAddressPass::PrintDebugInfo() { … } } // namespace spirv } // namespace gpu