[PATCH] D19719: [mips][atomics] Fix atomic instruction descriptions and uses.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 07:40:02 PDT 2016


dsanders requested changes to this revision.
dsanders added a comment.
This revision now requires changes to proceed.

In http://reviews.llvm.org/D19719#449669, @sdardis wrote:

> Remove PTR_32 / PTR_64 and used IsPTR32bit / IsPTR64bit like we use InMicroMipsMode rather than having AdditionalPredicates and YetMorePredicates.
>
> Thanks,
> Simon


AdditionalPredicates is just for predicates we haven't got around to sorting out yet so we shouldn't add new predicates to it. We should also be removing any uses of Predicates or AdditionalPredicates where they remain.

The intent of the PredicateControl class was to have a sub-list for each mutually exclusive group of predicates with the final Predicates field being the concatenation of all the sub-lists. This allowed us to override specific groups of predicates which fixed a recurring problem where careless use of a 'let Predicates = ...' statement would accidentally remove predicates from an instruction. If we've got a new mutually exclusive group then we should add a new sub-list to PredicateControl.


http://reviews.llvm.org/D19719





More information about the llvm-commits mailing list