[all-commits] [llvm/llvm-project] 084195: [TableGen] Use buildConstant to emit apply pattern...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Tue Oct 17 01:40:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0841955bf3b79a33091333aba9a3157be72b535c
      https://github.com/llvm/llvm-project/commit/0841955bf3b79a33091333aba9a3157be72b535c
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M llvm/docs/GlobalISel/MIRPatterns.rst
    M llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h
    M llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h
    M llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-imms.td
    M llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-patfrag-root.td
    M llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-permutations.td
    M llvm/test/TableGen/GlobalISelCombinerEmitter/match-table.td
    M llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp
    M llvm/utils/TableGen/GlobalISelMatchTable.cpp
    M llvm/utils/TableGen/GlobalISelMatchTable.h

  Log Message:
  -----------
  [TableGen] Use buildConstant to emit apply pattern immediates (#66077)

Use `MachineIRBuilder::buildConstant` to emit typed immediates in
'apply' MIR patterns.
This adds flexibility, e.g. it allows us to seamlessly handle vector
cases, where a `G_BUILD_VECTOR` is needed to create a splat.




More information about the All-commits mailing list