[llvm] [SandboxIR] sandboxir::Use operands (part 1) and uses (part 2) (PR #98251)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 22:29:51 PDT 2024
================
@@ -174,9 +334,61 @@ class User : public Value {
protected:
User(ClassID ID, llvm::Value *V, Context &Ctx) : Value(ID, V, Ctx) {}
+ /// \Returns the SBUse edge that corresponds to \p OpIdx.
+ /// Note: This is the default implementation that works for instructions that
+ /// match the underlying LLVM instruction. All others should use a different
+ /// implementation.
+ Use getOperandUseDefault(unsigned OpIdx, bool Verify) const;
+ virtual Use getOperandUseInternal(unsigned OpIdx, bool Verify) const = 0;
+ friend class OperandUseIterator; // for getOperandUseInternal()
+
+ /// The default implementation works only for single-LLVMIR-instruction
+ /// SBUsers and only if they match exactly the LLVM instruction.
----------------
tschuett wrote:
`SBUser` leftover with `SB` .
https://github.com/llvm/llvm-project/pull/98251
More information about the llvm-commits
mailing list