Fix the location issue on SLIR

This commit is contained in:
Sameer Rahmani 2021-09-20 18:12:16 +01:00
parent e69ee4dc8f
commit 664772f456
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,8 @@ def ReturnOp: Serene_Op<"return", [NoSideEffect, HasParent<"FnOp">,
}];
let arguments = (ins AnyType:$operand);
let assemblyFormat =
[{ attr-dict $operand `:` type($operand) }];
// let verifier = [{ return serene::sir::verify(*this); }];

View File

@ -24,6 +24,7 @@
#include "serene/namespace.h"
#include "mlir/IR/OperationSupport.h"
#include "serene/context.h"
#include "serene/errors/constants.h"
#include "serene/exprs/expression.h"
@ -110,6 +111,10 @@ void Namespace::dump() {
return;
}
// mlir::OpPrintingFlags flags;
// flags.enableDebugInfo();
// maybeModuleOp.getValue()->print(llvm::outs(), flags);
maybeModuleOp.getValue()->dump();
};