1717
1818#include " llvm/IR/Module.h"
1919
20- namespace xilinx {
21- namespace AIE {
20+ using namespace xilinx ;
21+ using namespace AIE ;
2222
23- mlir::LogicalResult AIETranslateSCSimConfig (mlir::ModuleOp module ,
24- llvm::raw_ostream &output,
25- llvm::StringRef deviceName) {
23+ mlir::LogicalResult AIE:: AIETranslateSCSimConfig (mlir::ModuleOp module ,
24+ llvm::raw_ostream &output,
25+ llvm::StringRef deviceName) {
2626 DeviceOp targetOp =
2727 AIE::DeviceOp::getForSymbolInModuleOrError (module , deviceName);
2828 if (!targetOp) {
@@ -153,9 +153,9 @@ must be called first. So, a more practical invocation: aie-opt
153153--aie-create-pathfinder-flows ./aie.mlir | aie-translate --aie-mlir-to-shim >
154154./Work/arch/aieshim_solution.aiesol
155155*/
156- mlir::LogicalResult AIETranslateShimSolution (mlir::ModuleOp module ,
157- llvm::raw_ostream &output,
158- llvm::StringRef deviceName) {
156+ mlir::LogicalResult AIE:: AIETranslateShimSolution (mlir::ModuleOp module ,
157+ llvm::raw_ostream &output,
158+ llvm::StringRef deviceName) {
159159 DeviceOp targetOp =
160160 AIE::DeviceOp::getForSymbolInModuleOrError (module , deviceName);
161161 if (!targetOp) {
@@ -213,9 +213,9 @@ mlir::LogicalResult AIETranslateShimSolution(mlir::ModuleOp module,
213213 return mlir::success ();
214214}
215215
216- mlir::LogicalResult AIETranslateGraphXPE (mlir::ModuleOp module ,
217- llvm::raw_ostream &output,
218- llvm::StringRef deviceName) {
216+ mlir::LogicalResult AIE:: AIETranslateGraphXPE (mlir::ModuleOp module ,
217+ llvm::raw_ostream &output,
218+ llvm::StringRef deviceName) {
219219 /* Generates a .xpe file which is necessary to run aiesim.
220220 .xpe is a power report file, but has information on which AIE tiles are used.
221221 Sample invocation:
@@ -394,6 +394,3 @@ mlir::LogicalResult AIETranslateGraphXPE(mlir::ModuleOp module,
394394
395395 return mlir::success ();
396396}
397-
398- } // namespace AIE
399- } // namespace xilinx
0 commit comments