[PATCH] D78934: [mlir][spirv] Expose -serialize-spirv via mlir-translate
Lei Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 09:06:37 PDT 2020
antiagainst created this revision.
antiagainst added reviewers: rriddle, mravishankar.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, shauheen, jpienaar, mehdi_amini.
Herald added a project: LLVM.
Now we must explicitly call the registration function given that
MLIR moved away from static registration.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78934
Files:
mlir/include/mlir/InitAllTranslations.h
Index: mlir/include/mlir/InitAllTranslations.h
===================================================================
--- mlir/include/mlir/InitAllTranslations.h
+++ mlir/include/mlir/InitAllTranslations.h
@@ -17,6 +17,7 @@
namespace mlir {
void registerFromLLVMIRTranslation();
+void registerFromSPIRVTranslation();
void registerToLLVMIRTranslation();
void registerToSPIRVTranslation();
void registerToNVVMIRTranslation();
@@ -29,6 +30,7 @@
inline void registerAllTranslations() {
static bool init_once = []() {
registerFromLLVMIRTranslation();
+ registerFromSPIRVTranslation();
registerToLLVMIRTranslation();
registerToSPIRVTranslation();
registerToNVVMIRTranslation();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78934.260343.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200427/ac8c57ef/attachment.bin>
More information about the llvm-commits
mailing list