Diff Detail
Event Timeline
docs/LangRef.rst | ||
---|---|---|
6775 | Typo "referenece" | |
6779 | Typo "loados" | |
6780 | Consider: | |
6883 | Typo "referenece" | |
6887 | Typo "loados" | |
6888 | Consider: | |
11470–11471 | I'd remove "specifies that given a pointer," and switch "the first" with "its argument" and "produces" with "returns": The '``llvm.invariant.group.barrier``' intrinsic returns another pointer that aliases its argument but which is considered different for the purposes of load/store !invariant.group metadata. | |
11483–11484 | Consider: |
docs/LangRef.rst | ||
---|---|---|
6777 | existance -> existence | |
6779 | have the same -> has the same | |
6780 | This suggests that any such call could affect the loads. I think the right model is that the @llvm.invariant.group.barrier returns a different pointer value. That makes this parenthetical redundant, since "same pointer value" is already a side-condition. | |
6835–6837 | invariant.group.barrier -> invariant.group | |
6883–6888 | Same comments as above. | |
6885 | existance -> existence | |
6887 | that have -> that has | |
11478 | might changed -> might have changed ... but I don't think that's quite what we want to say. Something like:
maybe? | |
11483–11484 | I don't think it's accurate to say this affects the "next" load/store. The text in the "Overview" section seems like a good fit for a semantic description of the intrinsic. Maybe in the overview you could put something more general like "The <...> intrinsic can be used when an invariant established by !invariant.group metadata no longer holds, to obtain a new pointer value that does not carry the invariant information." | |
11486–11490 | Delete this, we already have this heading on line 10151. |
docs/LangRef.rst | ||
---|---|---|
6778 | The fact that it's the llvm::Value of a pointer that matters and not it's runtime value (aka the actual address) is non-obvious from this description. | |
6779 | The comma in "value, that" seems misplaced. I think you intend something like the following: | |
6781–6782 | Stray change, please submit separately. | |
6883 | Given the repetition here, I'd suggest adding a new subsection defining the notion of an invariant group and then reference that from the per instruction description. |
docs/LangRef.rst | ||
---|---|---|
4427 | "atached" --> "attached" | |
4430 | "can be assume" --> "can be assumed" | |
4430 | What does it mean to be assumed to store the same bit value? In the case of loads I think it means that the load must return the same value. Is the store stating that the store must be storing the same value, that is the value operand of the two stores is bit equivalent? | |
4580–4581 | This should either be removed or committed independently. | |
11448 | "it's" --> "its" | |
11457 | Either revert this newline or commit it independently if correct. |
docs/LangRef.rst | ||
---|---|---|
4430 | I don't understand what you are saying. It means that 2 stores with the same invariant.group and same operand must store the same value |
docs/LangRef.rst | ||
---|---|---|
4430 | Remove the word "bit" here, just "load or store the same value". | |
4444–4445 | You should insert a call between these two, since otherwise we can assume they load the same value because the value cannot have changed between the two loads. | |
4454 | Again, insert a call before this load, since otherwise we can prove that this loads 42 because we just saw a store of 42 to the same region of memory. |
"atached" --> "attached"