]> granicus.if.org Git - llvm/commit
[DFAPacketizer] Use DFAEmitter. NFC.
authorJames Molloy <jmolloy@google.com>
Thu, 17 Oct 2019 08:34:29 +0000 (08:34 +0000)
committerJames Molloy <jmolloy@google.com>
Thu, 17 Oct 2019 08:34:29 +0000 (08:34 +0000)
commit9d008e4cc95d49cfd78451978390e759aad9c333
tree8fbd0f452e6ff6478419adac5307a91f9c423465
parent3a4bfa616e88c6c7b1f8df9907a65731dae08766
[DFAPacketizer] Use DFAEmitter. NFC.

Summary:
This is a NFC change that removes the NFA->DFA construction and emission logic from DFAPacketizerEmitter and instead uses the generic DFAEmitter logic. This allows DFAPacketizer to use the Automaton class from Support and remove a bunch of logic there too.

After this patch, DFAPacketizer is mostly logic for grepping Itineraries and collecting functional units, with no state machine logic. This will allow us to modernize by removing the 16-functional-unit limit and supporting non-itinerary functional units. This is all for followup patches.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68992

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375086 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/DFAPacketizer.h
include/llvm/Support/Automaton.h
lib/CodeGen/DFAPacketizer.cpp
test/CodeGen/Hexagon/packetizer-resources.ll
utils/TableGen/DFAPacketizerEmitter.cpp