[PATCH] D147294: [Chkpnt] Adds IR Checker that compares the saved and restored states.

Vasileios Porpodas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 19:57:25 PDT 2023


vporpo created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds a simple IR checker that compares the IR dump of the tracked
components when tracking initially took place and after restore() was called.
This should run only in debug builds, and should help us catch errors in the
checkpointing infrastructure.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147294

Files:
  llvm/include/llvm/IR/Checkpoint.h
  llvm/include/llvm/IR/CheckpointTracker.h
  llvm/include/llvm/IR/LLVMContext.h
  llvm/lib/IR/Checkpoint.cpp
  llvm/lib/IR/CheckpointTracker.cpp
  llvm/lib/IR/LLVMContext.cpp
  llvm/unittests/IR/CheckpointTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147294.509886.patch
Type: text/x-patch
Size: 12654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/af7e8869/attachment-0001.bin>


More information about the llvm-commits mailing list