[llvm] [SandboxIR] Implement CallBase and CallInst (PR #100218)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 13:22:10 PDT 2024


================
@@ -84,6 +89,25 @@ UserUseIterator &UserUseIterator::operator++() {
   return *this;
 }
 
+OperandUseIterator OperandUseIterator::operator+(unsigned Num) const {
+  sandboxir::Use U = Use.getUser()->getOperandUseInternal(
+      Use.getOperandNo() + Num, /*Verify=*/false);
----------------
vporpo wrote:

Good question. I don't remember exactly why we need to disable the verifier. I think it has to do with some issue when rolling back multi-Instructions, where `getNumOperands()` hasn't been updated yet. Anyway, I think it is safe to enable it for now and we can disable it later if needed.

https://github.com/llvm/llvm-project/pull/100218


More information about the llvm-commits mailing list