#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);
}
#endif
}