chromium/third_party/spirv-tools/src/source/opt/desc_sroa_util.cpp

// Copyright (c) 2021 Google LLC
//
// 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 "source/opt/desc_sroa_util.h"

namespace spvtools {
namespace opt {
namespace {
constexpr uint32_t kOpAccessChainInOperandIndexes =;

// Returns the length of array type |type|.
uint32_t GetLengthOfArrayType(IRContext* context, Instruction* type) {}

bool HasDescriptorDecorations(IRContext* context, Instruction* var) {}

Instruction* GetVariableType(IRContext* context, Instruction* var) {}

}  // namespace

namespace descsroautil {

bool IsDescriptorArray(IRContext* context, Instruction* var) {}

bool IsDescriptorStruct(IRContext* context, Instruction* var) {}

bool IsTypeOfStructuredBuffer(IRContext* context, const Instruction* type) {}

const analysis::Constant* GetAccessChainIndexAsConst(
    IRContext* context, Instruction* access_chain) {}

uint32_t GetFirstIndexOfAccessChain(Instruction* access_chain) {}

uint32_t GetNumberOfElementsForArrayOrStruct(IRContext* context,
                                             Instruction* var) {}

}  // namespace descsroautil
}  // namespace opt
}  // namespace spvtools