1. Jun 17, 2021
  2. Jun 16, 2021
    • LLVM GN Syncbot's avatar
      [gn build] Port ef16c8ea · 35a085bf
      LLVM GN Syncbot authored
      35a085bf
    • Patrick Holland's avatar
      Reapply "[MCA] Adding the CustomBehaviour class to llvm-mca". · ef16c8ea
      Patrick Holland authored
      The original change was pushed in main as commit f7a23ece.
      It was then reverted by commit a04f01ba because it caused linker failures
      on buildbots that don't build the AMDGPU target.
      
      --
      
      Some instructions are not defined well enough within the target’s scheduling
      model for llvm-mca to be able to properly simulate its behaviour. The ideal
      solution to this situation is to modify the scheduling model, but that’s not
      always a viable strategy. Maybe other parts of the backend depend on that
      instruction being modelled the way that it is. Or maybe the instruction is quite
      complex and it’s difficult to fully capture its behaviour with tablegen. The
      CustomBehaviour class (which I will refer to as CB frequently) is designed to
      provide intuitive scaffolding for developers to implement the correct modelling
      for these instructions.
      
      More details are available in the original commit log message (f7a23ece).
      
      Differential Revision: https://reviews.llvm.org/D104149
      ef16c8ea