chromium/third_party/vulkan-validation-layers/src/layers/gpu/spirv/function_basic_block.cpp

/* 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 "function_basic_block.h"
#include "instruction.h"
#include "module.h"

namespace gpu {
namespace spirv {

void BasicBlock::ToBinary(std::vector<uint32_t>& out) {}

void Function::ToBinary(std::vector<uint32_t>& out) {}

BasicBlock::BasicBlock(std::unique_ptr<Instruction> label, Function& function) :{}

BasicBlock::BasicBlock(Module& module, Function& function) :{}

uint32_t BasicBlock::GetLabelId() {}

InstructionIt BasicBlock::GetFirstInjectableInstrution() {}

InstructionIt BasicBlock::GetLastInjectableInstrution() {}

void BasicBlock::CreateInstruction(spv::Op opcode, const std::vector<uint32_t>& words, InstructionIt* inst_it) {}

Function::Function(Module& module, std::unique_ptr<Instruction> function_inst) :{}

BasicBlockIt Function::InsertNewBlock(BasicBlockIt it) {}

void Function::InitBlocks(uint32_t count) {}

const Instruction* Function::FindInstruction(uint32_t id) const {}

void Function::CreateInstruction(spv::Op opcode, const std::vector<uint32_t>& words, uint32_t id) {}

// Will not touch control flow logic
void Function::ReplaceAllUsesWith(uint32_t old_word, uint32_t new_word) {}

}  // namespace spirv
}  // namespace gpu