[all-commits] [llvm/llvm-project] f03b89: [mlir][llvm] Use tablegen for enum conversion.
Tobias Gysi via All-commits
all-commits at lists.llvm.org
Fri Feb 3 07:26:39 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f03b8956891afd69811e4607d58673ed1438a260
https://github.com/llvm/llvm-project/commit/f03b8956891afd69811e4607d58673ed1438a260
Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
M mlir/lib/Target/LLVMIR/ModuleImport.cpp
M mlir/test/Target/LLVMIR/Import/instructions.ll
M mlir/test/Target/LLVMIR/llvmir.mlir
M mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
Log Message:
-----------
[mlir][llvm] Use tablegen for enum conversion.
The revision uses tablegen to convert multiple atomic and comparison
related enums automatically rather than using hand coded functions
in the import and export from and to LLVM IR.
The revision also adds additional binary operation cases to the
AtomicBinOp enum that have not been supported till now. It also
introduces the possibility to define unsupported enum cases that exist
only in LLVM IR and that are not imported into MLIR. These unsupported
cases are helpful to handle sentinel values such as BAD_BINOP that
LLVM commonly uses to terminate its enums.
Reviewed By: Dinistro
Differential Revision: https://reviews.llvm.org/D143189
More information about the All-commits
mailing list