[PATCH] D130518: [SPIRV] use tablegen to create SPIRVBaseInfo*
Ilia Diachkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 14:31:40 PDT 2022
iliya-diyachkov created this revision.
iliya-diyachkov added reviewers: zuban32, rengolin, MaskRay, arsenm, konrad.trifunovic, mpaszkowski, andreytr.
Herald added subscribers: StephenFan, ThomasRaoux, hiraditya, mgorny.
Herald added a project: All.
iliya-diyachkov requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
The patch replaces SPIRVBaseInfo.* previously created using macros by the tablegen approach. There are many small changes in other files (in names of namespace) because tablegen cannot generate enum classes, so table-generated enums are wrapped in a namespaces with the same name. Also, functions in SPIRVUtils are moved to the llvm namespace.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130518
Files:
llvm/lib/Target/SPIRV/CMakeLists.txt
llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.cpp
llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.h
llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVInstPrinter.cpp
llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVInstPrinter.h
llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
llvm/lib/Target/SPIRV/SPIRVEnums.td
llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.h
llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
llvm/lib/Target/SPIRV/SPIRVUtils.cpp
llvm/lib/Target/SPIRV/SPIRVUtils.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130518.447464.patch
Type: text/x-patch
Size: 194571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220725/08f968ea/attachment-0001.bin>
More information about the llvm-commits
mailing list