[PATCH] D54179: [llvm-mca] Move the AssembleInput logic into its own class.
    Matt Davis via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Nov  6 13:12:59 PST 2018
    
    
  
mattd created this revision.
mattd added reviewers: andreadb, courbet, RKSimon.
Herald added subscribers: gbedwell, tschuett, mgorny.
This patch introduces a CodeRegionGenerator class which is responsible for parsing some type of input and creating a 'CodeRegions' instance for use by llvm-mca.  In the future, we will also have a CodeRegionGenerator subclass for converting an input object file into CodeRegions.  For now, we only have the subclass for converting input assembly into CodeRegions.
This is mostly a NFC patch, as the logic remains close to the original, but now encapsulated in its own class and moved outside of llvm-mca.cpp.
https://reviews.llvm.org/D54179
Files:
  tools/llvm-mca/AsmCodeRegionGenerator.cpp
  tools/llvm-mca/AsmCodeRegionGenerator.h
  tools/llvm-mca/CMakeLists.txt
  tools/llvm-mca/CodeRegion.h
  tools/llvm-mca/llvm-mca.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54179.172834.patch
Type: text/x-patch
Size: 14901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/e0f5b41e/attachment.bin>
    
    
More information about the llvm-commits
mailing list