llvm/llvm/lib/SandboxIR/User.cpp

//===- User.cpp - The User class of Sandbox IR ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/SandboxIR/User.h"
#include "llvm/SandboxIR/Context.h"

namespace llvm::sandboxir {

Use OperandUseIterator::operator*() const {}

OperandUseIterator &OperandUseIterator::operator++() {}

UserUseIterator &UserUseIterator::operator++() {}

OperandUseIterator OperandUseIterator::operator+(unsigned Num) const {}

OperandUseIterator OperandUseIterator::operator-(unsigned Num) const {}

int OperandUseIterator::operator-(const OperandUseIterator &Other) const {}

Use User::getOperandUseDefault(unsigned OpIdx, bool Verify) const {}

#ifndef NDEBUG
void User::verifyUserOfLLVMUse(const llvm::Use &Use) const {
  assert(Ctx.getValue(Use.getUser()) == this &&
         "Use not found in this SBUser's operands!");
}
#endif

bool User::classof(const Value *From) {}

void User::setOperand(unsigned OperandIdx, Value *Operand) {}

bool User::replaceUsesOfWith(Value *FromV, Value *ToV) {}

#ifndef NDEBUG
void User::dumpCommonHeader(raw_ostream &OS) const {
  Value::dumpCommonHeader(OS);
  // TODO: This is incomplete
}
#endif // NDEBUG

} // namespace llvm::sandboxir