[PATCH] D22793: IR: Introduce inbounds attribute on getelementptr indices.

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 12:25:56 PDT 2016


majnemer added a comment.

I think you need to update andIRFlags.


================
Comment at: include/llvm/IR/Operator.h:384-387
@@ -382,1 +383,6 @@
+  /// none.
+  Optional<unsigned> getInBoundsIndex() const {
+    if (SubclassOptionalData >> 1 == 0) return None;
+    return (SubclassOptionalData >> 1) - 1;
+  }
 
----------------
How will this play with `intersectOptionalDataWith`?


https://reviews.llvm.org/D22793





More information about the llvm-commits mailing list