[all-commits] [llvm/llvm-project] bd5d0a: Reformat

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Tue Mar 21 00:22:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd5d0a20d44456b2ee53feb229ed97bb8937b2d3
      https://github.com/llvm/llvm-project/commit/bd5d0a20d44456b2ee53feb229ed97bb8937b2d3
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/utils/TableGen/TableGen.cpp
    M llvm/utils/TableGen/TableGenBackends.h

  Log Message:
  -----------
  Reformat


  Commit: f675ec6165ab6add5e57cd43a2e9fa1a9bc21d81
      https://github.com/llvm/llvm-project/commit/f675ec6165ab6add5e57cd43a2e9fa1a9bc21d81
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/include/llvm/TableGen/Main.h
    M llvm/lib/TableGen/Main.cpp

  Log Message:
  -----------
  TableGen: Make 2nd arg `MainFn` of `TableGenMain(argv0, MainFn)` optional.


  Commit: 4178ef43b2f12171639e3ef2bf02e5b7efd34688
      https://github.com/llvm/llvm-project/commit/4178ef43b2f12171639e3ef2bf02e5b7efd34688
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/docs/TableGen/BackGuide.rst
    M llvm/include/llvm/TableGen/TableGenBackend.h
    M llvm/lib/TableGen/Main.cpp
    M llvm/lib/TableGen/TableGenBackend.cpp
    M llvm/lib/TableGen/TableGenBackendSkeleton.cpp

  Log Message:
  -----------
  TableGen: Introduce `llvm::TableGen::Emitter` to register backends

`Opt(flag, func, desc)` registers an option into `Action`.

`OptClass<EmitterC>` is also available if `EmitterC(RK).run(OS)` is capable.

`Action` is defined as `ManagedStatic<cl::opt>` to guarantee to be created
when each registration of emitter is invoked.

`llvm::TableGenMain(argv0, MainFn)` invokes `Action` instead of `MainFn`

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


  Commit: f35064dbe993708cad39234ced0b7c4b01c98ae2
      https://github.com/llvm/llvm-project/commit/f35064dbe993708cad39234ced0b7c4b01c98ae2
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/utils/TableGen/DecoderEmitter.cpp
    M llvm/utils/TableGen/DisassemblerEmitter.cpp
    M llvm/utils/TableGen/TableGenBackends.h

  Log Message:
  -----------
  llvm-tblgen: Move decl of `EmitDecoder()`to TableGenBackends.h

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


  Commit: a7e2b749b551dc39fe2840af21759796ccaeb78f
      https://github.com/llvm/llvm-project/commit/a7e2b749b551dc39fe2840af21759796ccaeb78f
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/utils/TableGen/AsmMatcherEmitter.cpp
    M llvm/utils/TableGen/AsmWriterEmitter.cpp
    M llvm/utils/TableGen/Attributes.cpp
    M llvm/utils/TableGen/CallingConvEmitter.cpp
    M llvm/utils/TableGen/CodeEmitterGen.cpp
    M llvm/utils/TableGen/DAGISelEmitter.cpp
    M llvm/utils/TableGen/DFAPacketizerEmitter.cpp
    M llvm/utils/TableGen/SubtargetEmitter.cpp
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp

  Log Message:
  -----------
  llvm-tblgen: Cleanup for each EmitterClass to be invoked by uniform signature.

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


  Commit: 9c93e728bfb8079c1de51e5481168c4083038c2a
      https://github.com/llvm/llvm-project/commit/9c93e728bfb8079c1de51e5481168c4083038c2a
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/utils/TableGen/AsmMatcherEmitter.cpp
    M llvm/utils/TableGen/AsmWriterEmitter.cpp
    M llvm/utils/TableGen/Attributes.cpp
    M llvm/utils/TableGen/CTagsEmitter.cpp
    M llvm/utils/TableGen/CallingConvEmitter.cpp
    M llvm/utils/TableGen/CodeEmitterGen.cpp
    M llvm/utils/TableGen/CompressInstEmitter.cpp
    M llvm/utils/TableGen/DAGISelEmitter.cpp
    M llvm/utils/TableGen/DFAEmitter.cpp
    M llvm/utils/TableGen/DFAPacketizerEmitter.cpp
    M llvm/utils/TableGen/DXILEmitter.cpp
    M llvm/utils/TableGen/DirectiveEmitter.cpp
    M llvm/utils/TableGen/DisassemblerEmitter.cpp
    M llvm/utils/TableGen/ExegesisEmitter.cpp
    M llvm/utils/TableGen/FastISelEmitter.cpp
    M llvm/utils/TableGen/GICombinerEmitter.cpp
    M llvm/utils/TableGen/GlobalISelEmitter.cpp
    M llvm/utils/TableGen/InstrDocsEmitter.cpp
    M llvm/utils/TableGen/InstrInfoEmitter.cpp
    M llvm/utils/TableGen/IntrinsicEmitter.cpp
    M llvm/utils/TableGen/OptParserEmitter.cpp
    M llvm/utils/TableGen/OptRSTEmitter.cpp
    M llvm/utils/TableGen/PseudoLoweringEmitter.cpp
    M llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
    M llvm/utils/TableGen/RegisterBankEmitter.cpp
    M llvm/utils/TableGen/RegisterInfoEmitter.cpp
    M llvm/utils/TableGen/SearchableTableEmitter.cpp
    M llvm/utils/TableGen/SubtargetEmitter.cpp
    M llvm/utils/TableGen/TableGen.cpp
    M llvm/utils/TableGen/TableGenBackends.h
    M llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp
    M llvm/utils/TableGen/X86MnemonicTables.cpp

  Log Message:
  -----------
  llvm-tblgen: Rewrite emitters to use `TableGen::Emitter`

Each emitter became self-contained since it has the registration of option.

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


Compare: https://github.com/llvm/llvm-project/compare/029ec03a0969...9c93e728bfb8


More information about the All-commits mailing list