projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b195b
)
[mlir] Make conversion functions inline instead of static to avoid -Wunused-function
author
David Blaikie
<dblaikie@gmail.com>
Thu, 3 Dec 2020 21:08:22 +0000
(13:08 -0800)
committer
David Blaikie
<dblaikie@gmail.com>
Thu, 3 Dec 2020 21:09:36 +0000
(13:09 -0800)
mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
patch
|
blob
|
history
diff --git
a/mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
b/mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
index
f62e7ae
..
f748b56
100644
(file)
--- a/
mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
+++ b/
mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
@@
-250,7
+250,7
@@
static void emitOneEnumFromConversion(const llvm::Record *record,
StringRef cppNamespace = enumAttr.getCppNamespace();
// Emit the function converting the enum attribute from its LLVM counterpart.
- os << formatv("
static
{0}::{1} convert{1}FromLLVM({2} value) {{\n",
+ os << formatv("
inline
{0}::{1} convert{1}FromLLVM({2} value) {{\n",
cppNamespace, cppClassName, llvmClass);
os << " switch (value) {\n";