[llvm] [llubi] Add support for load/store/lifetime markers (PR #182532)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 22 07:52:48 PST 2026


================
@@ -248,6 +251,87 @@ class InstExecutor : public InstVisitor<InstExecutor, void> {
     return false;
   }
 
+  /// Check if the upcoming memory access is valid. Returns the offset relative
+  /// to the underlying object if it is valid.
+  std::optional<uint64_t> verifyMemAccess(const MemoryObject &MO,
+                                          const APInt &Address,
+                                          uint64_t AccessSize,
+                                          uint64_t Alignment, bool IsStore) {
----------------
nikic wrote:

Just wondering why the uint64_t rather than Align for the alignment?

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


More information about the llvm-commits mailing list