Skip to content

Commit 2cb8732

Browse files
author
Ferdinand Lemaire
committed
Formatting and other comments from the previous PR
1 parent 1ededd4 commit 2cb8732

File tree

8 files changed

+232
-230
lines changed

8 files changed

+232
-230
lines changed

mlir/include/mlir/InitAllTranslations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "mlir/Target/IRDLToCpp/TranslationRegistration.h"
1818

1919
namespace mlir {
20+
2021
void registerFromLLVMIRTranslation();
2122
void registerFromSPIRVTranslation();
2223
void registerFromWasmTranslation();

mlir/include/mlir/Target/Wasm/WasmImporter.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
#include "mlir/IR/OwningOpRef.h"
2020
#include "llvm/Support/SourceMgr.h"
2121

22-
namespace mlir {
23-
namespace wasm {
22+
namespace mlir::wasm {
2423

2524
/// Translates the given operation to C++ code. The operation or operations in
2625
/// the region of 'op' need almost all be in EmitC dialect. The parameter
2726
/// 'declareVariablesAtTop' enforces that all variables for op results and block
2827
/// arguments are declared at the beginning of the function.
2928
/// If parameter 'fileId' is non-empty, then body of `emitc.file` ops
3029
/// with matching id are emitted.
31-
OwningOpRef<ModuleOp> importWebAssemblyToModule(llvm::SourceMgr &source, MLIRContext* context);
32-
} // namespace wasm
33-
} // namespace mlir
30+
OwningOpRef<ModuleOp> importWebAssemblyToModule(llvm::SourceMgr &source,
31+
MLIRContext *context);
32+
} // namespace mlir::wasm
3433

3534
#endif // MLIR_TARGET_WASM_WASMIMPORTER_H

0 commit comments

Comments
 (0)