[all-commits] [llvm/llvm-project] fa3d78: [RFC][TableGen] Restructure TableGen Source (#80847)

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Mon Mar 25 01:40:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa3d789df15bd1f58fb8ba4ea3be909218cf7f03
      https://github.com/llvm/llvm-project/commit/fa3d789df15bd1f58fb8ba4ea3be909218cf7f03
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M llvm/unittests/TableGen/CMakeLists.txt
    M llvm/unittests/TableGen/CodeExpanderTest.cpp
    M llvm/utils/TableGen/AsmMatcherEmitter.cpp
    M llvm/utils/TableGen/AsmWriterEmitter.cpp
    R llvm/utils/TableGen/AsmWriterInst.cpp
    R llvm/utils/TableGen/AsmWriterInst.h
    A llvm/utils/TableGen/Basic/CMakeLists.txt
    A llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
    A llvm/utils/TableGen/Basic/CodeGenIntrinsics.h
    A llvm/utils/TableGen/Basic/SDNodeProperties.cpp
    A llvm/utils/TableGen/Basic/SDNodeProperties.h
    A llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
    M llvm/utils/TableGen/CMakeLists.txt
    M llvm/utils/TableGen/CallingConvEmitter.cpp
    M llvm/utils/TableGen/CodeEmitterGen.cpp
    R llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    R llvm/utils/TableGen/CodeGenDAGPatterns.h
    R llvm/utils/TableGen/CodeGenHwModes.cpp
    R llvm/utils/TableGen/CodeGenHwModes.h
    R llvm/utils/TableGen/CodeGenInstAlias.cpp
    R llvm/utils/TableGen/CodeGenInstAlias.h
    R llvm/utils/TableGen/CodeGenInstruction.cpp
    R llvm/utils/TableGen/CodeGenInstruction.h
    R llvm/utils/TableGen/CodeGenIntrinsics.cpp
    R llvm/utils/TableGen/CodeGenIntrinsics.h
    M llvm/utils/TableGen/CodeGenMapTable.cpp
    R llvm/utils/TableGen/CodeGenRegisters.cpp
    R llvm/utils/TableGen/CodeGenRegisters.h
    R llvm/utils/TableGen/CodeGenSchedule.cpp
    R llvm/utils/TableGen/CodeGenSchedule.h
    R llvm/utils/TableGen/CodeGenTarget.cpp
    R llvm/utils/TableGen/CodeGenTarget.h
    A llvm/utils/TableGen/Common/AsmWriterInst.cpp
    A llvm/utils/TableGen/Common/AsmWriterInst.h
    A llvm/utils/TableGen/Common/CMakeLists.txt
    A llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
    A llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
    A llvm/utils/TableGen/Common/CodeGenHwModes.cpp
    A llvm/utils/TableGen/Common/CodeGenHwModes.h
    A llvm/utils/TableGen/Common/CodeGenInstAlias.cpp
    A llvm/utils/TableGen/Common/CodeGenInstAlias.h
    A llvm/utils/TableGen/Common/CodeGenInstruction.cpp
    A llvm/utils/TableGen/Common/CodeGenInstruction.h
    A llvm/utils/TableGen/Common/CodeGenRegisters.cpp
    A llvm/utils/TableGen/Common/CodeGenRegisters.h
    A llvm/utils/TableGen/Common/CodeGenSchedule.cpp
    A llvm/utils/TableGen/Common/CodeGenSchedule.h
    A llvm/utils/TableGen/Common/CodeGenTarget.cpp
    A llvm/utils/TableGen/Common/CodeGenTarget.h
    A llvm/utils/TableGen/Common/DAGISelMatcher.cpp
    A llvm/utils/TableGen/Common/DAGISelMatcher.h
    A llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.cpp
    A llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h
    A llvm/utils/TableGen/Common/GlobalISel/CodeExpander.cpp
    A llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h
    A llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h
    A llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
    A llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
    A llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
    A llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.cpp
    A llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h
    A llvm/utils/TableGen/Common/GlobalISel/MatchDataInfo.cpp
    A llvm/utils/TableGen/Common/GlobalISel/MatchDataInfo.h
    A llvm/utils/TableGen/Common/GlobalISel/Patterns.cpp
    A llvm/utils/TableGen/Common/GlobalISel/Patterns.h
    A llvm/utils/TableGen/Common/InfoByHwMode.cpp
    A llvm/utils/TableGen/Common/InfoByHwMode.h
    A llvm/utils/TableGen/Common/OptEmitter.cpp
    A llvm/utils/TableGen/Common/OptEmitter.h
    A llvm/utils/TableGen/Common/PredicateExpander.cpp
    A llvm/utils/TableGen/Common/PredicateExpander.h
    A llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp
    A llvm/utils/TableGen/Common/SubtargetFeatureInfo.h
    A llvm/utils/TableGen/Common/Types.cpp
    A llvm/utils/TableGen/Common/Types.h
    A llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp
    A llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h
    M llvm/utils/TableGen/CompressInstEmitter.cpp
    M llvm/utils/TableGen/DAGISelEmitter.cpp
    R llvm/utils/TableGen/DAGISelMatcher.cpp
    R llvm/utils/TableGen/DAGISelMatcher.h
    M llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
    M llvm/utils/TableGen/DAGISelMatcherGen.cpp
    M llvm/utils/TableGen/DAGISelMatcherOpt.cpp
    M llvm/utils/TableGen/DFAEmitter.cpp
    M llvm/utils/TableGen/DFAPacketizerEmitter.cpp
    M llvm/utils/TableGen/DXILEmitter.cpp
    M llvm/utils/TableGen/DecoderEmitter.cpp
    M llvm/utils/TableGen/DisassemblerEmitter.cpp
    M llvm/utils/TableGen/FastISelEmitter.cpp
    R llvm/utils/TableGen/GlobalISel/CMakeLists.txt
    R llvm/utils/TableGen/GlobalISel/CXXPredicates.cpp
    R llvm/utils/TableGen/GlobalISel/CXXPredicates.h
    R llvm/utils/TableGen/GlobalISel/CodeExpander.cpp
    R llvm/utils/TableGen/GlobalISel/CodeExpander.h
    R llvm/utils/TableGen/GlobalISel/CodeExpansions.h
    R llvm/utils/TableGen/GlobalISel/CombinerUtils.h
    R llvm/utils/TableGen/GlobalISel/MatchDataInfo.cpp
    R llvm/utils/TableGen/GlobalISel/MatchDataInfo.h
    R llvm/utils/TableGen/GlobalISel/Patterns.cpp
    R llvm/utils/TableGen/GlobalISel/Patterns.h
    M llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp
    M llvm/utils/TableGen/GlobalISelEmitter.cpp
    R llvm/utils/TableGen/GlobalISelMatchTable.cpp
    R llvm/utils/TableGen/GlobalISelMatchTable.h
    R llvm/utils/TableGen/GlobalISelMatchTableExecutorEmitter.cpp
    R llvm/utils/TableGen/GlobalISelMatchTableExecutorEmitter.h
    R llvm/utils/TableGen/InfoByHwMode.cpp
    R llvm/utils/TableGen/InfoByHwMode.h
    M llvm/utils/TableGen/InstrDocsEmitter.cpp
    M llvm/utils/TableGen/InstrInfoEmitter.cpp
    M llvm/utils/TableGen/IntrinsicEmitter.cpp
    M llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
    R llvm/utils/TableGen/OptEmitter.cpp
    R llvm/utils/TableGen/OptEmitter.h
    M llvm/utils/TableGen/OptParserEmitter.cpp
    M llvm/utils/TableGen/OptRSTEmitter.cpp
    R llvm/utils/TableGen/PredicateExpander.cpp
    R llvm/utils/TableGen/PredicateExpander.h
    M llvm/utils/TableGen/PseudoLoweringEmitter.cpp
    M llvm/utils/TableGen/RegisterBankEmitter.cpp
    M llvm/utils/TableGen/RegisterInfoEmitter.cpp
    R llvm/utils/TableGen/SDNodeProperties.cpp
    R llvm/utils/TableGen/SDNodeProperties.h
    M llvm/utils/TableGen/SearchableTableEmitter.cpp
    R llvm/utils/TableGen/SequenceToOffsetTable.h
    M llvm/utils/TableGen/SubtargetEmitter.cpp
    R llvm/utils/TableGen/SubtargetFeatureInfo.cpp
    R llvm/utils/TableGen/SubtargetFeatureInfo.h
    R llvm/utils/TableGen/Types.cpp
    R llvm/utils/TableGen/Types.h
    R llvm/utils/TableGen/VarLenCodeEmitterGen.cpp
    R llvm/utils/TableGen/VarLenCodeEmitterGen.h
    M llvm/utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
    M llvm/utils/TableGen/X86CompressEVEXTablesEmitter.cpp
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp
    M llvm/utils/TableGen/X86MnemonicTables.cpp
    M llvm/utils/TableGen/X86RecognizableInstr.h

  Log Message:
  -----------
  [RFC][TableGen] Restructure TableGen Source (#80847)

Refactor of the llvm-tblgen source into:
- a "Basic" library, which contains the bare minimum utilities to build
`llvm-min-tablegen`
- a "Common" library which contains all of the helpers for TableGen
backends. Such helpers can be shared by more than one backend, and even
unit tested (e.g. CodeExpander is, maybe we can add more over time)

Fixes #80647



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list