[all-commits] [llvm/llvm-project] 12092a: [DFAPacketizer] Use DFAEmitter. NFC.

llvm-git-migration via All-commits all-commits at lists.llvm.org
Thu Oct 17 01:33:23 PDT 2019

  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 12092a9691a991a0953512451af0d1421ab4d5dc
  Author: James Molloy <jmolloy at google.com>
  Date:   2019-10-17 (Thu, 17 Oct 2019)

  Changed paths:
    M llvm/include/llvm/CodeGen/DFAPacketizer.h
    M llvm/include/llvm/Support/Automaton.h
    M llvm/lib/CodeGen/DFAPacketizer.cpp
    M llvm/test/CodeGen/Hexagon/packetizer-resources.ll
    M llvm/utils/TableGen/DFAPacketizerEmitter.cpp

  Log Message:
  [DFAPacketizer] Use DFAEmitter. NFC.

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

llvm-svn: 375086

More information about the All-commits mailing list