OSDN Git Service

[tablegen] Delete duplicates from a vector without skipping elements
authorVedant Kumar <vsk@apple.com>
Thu, 1 Dec 2016 19:38:50 +0000 (19:38 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 1 Dec 2016 19:38:50 +0000 (19:38 +0000)
commit74ae9256197c794c58c3e659b1d690cf0b958aa4
treef4eb94368da49b870d8c88b41771b1cfa7c264cd
parent38026e26bdc0fe2685160e47a46bdafc623237a3
[tablegen] Delete duplicates from a vector without skipping elements

Tablegen's -gen-instr-info pass has a bug in its emitEnums() routine.
The function intends for values in a vector to be deduplicated, but it
accidentally skips over elements after performing a deletion.

I think there are smarter ways of doing this deduplication, but we can
do that in a follow-up commit if there's interest. See the thread:
[PATCH] TableGen InstrMapping Bug fix.

Patch by Tyler Kenney!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288408 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/DuplicateFieldValues.td [new file with mode: 0644]
utils/TableGen/CodeGenMapTable.cpp