[llvm] [SandboxIR] Adds BasicBlock and adds functionality to Function and Context (PR #97637)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 10:46:05 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;
----------------
aeubanks wrote:
virtual methods seem weird for a core class, but I suppose we can always refactor later if it turns out to be an issue (e.g. for compile times)
https://github.com/llvm/llvm-project/pull/97637
More information about the llvm-commits
mailing list