[llvm] [SandboxIR] Adds BasicBlock and adds functionality to Function and Context (PR #97637)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 11:13:39 PDT 2024
================
@@ -231,6 +283,8 @@ class Instruction : public sandboxir::User {
return OS;
}
#endif
+ /// This is used by BasicBlcok::iterator.
+ virtual unsigned getNumOfIRInstrs() const = 0;
----------------
vporpo wrote:
Yes, I think we could replace these with CRTPs later.
https://github.com/llvm/llvm-project/pull/97637
More information about the llvm-commits
mailing list