[PATCH] D93039: Introduce llvm.noalias.decl intrinsic

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 24 09:15:23 PST 2021


xbolva00 added inline comments.


================
Comment at: llvm/lib/IR/Verifier.cpp:5586
+
+    // [ItCurrent, ItNext[ represents the declarations for the same scope.
+    // Ensure they are not dominating each other
----------------
jeroen.dobbelaere wrote:
> asbirlea wrote:
> > jeroen.dobbelaere wrote:
> > > asbirlea wrote:
> > > > s/[/]
> > > ItCurrent inclusive, ItNext exclusive.
> > > Or   [ ItCurrent, ItNext-1 ].
> > > 
> > Thank you for the clarification, I realized the interval from the code, but then didn't connect it to the comment notation.
> > This format is new to me. I was taught the mathematical notation is `[ItCurrent, ItNext)` in this case, or, as you said, `[ItCurrent, ItNext-1]`.
> @asbirlea Both are valid it seems https://en.wikipedia.org/wiki/Interval_(mathematics)#Including_or_excluding_endpoints
> and https://en.wikipedia.org/wiki/ISO_31-11
> I (and my children) learned the notation using only '[' and ']' ;)
> 
I would prefer more common notation too. It may look like a typo, and somebody in the future may “fix” it to ].


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93039/new/

https://reviews.llvm.org/D93039



More information about the llvm-commits mailing list